From 0cf1b2207fc52fe70d410d6f63e15d79addf91e6 Mon Sep 17 00:00:00 2001 From: Devin Beeuwkes Date: Mon, 13 Dec 2021 10:44:51 +0100 Subject: [PATCH 01/12] feat(specs/vault): appendSource --- specs/search/common/schemas/Vault.yml | 15 ++++++++++++++ specs/search/paths/vault/appendSource.yml | 25 +++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 specs/search/common/schemas/Vault.yml diff --git a/specs/search/common/schemas/Vault.yml b/specs/search/common/schemas/Vault.yml new file mode 100644 index 00000000000..ca3676dcf24 --- /dev/null +++ b/specs/search/common/schemas/Vault.yml @@ -0,0 +1,15 @@ +sourceObject: + type: object + description: A vault source. + additionalProperties: false + required: + - source + properties: + source: + type: string + description: 'The IP range of the source' + example: "10.0.0.1/32" + description: + type: string + description: 'A description of the source' + example: "Office IP range" diff --git a/specs/search/paths/vault/appendSource.yml b/specs/search/paths/vault/appendSource.yml index 6adb517bf4f..ab699f12f01 100644 --- a/specs/search/paths/vault/appendSource.yml +++ b/specs/search/paths/vault/appendSource.yml @@ -1 +1,26 @@ post: + tags: + - vault + operationId: appendSource + description: Add a single source to the list of allowed sources. + requestBody: + required: true + description: The sources to allow + content: + application/json: + schema: + title: sourcesObject + $ref: '../../common/schemas/Vault.yml#/sourceObject' + responses: + '200': + description: OK + content: + application/json: + schema: + tite: appendSourceResponse + type: object + additionalProperties: false + properties: + createdAt: + type: string + format: date-time From 5a2ca6d2acf7f7b05c3bd9542a8226700c0de1e2 Mon Sep 17 00:00:00 2001 From: Devin Beeuwkes Date: Mon, 13 Dec 2021 10:51:09 +0100 Subject: [PATCH 02/12] feat(specs/vault): deleteSource --- specs/search/paths/vault/deleteSource.yml | 22 ++++++++++++++++++++++ specs/search/spec.yml | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/specs/search/paths/vault/deleteSource.yml b/specs/search/paths/vault/deleteSource.yml index ac5790e8f8a..964a190d3cd 100644 --- a/specs/search/paths/vault/deleteSource.yml +++ b/specs/search/paths/vault/deleteSource.yml @@ -1 +1,23 @@ delete: + tags: + - vault + operationId: deleteSource + description: Remove a single source from the list of allowed sources. + parameters: + - source: + type: string + description: 'The IP range of the source' + example: "10.0.0.1/32" + responses: + '200': + description: OK + content: + application/json: + schema: + title: deleteSourceResponse + type: object + additionalProperties: false + properties: + deletedAt: + type: string + format: date-time diff --git a/specs/search/spec.yml b/specs/search/spec.yml index e75bddb1848..2346619559c 100644 --- a/specs/search/spec.yml +++ b/specs/search/spec.yml @@ -124,8 +124,8 @@ paths: # $ref: './paths/vault/vaultSources.yml' # /1/security/sources/append: # $ref: './paths/vault/appendSource.yml' - # /1/security/sources/{source}: - # $ref: './paths/vault/deleteSource.yml' + /1/security/sources/{source}: + $ref: './paths/vault/deleteSource.yml' # ########################## # ### Advanced Endpoints ### From 758ae4f5b8f10634570ad3330252b70494b0cbd3 Mon Sep 17 00:00:00 2001 From: Devin Beeuwkes Date: Mon, 13 Dec 2021 10:51:32 +0100 Subject: [PATCH 03/12] feat(specs/vault): appendSource fixes --- specs/search/paths/vault/appendSource.yml | 2 +- specs/search/spec.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/search/paths/vault/appendSource.yml b/specs/search/paths/vault/appendSource.yml index ab699f12f01..cfd98ec0981 100644 --- a/specs/search/paths/vault/appendSource.yml +++ b/specs/search/paths/vault/appendSource.yml @@ -17,7 +17,7 @@ post: content: application/json: schema: - tite: appendSourceResponse + title: appendSourceResponse type: object additionalProperties: false properties: diff --git a/specs/search/spec.yml b/specs/search/spec.yml index 2346619559c..93d69f731da 100644 --- a/specs/search/spec.yml +++ b/specs/search/spec.yml @@ -122,8 +122,8 @@ paths: # ####################### # /1/security/sources: # $ref: './paths/vault/vaultSources.yml' - # /1/security/sources/append: - # $ref: './paths/vault/appendSource.yml' + /1/security/sources/append: + $ref: './paths/vault/appendSource.yml' /1/security/sources/{source}: $ref: './paths/vault/deleteSource.yml' From d0b33bd187f35aa740faf17a750f580f78560386 Mon Sep 17 00:00:00 2001 From: Devin Beeuwkes Date: Mon, 13 Dec 2021 10:57:24 +0100 Subject: [PATCH 04/12] feat(specs/vault): vaultSources --- specs/search/common/schemas/Vault.yml | 1 + specs/search/paths/vault/appendSource.yml | 1 - specs/search/paths/vault/vaultSources.yml | 42 +++++++++++++++++++++++ specs/search/spec.yml | 4 +-- 4 files changed, 45 insertions(+), 3 deletions(-) diff --git a/specs/search/common/schemas/Vault.yml b/specs/search/common/schemas/Vault.yml index ca3676dcf24..2b97baaf716 100644 --- a/specs/search/common/schemas/Vault.yml +++ b/specs/search/common/schemas/Vault.yml @@ -1,4 +1,5 @@ sourceObject: + title: sourceObject type: object description: A vault source. additionalProperties: false diff --git a/specs/search/paths/vault/appendSource.yml b/specs/search/paths/vault/appendSource.yml index cfd98ec0981..0769ec9bd3b 100644 --- a/specs/search/paths/vault/appendSource.yml +++ b/specs/search/paths/vault/appendSource.yml @@ -9,7 +9,6 @@ post: content: application/json: schema: - title: sourcesObject $ref: '../../common/schemas/Vault.yml#/sourceObject' responses: '200': diff --git a/specs/search/paths/vault/vaultSources.yml b/specs/search/paths/vault/vaultSources.yml index 7f2769e14e0..e48da1c1b63 100644 --- a/specs/search/paths/vault/vaultSources.yml +++ b/specs/search/paths/vault/vaultSources.yml @@ -1,2 +1,44 @@ get: + tags: + - vault + operationId: getSources + description: List all allowed sources. + responses: + '200': + description: OK + content: + application/json: + schema: + title: listSourceResponse + type: array + items: + $ref: '../../common/schemas/Vault.yml#/sourceObject' + put: + tags: + - vault + operationId: getSources + description: List all allowed sources. + requestBody: + required: true + description: The sources to allow + content: + application/json: + schema: + title: sourceObjectList + type: array + items: + $ref: '../../common/schemas/Vault.yml#/sourceObject' + responses: + '200': + description: OK + content: + application/json: + schema: + title: appendSourceResponse + type: object + additionalProperties: false + properties: + updatedAt: + type: string + format: date-time diff --git a/specs/search/spec.yml b/specs/search/spec.yml index 93d69f731da..10f958f3863 100644 --- a/specs/search/spec.yml +++ b/specs/search/spec.yml @@ -120,8 +120,8 @@ paths: # ####################### # ### Vault Endpoints ### # ####################### - # /1/security/sources: - # $ref: './paths/vault/vaultSources.yml' + /1/security/sources: + $ref: './paths/vault/vaultSources.yml' /1/security/sources/append: $ref: './paths/vault/appendSource.yml' /1/security/sources/{source}: From 338047fe5d1c0d2c07d4a1c409f86833b75e1d66 Mon Sep 17 00:00:00 2001 From: Devin Beeuwkes Date: Mon, 13 Dec 2021 11:41:59 +0100 Subject: [PATCH 05/12] fix: indentation --- specs/search/spec.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specs/search/spec.yml b/specs/search/spec.yml index 10f958f3863..af766d41e3b 100644 --- a/specs/search/spec.yml +++ b/specs/search/spec.yml @@ -120,12 +120,12 @@ paths: # ####################### # ### Vault Endpoints ### # ####################### - /1/security/sources: - $ref: './paths/vault/vaultSources.yml' - /1/security/sources/append: - $ref: './paths/vault/appendSource.yml' - /1/security/sources/{source}: - $ref: './paths/vault/deleteSource.yml' + /1/security/sources: + $ref: './paths/vault/vaultSources.yml' + /1/security/sources/append: + $ref: './paths/vault/appendSource.yml' + /1/security/sources/{source}: + $ref: './paths/vault/deleteSource.yml' # ########################## # ### Advanced Endpoints ### From 25f5c7b734c269df404334a76d463ee3be8381ae Mon Sep 17 00:00:00 2001 From: Devin Beeuwkes Date: Mon, 13 Dec 2021 17:20:52 +0100 Subject: [PATCH 06/12] fix: valid spec --- specs/search/paths/vault/deleteSource.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/specs/search/paths/vault/deleteSource.yml b/specs/search/paths/vault/deleteSource.yml index 964a190d3cd..cc2a0d62dd6 100644 --- a/specs/search/paths/vault/deleteSource.yml +++ b/specs/search/paths/vault/deleteSource.yml @@ -4,9 +4,12 @@ delete: operationId: deleteSource description: Remove a single source from the list of allowed sources. parameters: - - source: + - name: source + in: path + required: true + description: The IP range of the source + schema: type: string - description: 'The IP range of the source' example: "10.0.0.1/32" responses: '200': From 221aa308a129fdfdd659c17b932c04477180f56f Mon Sep 17 00:00:00 2001 From: Devin Beeuwkes Date: Tue, 14 Dec 2021 13:40:23 +0100 Subject: [PATCH 07/12] feat: address feedback --- specs/search/common/schemas/Vault.yml | 16 ---------------- specs/search/paths/vault/appendSource.yml | 5 ++--- specs/search/paths/vault/common/schemas.yml | 2 ++ specs/search/paths/vault/deleteSource.yml | 3 +-- specs/search/paths/vault/vaultSources.yml | 13 ++++++------- 5 files changed, 11 insertions(+), 28 deletions(-) delete mode 100644 specs/search/common/schemas/Vault.yml create mode 100644 specs/search/paths/vault/common/schemas.yml diff --git a/specs/search/common/schemas/Vault.yml b/specs/search/common/schemas/Vault.yml deleted file mode 100644 index 2b97baaf716..00000000000 --- a/specs/search/common/schemas/Vault.yml +++ /dev/null @@ -1,16 +0,0 @@ -sourceObject: - title: sourceObject - type: object - description: A vault source. - additionalProperties: false - required: - - source - properties: - source: - type: string - description: 'The IP range of the source' - example: "10.0.0.1/32" - description: - type: string - description: 'A description of the source' - example: "Office IP range" diff --git a/specs/search/paths/vault/appendSource.yml b/specs/search/paths/vault/appendSource.yml index 0769ec9bd3b..c66d15e8e7f 100644 --- a/specs/search/paths/vault/appendSource.yml +++ b/specs/search/paths/vault/appendSource.yml @@ -9,7 +9,7 @@ post: content: application/json: schema: - $ref: '../../common/schemas/Vault.yml#/sourceObject' + $ref: './common/schemas.yml#/sourceObject' responses: '200': description: OK @@ -21,5 +21,4 @@ post: additionalProperties: false properties: createdAt: - type: string - format: date-time + $ref: '../../../common/parameters.yml#/updatedAt' diff --git a/specs/search/paths/vault/common/schemas.yml b/specs/search/paths/vault/common/schemas.yml new file mode 100644 index 00000000000..52b99827704 --- /dev/null +++ b/specs/search/paths/vault/common/schemas.yml @@ -0,0 +1,2 @@ +updatedAt: + $ref: '../../../common/parameters.yml#/updatedAt' diff --git a/specs/search/paths/vault/deleteSource.yml b/specs/search/paths/vault/deleteSource.yml index cc2a0d62dd6..75ca63963ee 100644 --- a/specs/search/paths/vault/deleteSource.yml +++ b/specs/search/paths/vault/deleteSource.yml @@ -22,5 +22,4 @@ delete: additionalProperties: false properties: deletedAt: - type: string - format: date-time + $ref: '../../../common/parameters.yml#/updatedAt' diff --git a/specs/search/paths/vault/vaultSources.yml b/specs/search/paths/vault/vaultSources.yml index e48da1c1b63..81e55eeab39 100644 --- a/specs/search/paths/vault/vaultSources.yml +++ b/specs/search/paths/vault/vaultSources.yml @@ -12,13 +12,13 @@ get: title: listSourceResponse type: array items: - $ref: '../../common/schemas/Vault.yml#/sourceObject' + $ref: './common/schemas.yml#/sourceObject' put: tags: - vault - operationId: getSources - description: List all allowed sources. + operationId: replaceSources + description: Replace all allowed sources. requestBody: required: true description: The sources to allow @@ -28,17 +28,16 @@ put: title: sourceObjectList type: array items: - $ref: '../../common/schemas/Vault.yml#/sourceObject' + $ref: './common/schemas.yml#/sourceObject' responses: '200': description: OK content: application/json: schema: - title: appendSourceResponse + title: replaceSourceResponse type: object additionalProperties: false properties: updatedAt: - type: string - format: date-time + $ref: '../../../common/parameters.yml#/updatedAt' From 8592aa10d70c29d90e0a8b0294234ed1826d370f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 17 Dec 2021 10:30:00 +0100 Subject: [PATCH 08/12] fix: specs --- specs/search/paths/vault/appendSource.yml | 8 +++++--- specs/search/paths/vault/common/schemas.yml | 19 +++++++++++++++++-- specs/search/paths/vault/deleteSource.yml | 10 ++++++---- specs/search/paths/vault/vaultSources.yml | 16 ++++++---------- 4 files changed, 34 insertions(+), 19 deletions(-) diff --git a/specs/search/paths/vault/appendSource.yml b/specs/search/paths/vault/appendSource.yml index c66d15e8e7f..9ecff150206 100644 --- a/specs/search/paths/vault/appendSource.yml +++ b/specs/search/paths/vault/appendSource.yml @@ -1,6 +1,6 @@ post: tags: - - vault + - search operationId: appendSource description: Add a single source to the list of allowed sources. requestBody: @@ -9,7 +9,7 @@ post: content: application/json: schema: - $ref: './common/schemas.yml#/sourceObject' + $ref: 'common/schemas.yml#/source' responses: '200': description: OK @@ -19,6 +19,8 @@ post: title: appendSourceResponse type: object additionalProperties: false + required: + - createdAt properties: createdAt: - $ref: '../../../common/parameters.yml#/updatedAt' + $ref: '../../../common/parameters.yml#/createdAt' diff --git a/specs/search/paths/vault/common/schemas.yml b/specs/search/paths/vault/common/schemas.yml index 52b99827704..88aaae88262 100644 --- a/specs/search/paths/vault/common/schemas.yml +++ b/specs/search/paths/vault/common/schemas.yml @@ -1,2 +1,17 @@ -updatedAt: - $ref: '../../../common/parameters.yml#/updatedAt' +sources: + description: A list of sources. + items: + $ref: '#/source' + +source: + description: The source. + required: + - source + properties: + source: + description: The IP range of the source. + type: string + example: '10.0.0.1/32' + description: + description: The description of the source. + type: string diff --git a/specs/search/paths/vault/deleteSource.yml b/specs/search/paths/vault/deleteSource.yml index 75ca63963ee..1d003d263f8 100644 --- a/specs/search/paths/vault/deleteSource.yml +++ b/specs/search/paths/vault/deleteSource.yml @@ -1,16 +1,16 @@ delete: tags: - - vault + - search operationId: deleteSource description: Remove a single source from the list of allowed sources. parameters: - name: source in: path required: true - description: The IP range of the source + description: The IP range of the source. schema: type: string - example: "10.0.0.1/32" + example: '10.0.0.1/32' responses: '200': description: OK @@ -20,6 +20,8 @@ delete: title: deleteSourceResponse type: object additionalProperties: false + required: + - deletedAt properties: deletedAt: - $ref: '../../../common/parameters.yml#/updatedAt' + $ref: '../../../common/parameters.yml#/deletedAt' diff --git a/specs/search/paths/vault/vaultSources.yml b/specs/search/paths/vault/vaultSources.yml index 81e55eeab39..a4d2e3f4df1 100644 --- a/specs/search/paths/vault/vaultSources.yml +++ b/specs/search/paths/vault/vaultSources.yml @@ -1,6 +1,6 @@ get: tags: - - vault + - search operationId: getSources description: List all allowed sources. responses: @@ -9,14 +9,11 @@ get: content: application/json: schema: - title: listSourceResponse - type: array - items: - $ref: './common/schemas.yml#/sourceObject' + $ref: './common/schemas.yml#/sources' put: tags: - - vault + - search operationId: replaceSources description: Replace all allowed sources. requestBody: @@ -25,10 +22,7 @@ put: content: application/json: schema: - title: sourceObjectList - type: array - items: - $ref: './common/schemas.yml#/sourceObject' + $ref: './common/schemas.yml#/sources' responses: '200': description: OK @@ -38,6 +32,8 @@ put: title: replaceSourceResponse type: object additionalProperties: false + required: + - updatedAt properties: updatedAt: $ref: '../../../common/parameters.yml#/updatedAt' From 9356f0e36dfc15e3b0eac4722e9876a1735bdf98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 17 Dec 2021 10:33:30 +0100 Subject: [PATCH 09/12] generate clients --- .../com/algolia/ApiCallback.java | 1 + .../com/algolia/ApiClient.java | 113 +- .../com/algolia/GzipRequestInterceptor.java | 2 +- .../algoliasearch-core/com/algolia/JSON.java | 33 +- .../com/algolia/ServerConfiguration.java | 7 +- .../com/algolia/ServerVariable.java | 7 +- .../com/algolia/StringUtil.java | 9 +- .../com/algolia/model/AddApiKeyResponse.java | 21 +- .../com/algolia/model/ApiKey.java | 66 +- .../algolia/model/AppendSourceResponse.java | 87 + .../com/algolia/model/AssignUserIdObject.java | 16 +- .../algolia/model/AssignUserIdResponse.java | 18 +- .../com/algolia/model/BaseIndexSettings.java | 69 +- .../com/algolia/model/BaseSearchParams.java | 157 +- .../com/algolia/model/BaseSearchResponse.java | 125 +- .../model/BaseSearchResponseFacetsStats.java | 27 +- .../model/BatchAssignUserIdsObject.java | 19 +- .../model/BatchAssignUserIdsResponse.java | 18 +- .../com/algolia/model/BatchObject.java | 17 +- .../com/algolia/model/BatchResponse.java | 21 +- .../model/ClearAllSynonymsResponse.java | 21 +- .../com/algolia/model/CreatedAtObject.java | 18 +- .../algolia/model/DeleteApiKeyResponse.java | 18 +- .../algolia/model/DeleteIndexResponse.java | 21 +- .../algolia/model/DeleteSourceResponse.java | 87 + .../algolia/model/DeleteSynonymResponse.java | 21 +- .../com/algolia/model/ErrorBase.java | 17 +- .../com/algolia/model/GetLogsResponse.java | 19 +- .../model/GetLogsResponseInnerQueries.java | 24 +- .../algolia/model/GetLogsResponseLogs.java | 61 +- .../com/algolia/model/GetTaskResponse.java | 17 +- .../algolia/model/GetTopUserIdsResponse.java | 17 +- .../model/HasPendingMappingsResponse.java | 18 +- .../com/algolia/model/HighlightResult.java | 24 +- .../com/algolia/model/Index.java | 60 +- .../com/algolia/model/IndexSettings.java | 294 +- .../model/IndexSettingsAsSearchParams.java | 240 +- .../com/algolia/model/KeyObject.java | 73 +- .../algolia/model/ListApiKeysResponse.java | 19 +- .../algolia/model/ListClustersResponse.java | 16 +- .../algolia/model/ListIndicesResponse.java | 22 +- .../algolia/model/ListUserIdsResponse.java | 17 +- .../com/algolia/model/MultipleQueries.java | 32 +- .../algolia/model/MultipleQueriesObject.java | 21 +- .../model/MultipleQueriesResponse.java | 19 +- .../com/algolia/model/Operation.java | 21 +- .../algolia/model/OperationIndexObject.java | 33 +- .../algolia/model/OperationIndexResponse.java | 21 +- .../com/algolia/model/RankingInfo.java | 62 +- .../model/RankingInfoMatchedGeoLocation.java | 24 +- .../com/algolia/model/Record.java | 32 +- .../algolia/model/RemoveUserIdResponse.java | 18 +- .../algolia/model/ReplaceSourceResponse.java | 87 + .../com/algolia/model/SaveObjectResponse.java | 24 +- .../algolia/model/SaveSynonymResponse.java | 24 +- .../algolia/model/SaveSynonymsResponse.java | 21 +- .../com/algolia/model/SearchHits.java | 19 +- .../com/algolia/model/SearchParams.java | 384 +- .../com/algolia/model/SearchResponse.java | 130 +- .../algolia/model/SearchSynonymsResponse.java | 23 +- .../algolia/model/SearchUserIdsObject.java | 31 +- .../algolia/model/SearchUserIdsResponse.java | 29 +- .../SearchUserIdsResponseHighlightResult.java | 22 +- .../model/SearchUserIdsResponseHits.java | 35 +- .../algolia/model/SetSettingsResponse.java | 21 +- .../com/algolia/model/SnippetResult.java | 20 +- .../com/algolia/model/Source.java | 115 + .../com/algolia/model/SynonymHit.java | 40 +- .../model/SynonymHitHighlightResult.java | 20 +- .../algolia/model/UpdateApiKeyResponse.java | 21 +- .../com/algolia/model/UserId.java | 25 +- .../com/algolia/search/SearchApi.java | 4923 +++++++++-------- .../model/appendSourceResponse.ts | 6 + .../model/deleteSourceResponse.ts | 6 + .../client-search/model/models.ts | 4 + .../model/replaceSourceResponse.ts | 6 + .../client-search/model/source.ts | 13 + .../client-search/src/searchApi.ts | 113 + 78 files changed, 4643 insertions(+), 3759 deletions(-) create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java create mode 100644 clients/algoliasearch-client-javascript/client-search/model/appendSourceResponse.ts create mode 100644 clients/algoliasearch-client-javascript/client-search/model/deleteSourceResponse.ts create mode 100644 clients/algoliasearch-client-javascript/client-search/model/replaceSourceResponse.ts create mode 100644 clients/algoliasearch-client-javascript/client-search/model/source.ts diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java index 6b149c2b325..aa42730dca9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java @@ -1,5 +1,6 @@ package com.algolia; +import java.io.IOException; import java.util.List; import java.util.Map; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java index 6bca7ae6f29..4d6da2e5a0b 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java @@ -5,26 +5,35 @@ import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.lang.reflect.Type; +import java.net.URI; import java.net.URLConnection; import java.net.URLEncoder; +import java.nio.file.Files; +import java.nio.file.Paths; import java.security.GeneralSecurityException; import java.security.KeyStore; import java.security.SecureRandom; import java.security.cert.Certificate; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; import java.text.DateFormat; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import javax.net.ssl.*; import okhttp3.*; import okhttp3.internal.http.HttpMethod; import okhttp3.internal.tls.OkHostnameVerifier; import okhttp3.logging.HttpLoggingInterceptor; import okhttp3.logging.HttpLoggingInterceptor.Level; +import okio.BufferedSink; +import okio.Okio; public class ApiClient { @@ -114,9 +123,9 @@ public boolean isVerifyingSsl() { } /** - * Configure whether to verify certificate and hostname when making https requests. Default to - * true. NOTE: Do NOT set to false in production code, otherwise you would face multiple types of - * cryptographic attacks. + * Configure whether to verify certificate and hostname when making https requests. + * Default to true. + * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. * * @param verifyingSsl True to verify TLS/SSL connection * @return ApiClient @@ -137,8 +146,8 @@ public InputStream getSslCaCert() { } /** - * Configure the CA certificate to be trusted when making https requests. Use null to reset to - * default. + * Configure the CA certificate to be trusted when making https requests. + * Use null to reset to default. * * @param sslCaCert input stream for SSL CA cert * @return ApiClient @@ -154,7 +163,8 @@ public KeyManager[] getKeyManagers() { } /** - * Configure client keys to use for authorization in an SSL session. Use null to reset to default. + * Configure client keys to use for authorization in an SSL session. + * Use null to reset to default. * * @param managers The KeyManagers to use * @return ApiClient @@ -262,8 +272,9 @@ public int getConnectTimeout() { } /** - * Sets the connect timeout (in milliseconds). A value of 0 means no timeout, otherwise values - * must be between 1 and {@link Integer#MAX_VALUE}. + * Sets the connect timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. * * @param connectionTimeout connection timeout in milliseconds * @return Api client @@ -287,8 +298,9 @@ public int getReadTimeout() { } /** - * Sets the read timeout (in milliseconds). A value of 0 means no timeout, otherwise values must - * be between 1 and {@link Integer#MAX_VALUE}. + * Sets the read timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. * * @param readTimeout read timeout in milliseconds * @return Api client @@ -312,8 +324,9 @@ public int getWriteTimeout() { } /** - * Sets the write timeout (in milliseconds). A value of 0 means no timeout, otherwise values must - * be between 1 and {@link Integer#MAX_VALUE}. + * Sets the write timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. * * @param writeTimeout connection timeout in milliseconds * @return Api client @@ -341,7 +354,7 @@ public String parameterToString(Object param) { param instanceof OffsetDateTime || param instanceof LocalDate ) { - // Serialize to json string and remove the " enclosing characters + //Serialize to json string and remove the " enclosing characters String jsonStr = json.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { @@ -361,7 +374,7 @@ public String parameterToString(Object param) { /** * Formats the specified query parameter to a list containing a single {@code Pair} object. * - *

Note that {@code value} must not be a collection. + * Note that {@code value} must not be a collection. * * @param name The name of the parameter. * @param value The value of the parameter. @@ -387,7 +400,7 @@ public List parameterToPair(String name, Object value) { /** * Formats the specified collection query parameters to a list of {@code Pair} objects. * - *

Note that the values of each of the returned Pair objects are percent-encoded. + * Note that the values of each of the returned Pair objects are percent-encoded. * * @param collectionFormat The collection format of the parameter. * @param name The name of the parameter. @@ -476,7 +489,8 @@ public String collectionPathParameterToString( } /** - * Sanitize filename by removing path. e.g. ../../sun.gif becomes sun.gif + * Sanitize filename by removing path. + * e.g. ../../sun.gif becomes sun.gif * * @param filename The filename to be sanitized * @return The sanitized filename @@ -486,9 +500,13 @@ public String sanitizeFilename(String filename) { } /** - * Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; - * charset=UTF8 APPLICATION/JSON application/vnd.company+json "* / *" is also default to JSON - * + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * "* / *" is also default to JSON * @param mime MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ @@ -499,12 +517,13 @@ public boolean isJsonMime(String mime) { } /** - * Select the Accept header's value from the given accepts array: if JSON exists in the given - * array, use it; otherwise use all of them (joining into a string) + * Select the Accept header's value from the given accepts array: + * if JSON exists in the given array, use it; + * otherwise use all of them (joining into a string) * * @param accepts The accepts array to select from - * @return The Accept header to use. If the given array is empty, null will be returned (not to - * set the Accept header explicitly). + * @return The Accept header to use. If the given array is empty, + * null will be returned (not to set the Accept header explicitly). */ public String selectHeaderAccept(String[] accepts) { if (accepts.length == 0) { @@ -519,12 +538,13 @@ public String selectHeaderAccept(String[] accepts) { } /** - * Select the Content-Type header's value from the given array: if JSON exists in the given array, - * use it; otherwise use the first one of the array. + * Select the Content-Type header's value from the given array: + * if JSON exists in the given array, use it; + * otherwise use the first one of the array. * * @param contentTypes The Content-Type array to select from - * @return The Content-Type header to use. If the given array is empty, or matches "any", JSON - * will be used. + * @return The Content-Type header to use. If the given array is empty, + * or matches "any", JSON will be used. */ public String selectHeaderContentType(String[] contentTypes) { if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) { @@ -553,15 +573,15 @@ public String escapeString(String str) { } /** - * Deserialize response body to Java object, according to the return type and the Content-Type - * response header. + * Deserialize response body to Java object, according to the return type and + * the Content-Type response header. * * @param Type * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws ApiException If fail to deserialize response body, i.e. cannot read response body or - * the Content-Type of the response is not supported. + * @throws ApiException If fail to deserialize response body, i.e. cannot read response body + * or the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") public T deserialize(Response response, Type returnType) @@ -615,8 +635,8 @@ public T deserialize(Response response, Type returnType) } /** - * Serialize the given Java object into request body according to the object's class and the - * request Content-Type. + * Serialize the given Java object into request body according to the object's + * class and the request Content-Type. * * @param obj The Java object * @param contentType The request Content-Type @@ -664,8 +684,9 @@ public ApiResponse execute(Call call) throws ApiException { * @param returnType The return type used to deserialize HTTP response body * @param The return type corresponding to (same with) returnType * @param call Call - * @return ApiResponse object containing response status, headers and data, which is a Java object - * deserialized from response body and would be null when returnType is null. + * @return ApiResponse object containing response status, headers and + * data, which is a Java object deserialized from response body and would be null + * when returnType is null. * @throws ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) @@ -754,8 +775,8 @@ public void onResponse(Call call, Response response) * @param response Response * @param returnType Return type * @return Type - * @throws ApiException If the response has an unsuccessful status code or fail to deserialize the - * response body + * @throws ApiException If the response has an unsuccessful status code or + * fail to deserialize the response body */ public T handleResponse(Response response, Type returnType) throws ApiException { @@ -806,8 +827,7 @@ public T handleResponse(Response response, Type returnType) * Build HTTP call with the given options. * * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and - * "DELETE" + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" * @param queryParams The query parameters * @param collectionQueryParams The collection query parameters * @param body The request body object @@ -851,8 +871,7 @@ public Call buildCall( * Build an HTTP request with the given options. * * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and - * "DELETE" + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" * @param queryParams The query parameters * @param collectionQueryParams The collection query parameters * @param body The request body object @@ -1067,8 +1086,8 @@ public RequestBody buildRequestBodyFormEncoding( } /** - * Build a multipart (file uploading) request body with the given form parameters, which could - * contain text fields and file fields. + * Build a multipart (file uploading) request body with the given form parameters, + * which could contain text fields and file fields. * * @param formParams Form parameters in the form of Map * @return RequestBody @@ -1119,8 +1138,8 @@ public String guessContentTypeFromFile(File file) { } /** - * Get network interceptor to add it to the httpClient to track download progress for async - * requests. + * Get network interceptor to add it to the httpClient to track download progress for + * async requests. */ private Interceptor getProgressInterceptor() { return new Interceptor() { @@ -1141,8 +1160,8 @@ public Response intercept(Interceptor.Chain chain) throws IOException { } /** - * Apply SSL related settings to httpClient according to the current values of verifyingSsl and - * sslCaCert. + * Apply SSL related settings to httpClient according to the current values of + * verifyingSsl and sslCaCert. */ private void applySslSettings() { try { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java index 3a054245399..45b7bf54ad1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java @@ -10,7 +10,7 @@ /** * Encodes request bodies using gzip. * - *

Taken from https://github.com/square/okhttp/issues/350 + * Taken from https://github.com/square/okhttp/issues/350 */ class GzipRequestInterceptor implements Interceptor { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java index fff9b8547c2..fd92dc22563 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java @@ -10,6 +10,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.gsonfire.GsonFireBuilder; +import io.gsonfire.TypeSelector; import java.io.IOException; import java.io.StringReader; import java.lang.reflect.Type; @@ -20,6 +21,8 @@ import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; import java.util.Date; +import java.util.HashMap; +import java.util.Locale; import java.util.Map; import okio.ByteString; @@ -54,8 +57,7 @@ private static String getDiscriminatorValue( } /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator - * value. + * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. * * @param classByDiscriminatorValue The map of discriminator values to Java classes. * @param discriminatorValue The value of the OpenAPI discriminator in the input data. @@ -123,8 +125,8 @@ public String serialize(Object obj) { /** * Deserialize the given JSON string to Java object. * - * @param Type - * @param body The JSON string + * @param Type + * @param body The JSON string * @param returnType The type to deserialize into * @return The deserialized Java object */ @@ -133,8 +135,7 @@ public T deserialize(String body, Type returnType) { try { if (isLenientOnJson) { JsonReader jsonReader = new JsonReader(new StringReader(body)); - // see - // https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) jsonReader.setLenient(true); return gson.fromJson(jsonReader, returnType); } else { @@ -151,7 +152,9 @@ public T deserialize(String body, Type returnType) { } } - /** Gson TypeAdapter for Byte Array type */ + /** + * Gson TypeAdapter for Byte Array type + */ public class ByteArrayAdapter extends TypeAdapter { @Override @@ -177,7 +180,9 @@ public byte[] read(JsonReader in) throws IOException { } } - /** Gson TypeAdapter for JSR310 OffsetDateTime type */ + /** + * Gson TypeAdapter for JSR310 OffsetDateTime type + */ public static class OffsetDateTimeTypeAdapter extends TypeAdapter { @@ -220,7 +225,9 @@ public OffsetDateTime read(JsonReader in) throws IOException { } } - /** Gson TypeAdapter for JSR310 LocalDate type */ + /** + * Gson TypeAdapter for JSR310 LocalDate type + */ public class LocalDateTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; @@ -270,8 +277,9 @@ public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { } /** - * Gson TypeAdapter for java.sql.Date type If the dateFormat is null, a simple "yyyy-MM-dd" format - * will be used (more efficient than SimpleDateFormat). + * Gson TypeAdapter for java.sql.Date type + * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used + * (more efficient than SimpleDateFormat). */ public static class SqlDateTypeAdapter extends TypeAdapter { @@ -325,7 +333,8 @@ public java.sql.Date read(JsonReader in) throws IOException { } /** - * Gson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be used. + * Gson TypeAdapter for java.util.Date type + * If the dateFormat is null, ISO8601Utils will be used. */ public static class DateTypeAdapter extends TypeAdapter { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java index 2079f056c98..6dbe7a0216d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java @@ -2,7 +2,9 @@ import java.util.Map; -/** Representing a Server configuration. */ +/** + * Representing a Server configuration. + */ public class ServerConfiguration { public String URL; @@ -12,8 +14,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. * @param description A description of the host designated by the URL. - * @param variables A map between a variable name and its value. The value is used for - * substitution in the server's URL template. + * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration( String URL, diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java index c0e8b2aa675..52b3a21d57e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java @@ -2,7 +2,9 @@ import java.util.HashSet; -/** Representing a Server Variable for server URL template substitution. */ +/** + * Representing a Server Variable for server URL template substitution. + */ public class ServerVariable { public String description; @@ -12,8 +14,7 @@ public class ServerVariable { /** * @param description A description for the server variable. * @param defaultValue The default value to use for substitution. - * @param enumValues An enumeration of string values to be used if the substitution options are - * from a limited set. + * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. */ public ServerVariable( String description, diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java index af841ec05cd..3f0a8a25da0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java @@ -27,10 +27,11 @@ public static boolean containsIgnoreCase(String[] array, String value) { /** * Join an array of strings with the given separator. * - *

Note: This might be replaced by utility method from commons-lang or guava someday if one of - * those libraries is added as dependency. + * Note: This might be replaced by utility method from commons-lang or guava someday + * if one of those libraries is added as dependency. * - * @param array The array of strings + * + * @param array The array of strings * @param separator The separator * @return the resulting string */ @@ -51,7 +52,7 @@ public static String join(String[] array, String separator) { /** * Join a list of strings with the given separator. * - * @param list The list of strings + * @param list The list of strings * @param separator The separator * @return the resulting string */ diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java index 0d7222491fb..f8d527963e0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** AddApiKeyResponse */ +/** + * AddApiKeyResponse + */ + public class AddApiKeyResponse { public static final String SERIALIZED_NAME_KEY = "key"; @@ -25,9 +35,8 @@ public AddApiKeyResponse key(String key) { /** * Key string. - * * @return key - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Key string.") public String getKey() { @@ -45,9 +54,8 @@ public AddApiKeyResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). - * * @return createdAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -95,7 +103,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java index d6669327f12..2cc060400d9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java @@ -9,14 +9,19 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** Api Key object. */ +/** + * Api Key object. + */ @ApiModel(description = "Api Key object.") public class ApiKey { - /** Gets or Sets acl */ + /** + * Gets or Sets acl + */ @JsonAdapter(AclEnum.Adapter.class) public enum AclEnum { ADDOBJECT("addObject"), @@ -142,9 +147,8 @@ public ApiKey addAclItem(AclEnum aclItem) { /** * Set of permissions associated with the key. - * * @return acl - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -164,15 +168,12 @@ public ApiKey description(String description) { } /** - * A comment used to identify a key more easily in the dashboard. It is not interpreted by the - * API. - * + * A comment used to identify a key more easily in the dashboard. It is not interpreted by the API. * @return description - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by" + - " the API." + value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by the API." ) public String getDescription() { return description; @@ -196,15 +197,12 @@ public ApiKey addIndexesItem(String indexesItem) { } /** - * Restrict this new API key to a list of indices or index patterns. If the list is empty, all - * indices are allowed. - * + * Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed. * @return indexes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to a list of indices or index patterns. If the list is empty," + - " all indices are allowed." + value = "Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed." ) public List getIndexes() { return indexes; @@ -221,13 +219,11 @@ public ApiKey maxHitsPerQuery(Integer maxHitsPerQuery) { /** * Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. - * * @return maxHitsPerQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is" + - " enforced." + value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced." ) public Integer getMaxHitsPerQuery() { return maxHitsPerQuery; @@ -244,9 +240,8 @@ public ApiKey maxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { /** * Maximum number of API calls per hour allowed from a given IP address or a user token. - * * @return maxQueriesPerIPPerHour - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of API calls per hour allowed from a given IP address or a user token." @@ -265,15 +260,12 @@ public ApiKey queryParameters(String queryParameters) { } /** - * URL-encoded query string. Force some query parameters to be applied for each query made with - * this API key. - * + * URL-encoded query string. Force some query parameters to be applied for each query made with this API key. * @return queryParameters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "URL-encoded query string. Force some query parameters to be applied for each query made" + - " with this API key." + value = "URL-encoded query string. Force some query parameters to be applied for each query made with this API key." ) public String getQueryParameters() { return queryParameters; @@ -298,13 +290,11 @@ public ApiKey addReferersItem(String referersItem) { /** * Restrict this new API key to specific referers. If empty or blank, defaults to all referers. - * * @return referers - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to specific referers. If empty or blank, defaults to all" + - " referers." + value = "Restrict this new API key to specific referers. If empty or blank, defaults to all referers." ) public List getReferers() { return referers; @@ -320,15 +310,12 @@ public ApiKey validity(Integer validity) { } /** - * Validity limit for this key in seconds. The key will automatically be removed after this period - * of time. - * + * Validity limit for this key in seconds. The key will automatically be removed after this period of time. * @return validity - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Validity limit for this key in seconds. The key will automatically be removed after this" + - " period of time." + value = "Validity limit for this key in seconds. The key will automatically be removed after this period of time." ) public Integer getValidity() { return validity; @@ -405,7 +392,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java new file mode 100644 index 00000000000..5cb4d2bd98e --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java @@ -0,0 +1,87 @@ +package com.algolia.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.Objects; + +/** + * AppendSourceResponse + */ + +public class AppendSourceResponse { + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public AppendSourceResponse createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Date of creation (ISO-8601 format). + * @return createdAt + **/ + @javax.annotation.Nonnull + @ApiModelProperty( + required = true, + value = "Date of creation (ISO-8601 format)." + ) + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AppendSourceResponse appendSourceResponse = (AppendSourceResponse) o; + return Objects.equals(this.createdAt, appendSourceResponse.createdAt); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AppendSourceResponse {\n"); + sb + .append(" createdAt: ") + .append(toIndentedString(createdAt)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java index 3e0fdc73325..08202add408 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java @@ -1,11 +1,19 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** Assign userID object. */ +/** + * Assign userID object. + */ @ApiModel(description = "Assign userID object.") public class AssignUserIdObject { @@ -21,9 +29,8 @@ public AssignUserIdObject cluster(String cluster) { /** * Name of the cluster. - * * @return cluster - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "c11-test", @@ -65,7 +72,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java index f18853c2eb4..c94dc25bf43 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** AssignUserIdResponse */ +/** + * AssignUserIdResponse + */ + public class AssignUserIdResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -20,9 +30,8 @@ public AssignUserIdResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). - * * @return createdAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -66,7 +75,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java index 5ac1b4dfa23..56b6ed8c3d4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java @@ -1,14 +1,24 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -/** BaseIndexSettings */ +/** + * BaseIndexSettings + */ + public class BaseIndexSettings { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @@ -94,9 +104,8 @@ public BaseIndexSettings addReplicasItem(String replicasItem) { /** * Creates replicas, exact copies of an index. - * * @return replicas - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Creates replicas, exact copies of an index.") public List getReplicas() { @@ -114,9 +123,8 @@ public BaseIndexSettings paginationLimitedTo(Integer paginationLimitedTo) { /** * Set the maximum number of hits accessible via pagination. - * * @return paginationLimitedTo - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Set the maximum number of hits accessible via pagination." @@ -148,9 +156,8 @@ public BaseIndexSettings addDisableTypoToleranceOnWordsItem( /** * A list of words for which you want to turn off typo tolerance. - * * @return disableTypoToleranceOnWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words for which you want to turn off typo tolerance." @@ -184,9 +191,8 @@ public BaseIndexSettings addAttributesToTransliterateItem( /** * Specify on which attributes to apply transliteration. - * * @return attributesToTransliterate - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Specify on which attributes to apply transliteration." @@ -220,9 +226,8 @@ public BaseIndexSettings addCamelCaseAttributesItem( /** * List of attributes on which to do a decomposition of camel case words. - * * @return camelCaseAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which to do a decomposition of camel case words." @@ -254,15 +259,12 @@ public BaseIndexSettings putDecompoundedAttributesItem( } /** - * Specify on which attributes in your index Algolia should apply word segmentation, also known as - * decompounding. - * + * Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding. * @return decompoundedAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Specify on which attributes in your index Algolia should apply word segmentation, also" + - " known as decompounding." + value = "Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding." ) public Map getDecompoundedAttributes() { return decompoundedAttributes; @@ -288,15 +290,12 @@ public BaseIndexSettings addIndexLanguagesItem(String indexLanguagesItem) { } /** - * Sets the languages at the index level for language-specific processing such as tokenization and - * normalization. - * + * Sets the languages at the index level for language-specific processing such as tokenization and normalization. * @return indexLanguages - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages at the index level for language-specific processing such as" + - " tokenization and normalization." + value = "Sets the languages at the index level for language-specific processing such as tokenization and normalization." ) public List getIndexLanguages() { return indexLanguages; @@ -312,15 +311,12 @@ public BaseIndexSettings filterPromotes(Boolean filterPromotes) { } /** - * Whether promoted results should match the filters of the current search, except for geographic - * filters. - * + * Whether promoted results should match the filters of the current search, except for geographic filters. * @return filterPromotes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether promoted results should match the filters of the current search, except for" + - " geographic filters." + value = "Whether promoted results should match the filters of the current search, except for geographic filters." ) public Boolean getFilterPromotes() { return filterPromotes; @@ -349,9 +345,8 @@ public BaseIndexSettings addDisablePrefixOnAttributesItem( /** * List of attributes on which you want to disable prefix matching. - * * @return disablePrefixOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable prefix matching." @@ -375,9 +370,8 @@ public BaseIndexSettings allowCompressionOfIntegerArray( /** * Enables compression of large integer arrays. - * * @return allowCompressionOfIntegerArray - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables compression of large integer arrays.") public Boolean getAllowCompressionOfIntegerArray() { @@ -409,9 +403,8 @@ public BaseIndexSettings addNumericAttributesForFilteringItem( /** * List of numeric attributes that can be used as numerical filters. - * * @return numericAttributesForFiltering - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of numeric attributes that can be used as numerical filters." @@ -441,9 +434,8 @@ public BaseIndexSettings putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. - * * @return userData - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -572,7 +564,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java index 504405ca146..afeb82028a1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java @@ -1,7 +1,14 @@ package com.algolia.model; +import com.algolia.model.OneOfintegerstring; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; @@ -9,7 +16,10 @@ import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; -/** BaseSearchParams */ +/** + * BaseSearchParams + */ + public class BaseSearchParams { public static final String SERIALIZED_NAME_QUERY = "query"; @@ -198,9 +208,8 @@ public BaseSearchParams query(String query) { /** * The text to search in the index. - * * @return query - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -217,15 +226,12 @@ public BaseSearchParams similarQuery(String similarQuery) { } /** - * Overrides the query parameter and performs a more generic search that can be used to find - * \"similar\" results. - * + * Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results. * @return similarQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Overrides the query parameter and performs a more generic search that can be used to" + - " find \"similar\" results." + value = "Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results." ) public String getSimilarQuery() { return similarQuery; @@ -242,9 +248,8 @@ public BaseSearchParams filters(String filters) { /** * Filter the query with numeric, facet and/or tag filters. - * * @return filters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Filter the query with numeric, facet and/or tag filters." @@ -272,9 +277,8 @@ public BaseSearchParams addFacetFiltersItem(String facetFiltersItem) { /** * Filter hits by facet value. - * * @return facetFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by facet value.") public List getFacetFilters() { @@ -299,15 +303,12 @@ public BaseSearchParams addOptionalFiltersItem(String optionalFiltersItem) { } /** - * Create filters for ranking purposes, where records that match the filter are ranked higher, or - * lower in the case of a negative optional filter. - * + * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter. * @return optionalFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Create filters for ranking purposes, where records that match the filter are ranked" + - " higher, or lower in the case of a negative optional filter." + value = "Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter." ) public List getOptionalFilters() { return optionalFilters; @@ -332,9 +333,8 @@ public BaseSearchParams addNumericFiltersItem(String numericFiltersItem) { /** * Filter on numeric attributes. - * * @return numericFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter on numeric attributes.") public List getNumericFilters() { @@ -360,9 +360,8 @@ public BaseSearchParams addTagFiltersItem(String tagFiltersItem) { /** * Filter hits by tags. - * * @return tagFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by tags.") public List getTagFilters() { @@ -380,9 +379,8 @@ public BaseSearchParams sumOrFiltersScores(Boolean sumOrFiltersScores) { /** * Determines how to calculate the total score for filtering. - * * @return sumOrFiltersScores - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Determines how to calculate the total score for filtering." @@ -410,9 +408,8 @@ public BaseSearchParams addFacetsItem(String facetsItem) { /** * Retrieve facets and their facet values. - * * @return facets - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve facets and their facet values.") public List getFacets() { @@ -430,9 +427,8 @@ public BaseSearchParams maxValuesPerFacet(Integer maxValuesPerFacet) { /** * Maximum number of facet values to return for each facet during a regular search. - * * @return maxValuesPerFacet - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet values to return for each facet during a regular search." @@ -452,9 +448,8 @@ public BaseSearchParams facetingAfterDistinct(Boolean facetingAfterDistinct) { /** * Force faceting to be applied after de-duplication (via the Distinct setting). - * * @return facetingAfterDistinct - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Force faceting to be applied after de-duplication (via the Distinct setting)." @@ -474,9 +469,8 @@ public BaseSearchParams sortFacetValuesBy(String sortFacetValuesBy) { /** * Controls how facet values are fetched. - * * @return sortFacetValuesBy - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how facet values are fetched.") public String getSortFacetValuesBy() { @@ -494,9 +488,8 @@ public BaseSearchParams page(Integer page) { /** * Specify the page to retrieve. - * * @return page - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the page to retrieve.") public Integer getPage() { @@ -514,9 +507,8 @@ public BaseSearchParams offset(Integer offset) { /** * Specify the offset of the first hit to return. - * * @return offset - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the offset of the first hit to return.") public Integer getOffset() { @@ -533,10 +525,11 @@ public BaseSearchParams length(Integer length) { } /** - * Set the number of hits to retrieve (used only with offset). minimum: 1 maximum: 1000 - * + * Set the number of hits to retrieve (used only with offset). + * minimum: 1 + * maximum: 1000 * @return length - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Set the number of hits to retrieve (used only with offset)." @@ -556,13 +549,11 @@ public BaseSearchParams aroundLatLng(String aroundLatLng) { /** * Search for entries around a central geolocation, enabling a geo search within a circular area. - * * @return aroundLatLng - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a central geolocation, enabling a geo search within a circular" + - " area." + value = "Search for entries around a central geolocation, enabling a geo search within a circular area." ) public String getAroundLatLng() { return aroundLatLng; @@ -578,15 +569,12 @@ public BaseSearchParams aroundLatLngViaIP(Boolean aroundLatLngViaIP) { } /** - * Search for entries around a given location automatically computed from the requester’s IP - * address. - * + * Search for entries around a given location automatically computed from the requester’s IP address. * @return aroundLatLngViaIP - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a given location automatically computed from the requester’s" + - " IP address." + value = "Search for entries around a given location automatically computed from the requester’s IP address." ) public Boolean getAroundLatLngViaIP() { return aroundLatLngViaIP; @@ -603,9 +591,8 @@ public BaseSearchParams aroundRadius(OneOfintegerstring aroundRadius) { /** * Define the maximum radius for a geo search (in meters). - * * @return aroundRadius - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Define the maximum radius for a geo search (in meters)." @@ -625,13 +612,11 @@ public BaseSearchParams aroundPrecision(Integer aroundPrecision) { /** * Precision of geo search (in meters), to add grouping by geo location to the ranking formula. - * * @return aroundPrecision - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Precision of geo search (in meters), to add grouping by geo location to the ranking" + - " formula." + value = "Precision of geo search (in meters), to add grouping by geo location to the ranking formula." ) public Integer getAroundPrecision() { return aroundPrecision; @@ -647,10 +632,10 @@ public BaseSearchParams minimumAroundRadius(Integer minimumAroundRadius) { } /** - * Minimum radius (in meters) used for a geo search when aroundRadius is not set. minimum: 1 - * + * Minimum radius (in meters) used for a geo search when aroundRadius is not set. + * minimum: 1 * @return minimumAroundRadius - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Minimum radius (in meters) used for a geo search when aroundRadius is not set." @@ -682,9 +667,8 @@ public BaseSearchParams addInsideBoundingBoxItem( /** * Search inside a rectangular area (in geo coordinates). - * * @return insideBoundingBox - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Search inside a rectangular area (in geo coordinates)." @@ -712,9 +696,8 @@ public BaseSearchParams addInsidePolygonItem(BigDecimal insidePolygonItem) { /** * Search inside a polygon (in geo coordinates). - * * @return insidePolygon - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Search inside a polygon (in geo coordinates).") public List getInsidePolygon() { @@ -739,21 +722,12 @@ public BaseSearchParams addNaturalLanguagesItem(String naturalLanguagesItem) { } /** - * This parameter changes the default values of certain parameters and settings that work best for - * a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, - * analyticsTags and ruleContexts. These parameters and settings work well together when the query - * is formatted in natural language instead of keywords, for example when your user performs a - * voice search. - * + * This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search. * @return naturalLanguages - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "This parameter changes the default values of certain parameters and settings that work" + - " best for a natural language query, such as ignorePlurals, removeStopWords," + - " removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and" + - " settings work well together when the query is formatted in natural language" + - " instead of keywords, for example when your user performs a voice search." + value = "This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search." ) public List getNaturalLanguages() { return naturalLanguages; @@ -778,9 +752,8 @@ public BaseSearchParams addRuleContextsItem(String ruleContextsItem) { /** * Enables contextual rules. - * * @return ruleContexts - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables contextual rules.") public List getRuleContexts() { @@ -798,9 +771,8 @@ public BaseSearchParams personalizationImpact(Integer personalizationImpact) { /** * Define the impact of the Personalization feature. - * * @return personalizationImpact - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Define the impact of the Personalization feature.") public Integer getPersonalizationImpact() { @@ -818,9 +790,8 @@ public BaseSearchParams userToken(String userToken) { /** * Associates a certain user token with the current search. - * * @return userToken - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Associates a certain user token with the current search." @@ -840,9 +811,8 @@ public BaseSearchParams getRankingInfo(Boolean getRankingInfo) { /** * Retrieve detailed ranking information. - * * @return getRankingInfo - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve detailed ranking information.") public Boolean getGetRankingInfo() { @@ -860,9 +830,8 @@ public BaseSearchParams clickAnalytics(Boolean clickAnalytics) { /** * Enable the Click Analytics feature. - * * @return clickAnalytics - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Click Analytics feature.") public Boolean getClickAnalytics() { @@ -880,9 +849,8 @@ public BaseSearchParams analytics(Boolean analytics) { /** * Whether the current query will be taken into account in the Analytics. - * * @return analytics - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the current query will be taken into account in the Analytics." @@ -910,9 +878,8 @@ public BaseSearchParams addAnalyticsTagsItem(String analyticsTagsItem) { /** * List of tags to apply to the query for analytics purposes. - * * @return analyticsTags - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of tags to apply to the query for analytics purposes." @@ -932,9 +899,8 @@ public BaseSearchParams percentileComputation(Boolean percentileComputation) { /** * Whether to include or exclude a query from the processing-time percentile computation. - * * @return percentileComputation - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to include or exclude a query from the processing-time percentile computation." @@ -954,9 +920,8 @@ public BaseSearchParams enableABTest(Boolean enableABTest) { /** * Whether this search should participate in running AB tests. - * * @return enableABTest - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether this search should participate in running AB tests." @@ -976,9 +941,8 @@ public BaseSearchParams enableReRanking(Boolean enableReRanking) { /** * Whether this search should use AI Re-Ranking. - * * @return enableReRanking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Whether this search should use AI Re-Ranking.") public Boolean getEnableReRanking() { @@ -1250,7 +1214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java index 65bd5dfd3f9..461b2ef07f3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java @@ -1,12 +1,24 @@ package com.algolia.model; +import com.algolia.model.BaseSearchResponseFacetsStats; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; -/** BaseSearchResponse */ +/** + * BaseSearchResponse + */ + public class BaseSearchResponse { public static final String SERIALIZED_NAME_AB_TEST_I_D = "abTestID"; @@ -141,15 +153,12 @@ public BaseSearchResponse abTestID(Integer abTestID) { } /** - * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test - * ID. - * + * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID. * @return abTestID - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing" + - " A/B test ID." + value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID." ) public Integer getAbTestID() { return abTestID; @@ -165,15 +174,12 @@ public BaseSearchResponse abTestVariantID(Integer abTestVariantID) { } /** - * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant - * ID of the index used. - * + * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used. * @return abTestVariantID - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the" + - " variant ID of the index used." + value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used." ) public Integer getAbTestVariantID() { return abTestVariantID; @@ -190,9 +196,8 @@ public BaseSearchResponse aroundLatLng(String aroundLatLng) { /** * The computed geo location. - * * @return aroundLatLng - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The computed geo location.") public String getAroundLatLng() { @@ -209,15 +214,12 @@ public BaseSearchResponse automaticRadius(String automaticRadius) { } /** - * The automatically computed radius. For legacy reasons, this parameter is a string and not an - * integer. - * + * The automatically computed radius. For legacy reasons, this parameter is a string and not an integer. * @return automaticRadius - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The automatically computed radius. For legacy reasons, this parameter is a string and" + - " not an integer." + value = "The automatically computed radius. For legacy reasons, this parameter is a string and not an integer." ) public String getAutomaticRadius() { return automaticRadius; @@ -236,9 +238,8 @@ public BaseSearchResponse exhaustiveFacetsCount( /** * Whether the facet count is exhaustive or approximate. - * * @return exhaustiveFacetsCount - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the facet count is exhaustive or approximate." @@ -258,9 +259,8 @@ public BaseSearchResponse exhaustiveNbHits(Boolean exhaustiveNbHits) { /** * Indicate if the nbHits count was exhaustive or approximate - * * @return exhaustiveNbHits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -280,16 +280,13 @@ public BaseSearchResponse exhaustiveTypo(Boolean exhaustiveTypo) { } /** - * Indicate if the typo-tolerence search was exhaustive or approximate (only included when - * typo-tolerance is enabled) - * + * Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled) * @return exhaustiveTypo - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when" + - " typo-tolerance is enabled)" + value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled)" ) public Boolean getExhaustiveTypo() { return exhaustiveTypo; @@ -317,9 +314,8 @@ public BaseSearchResponse putFacetsItem( /** * A mapping of each facet name to the corresponding facet counts. - * * @return facets - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "{\"category\":{\"food\":1,\"tech\":42}}", @@ -353,9 +349,8 @@ public BaseSearchResponse putFacetsStatsItem( /** * Statistics for numerical facets. - * * @return facetsStats - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Statistics for numerical facets.") public Map getFacetsStats() { @@ -375,9 +370,8 @@ public BaseSearchResponse hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. - * * @return hitsPerPage - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -395,9 +389,8 @@ public BaseSearchResponse index(String index) { /** * Index name used for the query. - * * @return index - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "indexName", @@ -417,16 +410,13 @@ public BaseSearchResponse indexUsed(String indexUsed) { } /** - * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the - * index used by the query. - * + * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query. * @return indexUsed - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "indexNameAlt", - value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t" + - " always the index used by the query." + value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query." ) public String getIndexUsed() { return indexUsed; @@ -443,9 +433,8 @@ public BaseSearchResponse message(String message) { /** * Used to return warnings about the query. - * * @return message - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Used to return warnings about the query.") public String getMessage() { @@ -463,9 +452,8 @@ public BaseSearchResponse nbHits(Integer nbHits) { /** * Number of hits that the search query matched. - * * @return nbHits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -487,9 +475,8 @@ public BaseSearchResponse nbPages(Integer nbPages) { /** * Number of pages available for the current query - * * @return nbPages - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "1", @@ -511,9 +498,8 @@ public BaseSearchResponse nbSortedHits(Integer nbSortedHits) { /** * The number of hits selected and sorted by the relevant sort algorithm - * * @return nbSortedHits - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "20", @@ -534,9 +520,8 @@ public BaseSearchResponse page(Integer page) { /** * Specify the page to retrieve. - * * @return page - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Specify the page to retrieve.") public Integer getPage() { @@ -554,9 +539,8 @@ public BaseSearchResponse params(String params) { /** * A url-encoded string of all search parameters. - * * @return params - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "query=a&hitsPerPage=20", @@ -578,9 +562,8 @@ public BaseSearchResponse parsedQuery(String parsedQuery) { /** * The query string that will be searched, after normalization. - * * @return parsedQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The query string that will be searched, after normalization." @@ -600,9 +583,8 @@ public BaseSearchResponse processingTimeMS(Integer processingTimeMS) { /** * Time the server took to process the request, in milliseconds. - * * @return processingTimeMS - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -624,9 +606,8 @@ public BaseSearchResponse query(String query) { /** * The text to search in the index. - * * @return query - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -643,15 +624,12 @@ public BaseSearchResponse queryAfterRemoval(String queryAfterRemoval) { } /** - * A markup text indicating which parts of the original query have been removed in order to - * retrieve a non-empty result set. - * + * A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. * @return queryAfterRemoval - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "A markup text indicating which parts of the original query have been removed in order to" + - " retrieve a non-empty result set." + value = "A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set." ) public String getQueryAfterRemoval() { return queryAfterRemoval; @@ -668,9 +646,8 @@ public BaseSearchResponse serverUsed(String serverUsed) { /** * Actual host name of the server that processed the request. - * * @return serverUsed - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Actual host name of the server that processed the request." @@ -698,9 +675,8 @@ public BaseSearchResponse putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. - * * @return userData - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -871,7 +847,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java index 390f261989d..0658e5b3d82 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java @@ -1,10 +1,20 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** BaseSearchResponseFacetsStats */ +/** + * BaseSearchResponseFacetsStats + */ + public class BaseSearchResponseFacetsStats { public static final String SERIALIZED_NAME_MIN = "min"; @@ -34,9 +44,8 @@ public BaseSearchResponseFacetsStats min(Integer min) { /** * The minimum value in the result set. - * * @return min - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The minimum value in the result set.") public Integer getMin() { @@ -54,9 +63,8 @@ public BaseSearchResponseFacetsStats max(Integer max) { /** * The maximum value in the result set. - * * @return max - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum value in the result set.") public Integer getMax() { @@ -74,9 +82,8 @@ public BaseSearchResponseFacetsStats avg(Integer avg) { /** * The average facet value in the result set. - * * @return avg - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The average facet value in the result set.") public Integer getAvg() { @@ -94,9 +101,8 @@ public BaseSearchResponseFacetsStats sum(Integer sum) { /** * The sum of all values in the result set. - * * @return sum - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The sum of all values in the result set.") public Integer getSum() { @@ -142,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java index 867b2e25eb7..195df0d0390 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java @@ -1,13 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** Assign userID object. */ +/** + * Assign userID object. + */ @ApiModel(description = "Assign userID object.") public class BatchAssignUserIdsObject { @@ -28,9 +36,8 @@ public BatchAssignUserIdsObject cluster(String cluster) { /** * Name of the cluster. - * * @return cluster - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "c11-test", @@ -57,9 +64,8 @@ public BatchAssignUserIdsObject addUsersItem(String usersItem) { /** * userIDs to assign. Note you cannot move users with this method. - * * @return users - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -104,7 +110,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java index beff188d922..4c28f13ed15 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** BatchAssignUserIdsResponse */ +/** + * BatchAssignUserIdsResponse + */ + public class BatchAssignUserIdsResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -20,9 +30,8 @@ public BatchAssignUserIdsResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). - * * @return createdAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -66,7 +75,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java index e3f053211a0..2d512e0a5c8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java @@ -1,13 +1,22 @@ package com.algolia.model; +import com.algolia.model.Operation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** The `batch` requests. */ +/** + * The `batch` requests. + */ @ApiModel(description = "The `batch` requests.") public class BatchObject { @@ -31,9 +40,8 @@ public BatchObject addRequestsItem(Operation requestsItem) { /** * Get requests - * * @return requests - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getRequests() { @@ -71,7 +79,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java index 9d8a55c551a..f9aa706506f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java @@ -1,12 +1,22 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** BatchResponse */ +/** + * BatchResponse + */ + public class BatchResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -26,9 +36,8 @@ public BatchResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -54,9 +63,8 @@ public BatchResponse addObjectIDsItem(String objectIDsItem) { /** * List of objectID. - * * @return objectIDs - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "List of objectID.") public List getObjectIDs() { @@ -101,7 +109,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java index f3f206367c6..7dda9fbc1b9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** ClearAllSynonymsResponse */ +/** + * ClearAllSynonymsResponse + */ + public class ClearAllSynonymsResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -25,9 +35,8 @@ public ClearAllSynonymsResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -48,9 +57,8 @@ public ClearAllSynonymsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -98,7 +106,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java index 0953db21b16..8ead0ef9515 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** CreatedAtObject */ +/** + * CreatedAtObject + */ + public class CreatedAtObject { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -20,9 +30,8 @@ public CreatedAtObject createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). - * * @return createdAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -66,7 +75,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java index c17e344833d..cfd41af045d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** DeleteApiKeyResponse */ +/** + * DeleteApiKeyResponse + */ + public class DeleteApiKeyResponse { public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; @@ -20,9 +30,8 @@ public DeleteApiKeyResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). - * * @return deletedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -66,7 +75,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java index 3f8c11a7fbb..3a0c876fbc0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** DeleteIndexResponse */ +/** + * DeleteIndexResponse + */ + public class DeleteIndexResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -25,9 +35,8 @@ public DeleteIndexResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -45,9 +54,8 @@ public DeleteIndexResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). - * * @return deletedAt - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date of deletion (ISO-8601 format).") public OffsetDateTime getDeletedAt() { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java new file mode 100644 index 00000000000..43098d70a89 --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java @@ -0,0 +1,87 @@ +package com.algolia.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.Objects; + +/** + * DeleteSourceResponse + */ + +public class DeleteSourceResponse { + + public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; + + @SerializedName(SERIALIZED_NAME_DELETED_AT) + private OffsetDateTime deletedAt; + + public DeleteSourceResponse deletedAt(OffsetDateTime deletedAt) { + this.deletedAt = deletedAt; + return this; + } + + /** + * Date of deletion (ISO-8601 format). + * @return deletedAt + **/ + @javax.annotation.Nonnull + @ApiModelProperty( + required = true, + value = "Date of deletion (ISO-8601 format)." + ) + public OffsetDateTime getDeletedAt() { + return deletedAt; + } + + public void setDeletedAt(OffsetDateTime deletedAt) { + this.deletedAt = deletedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSourceResponse deleteSourceResponse = (DeleteSourceResponse) o; + return Objects.equals(this.deletedAt, deleteSourceResponse.deletedAt); + } + + @Override + public int hashCode() { + return Objects.hash(deletedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSourceResponse {\n"); + sb + .append(" deletedAt: ") + .append(toIndentedString(deletedAt)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java index f087b817349..b1609671b0a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** DeleteSynonymResponse */ +/** + * DeleteSynonymResponse + */ + public class DeleteSynonymResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -25,9 +35,8 @@ public DeleteSynonymResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -48,9 +57,8 @@ public DeleteSynonymResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). - * * @return deletedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -98,7 +106,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java index 95ad6123009..5b906770bd1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java @@ -1,12 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; +import java.util.Map; import java.util.Objects; -/** Error. */ +/** + * Error. + */ @ApiModel(description = "Error.") public class ErrorBase extends HashMap { @@ -22,9 +31,8 @@ public ErrorBase message(String message) { /** * Get message - * * @return message - */ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Invalid Application-Id or API-Key", value = "") public String getMessage() { @@ -63,7 +71,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java index e3792bb9d3c..9a4bf14fdc4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java @@ -1,12 +1,23 @@ package com.algolia.model; +import com.algolia.model.GetLogsResponseLogs; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** GetLogsResponse */ +/** + * GetLogsResponse + */ + public class GetLogsResponse { public static final String SERIALIZED_NAME_LOGS = "logs"; @@ -26,9 +37,8 @@ public GetLogsResponse addLogsItem(GetLogsResponseLogs logsItem) { /** * Get logs - * * @return logs - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getLogs() { @@ -66,7 +76,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java index 83e28e53667..7540165b024 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java @@ -1,10 +1,20 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** GetLogsResponseInnerQueries */ +/** + * GetLogsResponseInnerQueries + */ + public class GetLogsResponseInnerQueries { public static final String SERIALIZED_NAME_INDEX_NAME = "index_name"; @@ -29,9 +39,8 @@ public GetLogsResponseInnerQueries indexName(String indexName) { /** * Index targeted by the query. - * * @return indexName - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Index targeted by the query.") public String getIndexName() { @@ -49,9 +58,8 @@ public GetLogsResponseInnerQueries userToken(String userToken) { /** * User identifier. - * * @return userToken - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "User identifier.") public String getUserToken() { @@ -69,9 +77,8 @@ public GetLogsResponseInnerQueries queryId(String queryId) { /** * QueryID for the given query. - * * @return queryId - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "QueryID for the given query.") public String getQueryId() { @@ -121,7 +128,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java index 4edffb2515f..b1bbcc74cc3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java @@ -1,12 +1,23 @@ package com.algolia.model; +import com.algolia.model.GetLogsResponseInnerQueries; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** GetLogsResponseLogs */ +/** + * GetLogsResponseLogs + */ + public class GetLogsResponseLogs { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @@ -92,9 +103,8 @@ public GetLogsResponseLogs timestamp(String timestamp) { /** * Timestamp in ISO-8601 format. - * * @return timestamp - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Timestamp in ISO-8601 format.") public String getTimestamp() { @@ -112,9 +122,8 @@ public GetLogsResponseLogs method(String method) { /** * HTTP method of the perfomed request. - * * @return method - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -135,9 +144,8 @@ public GetLogsResponseLogs answerCode(String answerCode) { /** * HTTP response code. - * * @return answerCode - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "HTTP response code.") public String getAnswerCode() { @@ -155,9 +163,8 @@ public GetLogsResponseLogs queryBody(String queryBody) { /** * Request body. Truncated after 1000 characters. - * * @return queryBody - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -178,9 +185,8 @@ public GetLogsResponseLogs answer(String answer) { /** * Answer body. Truncated after 1000 characters. - * * @return answer - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -201,9 +207,8 @@ public GetLogsResponseLogs url(String url) { /** * Request URL. - * * @return url - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Request URL.") public String getUrl() { @@ -221,9 +226,8 @@ public GetLogsResponseLogs ip(String ip) { /** * IP of the client which perfomed the request. - * * @return ip - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -244,9 +248,8 @@ public GetLogsResponseLogs queryHeaders(String queryHeaders) { /** * Request Headers (API Key is obfuscated). - * * @return queryHeaders - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -267,9 +270,8 @@ public GetLogsResponseLogs sha1(String sha1) { /** * SHA1 signature of the log entry. - * * @return sha1 - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "SHA1 signature of the log entry.") public String getSha1() { @@ -287,9 +289,8 @@ public GetLogsResponseLogs nbApiCalls(String nbApiCalls) { /** * Number of API calls. - * * @return nbApiCalls - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Number of API calls.") public String getNbApiCalls() { @@ -307,9 +308,8 @@ public GetLogsResponseLogs processingTimeMs(String processingTimeMs) { /** * Processing time for the query. It doesn't include network time. - * * @return processingTimeMs - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -330,9 +330,8 @@ public GetLogsResponseLogs index(String index) { /** * Index targeted by the query. - * * @return index - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Index targeted by the query.") public String getIndex() { @@ -350,9 +349,8 @@ public GetLogsResponseLogs queryParams(String queryParams) { /** * Query parameters sent with the request. - * * @return queryParams - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Query parameters sent with the request.") public String getQueryParams() { @@ -370,9 +368,8 @@ public GetLogsResponseLogs queryNbHits(String queryNbHits) { /** * Number of hits returned for the query. - * * @return queryNbHits - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Number of hits returned for the query.") public String getQueryNbHits() { @@ -402,9 +399,8 @@ public GetLogsResponseLogs addInnerQueriesItem( /** * Array of all performed queries for the given request. - * * @return innerQueries - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Array of all performed queries for the given request." @@ -520,7 +516,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java index 4335d762688..c8f4da866ac 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java @@ -5,14 +5,21 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** GetTaskResponse */ +/** + * GetTaskResponse + */ + public class GetTaskResponse { - /** Gets or Sets status */ + /** + * Gets or Sets status + */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { PUBLISHED("published"), @@ -73,9 +80,8 @@ public GetTaskResponse status(StatusEnum status) { /** * Get status - * * @return status - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public StatusEnum getStatus() { @@ -113,7 +119,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java index eb85a7a0f4f..cf4a3182766 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java @@ -1,14 +1,23 @@ package com.algolia.model; +import com.algolia.model.UserId; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Objects; -/** Array of userIDs and clusters. */ +/** + * Array of userIDs and clusters. + */ @ApiModel(description = "Array of userIDs and clusters.") public class GetTopUserIdsResponse { @@ -33,9 +42,8 @@ public GetTopUserIdsResponse addTopUsersItem( /** * Mapping of cluster names to top users. - * * @return topUsers - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -76,7 +84,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java index fa849127169..d58cc91d13e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** HasPendingMappingsResponse */ +/** + * HasPendingMappingsResponse + */ + public class HasPendingMappingsResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -20,9 +30,8 @@ public HasPendingMappingsResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). - * * @return createdAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -66,7 +75,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java index 606dc0a201d..1eb9e46f490 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java @@ -9,10 +9,13 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** Highlighted attributes. */ +/** + * Highlighted attributes. + */ @ApiModel(description = "Highlighted attributes.") public class HighlightResult { @@ -21,7 +24,9 @@ public class HighlightResult { @SerializedName(SERIALIZED_NAME_VALUE) private String value; - /** Indicates how well the attribute matched the search query. */ + /** + * Indicates how well the attribute matched the search query. + */ @JsonAdapter(MatchLevelEnum.Adapter.class) public enum MatchLevelEnum { NONE("none"), @@ -96,9 +101,8 @@ public HighlightResult value(String value) { /** * Markup text with occurrences highlighted. - * * @return value - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "George Clooney", @@ -119,9 +123,8 @@ public HighlightResult matchLevel(MatchLevelEnum matchLevel) { /** * Indicates how well the attribute matched the search query. - * * @return matchLevel - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Indicates how well the attribute matched the search query." @@ -149,9 +152,8 @@ public HighlightResult addMatchedWordsItem(String matchedWordsItem) { /** * List of words from the query that matched the object. - * * @return matchedWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of words from the query that matched the object." @@ -171,9 +173,8 @@ public HighlightResult fullyHighlighted(Boolean fullyHighlighted) { /** * Whether the entire attribute value is highlighted. - * * @return fullyHighlighted - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the entire attribute value is highlighted." @@ -230,7 +231,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java index 9f28608505e..5f35cd4e2e1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java @@ -1,13 +1,23 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** Index */ +/** + * Index + */ + public class Index { public static final String SERIALIZED_NAME_NAME = "name"; @@ -74,9 +84,8 @@ public Index name(String name) { /** * Index name. - * * @return name - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Index name.") public String getName() { @@ -94,9 +103,8 @@ public Index createdAt(OffsetDateTime createdAt) { /** * Index creation date. An empty string means that the index has no records. - * * @return createdAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -117,9 +125,8 @@ public Index updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -140,9 +147,8 @@ public Index entries(Integer entries) { /** * Number of records contained in the index. - * * @return entries - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -163,9 +169,8 @@ public Index dataSize(Integer dataSize) { /** * Number of bytes of the index in minified format. - * * @return dataSize - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -186,9 +191,8 @@ public Index fileSize(Integer fileSize) { /** * Number of bytes of the index binary file. - * * @return fileSize - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -209,9 +213,8 @@ public Index lastBuildTimeS(Integer lastBuildTimeS) { /** * Last build time - * * @return lastBuildTimeS - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Last build time") public Integer getLastBuildTimeS() { @@ -229,9 +232,8 @@ public Index numberOfPendingTask(Integer numberOfPendingTask) { /** * Number of pending indexing operations. This value is deprecated and should not be used. - * * @return numberOfPendingTask - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Number of pending indexing operations. This value is deprecated and should not be used." @@ -250,16 +252,13 @@ public Index pendingTask(Boolean pendingTask) { } /** - * A boolean which says whether the index has pending tasks. This value is deprecated and should - * not be used. - * + * A boolean which says whether the index has pending tasks. This value is deprecated and should not be used. * @return pendingTask - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "A boolean which says whether the index has pending tasks. This value is deprecated and" + - " should not be used." + value = "A boolean which says whether the index has pending tasks. This value is deprecated and should not be used." ) public Boolean getPendingTask() { return pendingTask; @@ -276,9 +275,8 @@ public Index primary(String primary) { /** * Only present if the index is a replica. Contains the name of the related primary index. - * * @return primary - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Only present if the index is a replica. Contains the name of the related primary index." @@ -305,15 +303,12 @@ public Index addReplicasItem(String replicasItem) { } /** - * Only present if the index is a primary index with replicas. Contains the names of all linked - * replicas. - * + * Only present if the index is a primary index with replicas. Contains the names of all linked replicas. * @return replicas - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Only present if the index is a primary index with replicas. Contains the names of all" + - " linked replicas." + value = "Only present if the index is a primary index with replicas. Contains the names of all linked replicas." ) public List getReplicas() { return replicas; @@ -399,7 +394,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java index 5b043ad11c5..82a3508275d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java @@ -1,5 +1,7 @@ package com.algolia.model; +import com.algolia.model.BaseIndexSettings; +import com.algolia.model.IndexSettingsAsSearchParams; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -9,12 +11,15 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -/** The Algolia index settings. */ +/** + * The Algolia index settings. + */ @ApiModel(description = "The Algolia index settings.") public class IndexSettings { @@ -185,7 +190,9 @@ public class IndexSettings { @SerializedName(SERIALIZED_NAME_MIN_WORD_SIZEFOR2_TYPOS) private Integer minWordSizefor2Typos = 8; - /** Controls whether typo tolerance is enabled and how it is applied. */ + /** + * Controls whether typo tolerance is enabled and how it is applied. + */ @JsonAdapter(TypoToleranceEnum.Adapter.class) public enum TypoToleranceEnum { TRUE("true"), @@ -301,7 +308,9 @@ public TypoToleranceEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ENABLE_PERSONALIZATION) private Boolean enablePersonalization = false; - /** Controls if and how query words are interpreted as prefixes. */ + /** + * Controls if and how query words are interpreted as prefixes. + */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { PREFIXLAST("prefixLast"), @@ -358,7 +367,9 @@ public QueryTypeEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_QUERY_TYPE) private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; - /** Selects a strategy to remove words from the query when it doesn’t match any hits. */ + /** + * Selects a strategy to remove words from the query when it doesn’t match any hits. + */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), @@ -436,7 +447,9 @@ public RemoveWordsIfNoResultsEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DISABLE_EXACT_ON_ATTRIBUTES) private List disableExactOnAttributes = null; - /** Controls how the exact ranking criterion is computed when the query contains only one word. */ + /** + * Controls how the exact ranking criterion is computed when the query contains only one word. + */ @JsonAdapter(ExactOnSingleWordQueryEnum.Adapter.class) public enum ExactOnSingleWordQueryEnum { ATTRIBUTE("attribute"), @@ -496,7 +509,9 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) private ExactOnSingleWordQueryEnum exactOnSingleWordQuery = ExactOnSingleWordQueryEnum.ATTRIBUTE; - /** Gets or Sets alternativesAsExact */ + /** + * Gets or Sets alternativesAsExact + */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { IGNOREPLURALS("ignorePlurals"), @@ -554,7 +569,9 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ALTERNATIVES_AS_EXACT) private List alternativesAsExact = null; - /** Gets or Sets advancedSyntaxFeatures */ + /** + * Gets or Sets advancedSyntaxFeatures + */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { EXACTPHRASE("exactPhrase"), @@ -669,9 +686,8 @@ public IndexSettings addReplicasItem(String replicasItem) { /** * Creates replicas, exact copies of an index. - * * @return replicas - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Creates replicas, exact copies of an index.") public List getReplicas() { @@ -689,9 +705,8 @@ public IndexSettings paginationLimitedTo(Integer paginationLimitedTo) { /** * Set the maximum number of hits accessible via pagination. - * * @return paginationLimitedTo - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Set the maximum number of hits accessible via pagination." @@ -723,9 +738,8 @@ public IndexSettings addDisableTypoToleranceOnWordsItem( /** * A list of words for which you want to turn off typo tolerance. - * * @return disableTypoToleranceOnWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words for which you want to turn off typo tolerance." @@ -759,9 +773,8 @@ public IndexSettings addAttributesToTransliterateItem( /** * Specify on which attributes to apply transliteration. - * * @return attributesToTransliterate - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Specify on which attributes to apply transliteration." @@ -793,9 +806,8 @@ public IndexSettings addCamelCaseAttributesItem( /** * List of attributes on which to do a decomposition of camel case words. - * * @return camelCaseAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which to do a decomposition of camel case words." @@ -827,15 +839,12 @@ public IndexSettings putDecompoundedAttributesItem( } /** - * Specify on which attributes in your index Algolia should apply word segmentation, also known as - * decompounding. - * + * Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding. * @return decompoundedAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Specify on which attributes in your index Algolia should apply word segmentation, also" + - " known as decompounding." + value = "Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding." ) public Map getDecompoundedAttributes() { return decompoundedAttributes; @@ -861,15 +870,12 @@ public IndexSettings addIndexLanguagesItem(String indexLanguagesItem) { } /** - * Sets the languages at the index level for language-specific processing such as tokenization and - * normalization. - * + * Sets the languages at the index level for language-specific processing such as tokenization and normalization. * @return indexLanguages - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages at the index level for language-specific processing such as" + - " tokenization and normalization." + value = "Sets the languages at the index level for language-specific processing such as tokenization and normalization." ) public List getIndexLanguages() { return indexLanguages; @@ -885,15 +891,12 @@ public IndexSettings filterPromotes(Boolean filterPromotes) { } /** - * Whether promoted results should match the filters of the current search, except for geographic - * filters. - * + * Whether promoted results should match the filters of the current search, except for geographic filters. * @return filterPromotes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether promoted results should match the filters of the current search, except for" + - " geographic filters." + value = "Whether promoted results should match the filters of the current search, except for geographic filters." ) public Boolean getFilterPromotes() { return filterPromotes; @@ -922,9 +925,8 @@ public IndexSettings addDisablePrefixOnAttributesItem( /** * List of attributes on which you want to disable prefix matching. - * * @return disablePrefixOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable prefix matching." @@ -948,9 +950,8 @@ public IndexSettings allowCompressionOfIntegerArray( /** * Enables compression of large integer arrays. - * * @return allowCompressionOfIntegerArray - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables compression of large integer arrays.") public Boolean getAllowCompressionOfIntegerArray() { @@ -982,9 +983,8 @@ public IndexSettings addNumericAttributesForFilteringItem( /** * List of numeric attributes that can be used as numerical filters. - * * @return numericAttributesForFiltering - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of numeric attributes that can be used as numerical filters." @@ -1014,9 +1014,8 @@ public IndexSettings putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. - * * @return userData - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -1044,9 +1043,8 @@ public IndexSettings addSearchableAttributesItem( /** * The complete list of attributes used for searching. - * * @return searchableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes used for searching." @@ -1078,9 +1076,8 @@ public IndexSettings addAttributesForFacetingItem( /** * The complete list of attributes that will be used for faceting. - * * @return attributesForFaceting - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes that will be used for faceting." @@ -1112,9 +1109,8 @@ public IndexSettings addUnretrievableAttributesItem( /** * List of attributes that can’t be retrieved at query time. - * * @return unretrievableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes that can’t be retrieved at query time." @@ -1144,9 +1140,8 @@ public IndexSettings addAttributesToRetrieveItem( /** * This parameter controls which attributes to retrieve and which not to retrieve. - * * @return attributesToRetrieve - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "This parameter controls which attributes to retrieve and which not to retrieve." @@ -1178,9 +1173,8 @@ public IndexSettings addRestrictSearchableAttributesItem( /** * Restricts a given query to look in only a subset of your searchable attributes. - * * @return restrictSearchableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Restricts a given query to look in only a subset of your searchable attributes." @@ -1210,9 +1204,8 @@ public IndexSettings addRankingItem(String rankingItem) { /** * Controls how Algolia should sort your results. - * * @return ranking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how Algolia should sort your results.") public List getRanking() { @@ -1238,9 +1231,8 @@ public IndexSettings addCustomRankingItem(String customRankingItem) { /** * Specifies the custom ranking criterion. - * * @return customRanking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the custom ranking criterion.") public List getCustomRanking() { @@ -1257,15 +1249,12 @@ public IndexSettings relevancyStrictness(Integer relevancyStrictness) { } /** - * Controls the relevancy threshold below which less relevant results aren’t included in the - * results. - * + * Controls the relevancy threshold below which less relevant results aren’t included in the results. * @return relevancyStrictness - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls the relevancy threshold below which less relevant results aren’t included in" + - " the results." + value = "Controls the relevancy threshold below which less relevant results aren’t included in the results." ) public Integer getRelevancyStrictness() { return relevancyStrictness; @@ -1294,9 +1283,8 @@ public IndexSettings addAttributesToHighlightItem( /** * List of attributes to highlight. - * * @return attributesToHighlight - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "List of attributes to highlight.") public List getAttributesToHighlight() { @@ -1324,9 +1312,8 @@ public IndexSettings addAttributesToSnippetItem( /** * List of attributes to snippet, with an optional maximum number of words to snippet. - * * @return attributesToSnippet - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes to snippet, with an optional maximum number of words to snippet." @@ -1346,13 +1333,11 @@ public IndexSettings highlightPreTag(String highlightPreTag) { /** * The HTML string to insert before the highlighted parts in all highlight and snippet results. - * * @return highlightPreTag - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert before the highlighted parts in all highlight and snippet" + - " results." + value = "The HTML string to insert before the highlighted parts in all highlight and snippet results." ) public String getHighlightPreTag() { return highlightPreTag; @@ -1369,13 +1354,11 @@ public IndexSettings highlightPostTag(String highlightPostTag) { /** * The HTML string to insert after the highlighted parts in all highlight and snippet results. - * * @return highlightPostTag - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert after the highlighted parts in all highlight and snippet" + - " results." + value = "The HTML string to insert after the highlighted parts in all highlight and snippet results." ) public String getHighlightPostTag() { return highlightPostTag; @@ -1392,9 +1375,8 @@ public IndexSettings snippetEllipsisText(String snippetEllipsisText) { /** * String used as an ellipsis indicator when a snippet is truncated. - * * @return snippetEllipsisText - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "String used as an ellipsis indicator when a snippet is truncated." @@ -1416,9 +1398,8 @@ public IndexSettings restrictHighlightAndSnippetArrays( /** * Restrict highlighting and snippeting to items that matched the query. - * * @return restrictHighlightAndSnippetArrays - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Restrict highlighting and snippeting to items that matched the query." @@ -1440,9 +1421,8 @@ public IndexSettings hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. - * * @return hitsPerPage - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -1459,15 +1439,12 @@ public IndexSettings minWordSizefor1Typo(Integer minWordSizefor1Typo) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 1 - * typo. - * + * Minimum number of characters a word in the query string must contain to accept matches with 1 typo. * @return minWordSizefor1Typo - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches" + - " with 1 typo." + value = "Minimum number of characters a word in the query string must contain to accept matches with 1 typo." ) public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; @@ -1483,15 +1460,12 @@ public IndexSettings minWordSizefor2Typos(Integer minWordSizefor2Typos) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 2 - * typos. - * + * Minimum number of characters a word in the query string must contain to accept matches with 2 typos. * @return minWordSizefor2Typos - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches" + - " with 2 typos." + value = "Minimum number of characters a word in the query string must contain to accept matches with 2 typos." ) public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; @@ -1508,9 +1482,8 @@ public IndexSettings typoTolerance(TypoToleranceEnum typoTolerance) { /** * Controls whether typo tolerance is enabled and how it is applied. - * * @return typoTolerance - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Controls whether typo tolerance is enabled and how it is applied." @@ -1532,9 +1505,8 @@ public IndexSettings allowTyposOnNumericTokens( /** * Whether to allow typos on numbers (“numeric tokens”) in the query string. - * * @return allowTyposOnNumericTokens - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to allow typos on numbers (“numeric tokens”) in the query string." @@ -1568,9 +1540,8 @@ public IndexSettings addDisableTypoToleranceOnAttributesItem( /** * List of attributes on which you want to disable typo tolerance. - * * @return disableTypoToleranceOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable typo tolerance." @@ -1592,9 +1563,8 @@ public IndexSettings separatorsToIndex(String separatorsToIndex) { /** * Control which separators are indexed. - * * @return separatorsToIndex - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Control which separators are indexed.") public String getSeparatorsToIndex() { @@ -1612,9 +1582,8 @@ public IndexSettings ignorePlurals(String ignorePlurals) { /** * Treats singular, plurals, and other forms of declensions as matching terms. - * * @return ignorePlurals - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Treats singular, plurals, and other forms of declensions as matching terms." @@ -1634,9 +1603,8 @@ public IndexSettings removeStopWords(String removeStopWords) { /** * Removes stop (common) words from the query before executing it. - * * @return removeStopWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Removes stop (common) words from the query before executing it." @@ -1658,9 +1626,8 @@ public IndexSettings keepDiacriticsOnCharacters( /** * List of characters that the engine shouldn’t automatically normalize. - * * @return keepDiacriticsOnCharacters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of characters that the engine shouldn’t automatically normalize." @@ -1687,15 +1654,12 @@ public IndexSettings addQueryLanguagesItem(String queryLanguagesItem) { } /** - * Sets the languages to be used by language-specific settings and functionalities such as - * ignorePlurals, removeStopWords, and CJK word-detection. - * + * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection. * @return queryLanguages - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages to be used by language-specific settings and functionalities such as" + - " ignorePlurals, removeStopWords, and CJK word-detection." + value = "Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection." ) public List getQueryLanguages() { return queryLanguages; @@ -1712,9 +1676,8 @@ public IndexSettings decompoundQuery(Boolean decompoundQuery) { /** * Splits compound words into their composing atoms in the query. - * * @return decompoundQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Splits compound words into their composing atoms in the query." @@ -1734,9 +1697,8 @@ public IndexSettings enableRules(Boolean enableRules) { /** * Whether Rules should be globally enabled. - * * @return enableRules - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Whether Rules should be globally enabled.") public Boolean getEnableRules() { @@ -1754,9 +1716,8 @@ public IndexSettings enablePersonalization(Boolean enablePersonalization) { /** * Enable the Personalization feature. - * * @return enablePersonalization - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Personalization feature.") public Boolean getEnablePersonalization() { @@ -1774,9 +1735,8 @@ public IndexSettings queryType(QueryTypeEnum queryType) { /** * Controls if and how query words are interpreted as prefixes. - * * @return queryType - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Controls if and how query words are interpreted as prefixes." @@ -1798,9 +1758,8 @@ public IndexSettings removeWordsIfNoResults( /** * Selects a strategy to remove words from the query when it doesn’t match any hits. - * * @return removeWordsIfNoResults - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Selects a strategy to remove words from the query when it doesn’t match any hits." @@ -1822,9 +1781,8 @@ public IndexSettings advancedSyntax(Boolean advancedSyntax) { /** * Enables the advanced query syntax. - * * @return advancedSyntax - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables the advanced query syntax.") public Boolean getAdvancedSyntax() { @@ -1850,9 +1808,8 @@ public IndexSettings addOptionalWordsItem(String optionalWordsItem) { /** * A list of words that should be considered as optional when found in the query. - * * @return optionalWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words that should be considered as optional when found in the query." @@ -1884,9 +1841,8 @@ public IndexSettings addDisableExactOnAttributesItem( /** * List of attributes on which you want to disable the exact ranking criterion. - * * @return disableExactOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable the exact ranking criterion." @@ -1910,13 +1866,11 @@ public IndexSettings exactOnSingleWordQuery( /** * Controls how the exact ranking criterion is computed when the query contains only one word. - * * @return exactOnSingleWordQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls how the exact ranking criterion is computed when the query contains only one" + - " word." + value = "Controls how the exact ranking criterion is computed when the query contains only one word." ) public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; @@ -1947,13 +1901,11 @@ public IndexSettings addAlternativesAsExactItem( /** * List of alternatives that should be considered an exact match by the exact ranking criterion. - * * @return alternativesAsExact - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "List of alternatives that should be considered an exact match by the exact ranking" + - " criterion." + value = "List of alternatives that should be considered an exact match by the exact ranking criterion." ) public List getAlternativesAsExact() { return alternativesAsExact; @@ -1983,15 +1935,12 @@ public IndexSettings addAdvancedSyntaxFeaturesItem( } /** - * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is - * enabled. - * + * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled. * @return advancedSyntaxFeatures - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is" + - " enabled." + value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled." ) public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; @@ -2009,10 +1958,11 @@ public IndexSettings distinct(Integer distinct) { } /** - * Enables de-duplication or grouping of results. minimum: 0 maximum: 4 - * + * Enables de-duplication or grouping of results. + * minimum: 0 + * maximum: 4 * @return distinct - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables de-duplication or grouping of results.") public Integer getDistinct() { @@ -2030,9 +1980,8 @@ public IndexSettings synonyms(Boolean synonyms) { /** * Whether to take into account an index’s synonyms for a particular search. - * * @return synonyms - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to take into account an index’s synonyms for a particular search." @@ -2053,15 +2002,12 @@ public IndexSettings replaceSynonymsInHighlight( } /** - * Whether to highlight and snippet the original word that matches the synonym or the synonym - * itself. - * + * Whether to highlight and snippet the original word that matches the synonym or the synonym itself. * @return replaceSynonymsInHighlight - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether to highlight and snippet the original word that matches the synonym or the" + - " synonym itself." + value = "Whether to highlight and snippet the original word that matches the synonym or the synonym itself." ) public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; @@ -2079,10 +2025,11 @@ public IndexSettings minProximity(Integer minProximity) { } /** - * Precision of the proximity ranking criterion. minimum: 1 maximum: 7 - * + * Precision of the proximity ranking criterion. + * minimum: 1 + * maximum: 7 * @return minProximity - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Precision of the proximity ranking criterion.") public Integer getMinProximity() { @@ -2107,15 +2054,12 @@ public IndexSettings addResponseFieldsItem(String responseFieldsItem) { } /** - * Choose which fields to return in the API response. This parameters applies to search and browse - * queries. - * + * Choose which fields to return in the API response. This parameters applies to search and browse queries. * @return responseFields - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Choose which fields to return in the API response. This parameters applies to search and" + - " browse queries." + value = "Choose which fields to return in the API response. This parameters applies to search and browse queries." ) public List getResponseFields() { return responseFields; @@ -2132,9 +2076,8 @@ public IndexSettings maxFacetHits(Integer maxFacetHits) { /** * Maximum number of facet hits to return during a search for facet values. - * * @return maxFacetHits - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet hits to return during a search for facet values." @@ -2156,15 +2099,12 @@ public IndexSettings attributeCriteriaComputedByMinProximity( } /** - * When attribute is ranked above proximity in your ranking formula, proximity is used to select - * which searchable attribute is matched in the attribute ranking stage. - * + * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage. * @return attributeCriteriaComputedByMinProximity - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "When attribute is ranked above proximity in your ranking formula, proximity is used to" + - " select which searchable attribute is matched in the attribute ranking stage." + value = "When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage." ) public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; @@ -2183,15 +2123,12 @@ public IndexSettings renderingContent(Object renderingContent) { } /** - * Content defining how the search interface should be rendered. Can be set via the settings for a - * default value and can be overridden via rules. - * + * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules. * @return renderingContent - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Content defining how the search interface should be rendered. Can be set via the" + - " settings for a default value and can be overridden via rules." + value = "Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules." ) public Object getRenderingContent() { return renderingContent; @@ -2643,7 +2580,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java index 88e9177b84f..e7f52143788 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java @@ -5,13 +5,18 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** IndexSettingsAsSearchParams */ +/** + * IndexSettingsAsSearchParams + */ + public class IndexSettingsAsSearchParams { public static final String SERIALIZED_NAME_SEARCHABLE_ATTRIBUTES = @@ -113,7 +118,9 @@ public class IndexSettingsAsSearchParams { @SerializedName(SERIALIZED_NAME_MIN_WORD_SIZEFOR2_TYPOS) private Integer minWordSizefor2Typos = 8; - /** Controls whether typo tolerance is enabled and how it is applied. */ + /** + * Controls whether typo tolerance is enabled and how it is applied. + */ @JsonAdapter(TypoToleranceEnum.Adapter.class) public enum TypoToleranceEnum { TRUE("true"), @@ -229,7 +236,9 @@ public TypoToleranceEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ENABLE_PERSONALIZATION) private Boolean enablePersonalization = false; - /** Controls if and how query words are interpreted as prefixes. */ + /** + * Controls if and how query words are interpreted as prefixes. + */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { PREFIXLAST("prefixLast"), @@ -286,7 +295,9 @@ public QueryTypeEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_QUERY_TYPE) private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; - /** Selects a strategy to remove words from the query when it doesn’t match any hits. */ + /** + * Selects a strategy to remove words from the query when it doesn’t match any hits. + */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), @@ -364,7 +375,9 @@ public RemoveWordsIfNoResultsEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DISABLE_EXACT_ON_ATTRIBUTES) private List disableExactOnAttributes = null; - /** Controls how the exact ranking criterion is computed when the query contains only one word. */ + /** + * Controls how the exact ranking criterion is computed when the query contains only one word. + */ @JsonAdapter(ExactOnSingleWordQueryEnum.Adapter.class) public enum ExactOnSingleWordQueryEnum { ATTRIBUTE("attribute"), @@ -424,7 +437,9 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) private ExactOnSingleWordQueryEnum exactOnSingleWordQuery = ExactOnSingleWordQueryEnum.ATTRIBUTE; - /** Gets or Sets alternativesAsExact */ + /** + * Gets or Sets alternativesAsExact + */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { IGNOREPLURALS("ignorePlurals"), @@ -482,7 +497,9 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ALTERNATIVES_AS_EXACT) private List alternativesAsExact = null; - /** Gets or Sets advancedSyntaxFeatures */ + /** + * Gets or Sets advancedSyntaxFeatures + */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { EXACTPHRASE("exactPhrase"), @@ -601,9 +618,8 @@ public IndexSettingsAsSearchParams addSearchableAttributesItem( /** * The complete list of attributes used for searching. - * * @return searchableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes used for searching." @@ -635,9 +651,8 @@ public IndexSettingsAsSearchParams addAttributesForFacetingItem( /** * The complete list of attributes that will be used for faceting. - * * @return attributesForFaceting - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes that will be used for faceting." @@ -669,9 +684,8 @@ public IndexSettingsAsSearchParams addUnretrievableAttributesItem( /** * List of attributes that can’t be retrieved at query time. - * * @return unretrievableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes that can’t be retrieved at query time." @@ -703,9 +717,8 @@ public IndexSettingsAsSearchParams addAttributesToRetrieveItem( /** * This parameter controls which attributes to retrieve and which not to retrieve. - * * @return attributesToRetrieve - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "This parameter controls which attributes to retrieve and which not to retrieve." @@ -737,9 +750,8 @@ public IndexSettingsAsSearchParams addRestrictSearchableAttributesItem( /** * Restricts a given query to look in only a subset of your searchable attributes. - * * @return restrictSearchableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Restricts a given query to look in only a subset of your searchable attributes." @@ -769,9 +781,8 @@ public IndexSettingsAsSearchParams addRankingItem(String rankingItem) { /** * Controls how Algolia should sort your results. - * * @return ranking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how Algolia should sort your results.") public List getRanking() { @@ -799,9 +810,8 @@ public IndexSettingsAsSearchParams addCustomRankingItem( /** * Specifies the custom ranking criterion. - * * @return customRanking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the custom ranking criterion.") public List getCustomRanking() { @@ -820,15 +830,12 @@ public IndexSettingsAsSearchParams relevancyStrictness( } /** - * Controls the relevancy threshold below which less relevant results aren’t included in the - * results. - * + * Controls the relevancy threshold below which less relevant results aren’t included in the results. * @return relevancyStrictness - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls the relevancy threshold below which less relevant results aren’t included in" + - " the results." + value = "Controls the relevancy threshold below which less relevant results aren’t included in the results." ) public Integer getRelevancyStrictness() { return relevancyStrictness; @@ -857,9 +864,8 @@ public IndexSettingsAsSearchParams addAttributesToHighlightItem( /** * List of attributes to highlight. - * * @return attributesToHighlight - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "List of attributes to highlight.") public List getAttributesToHighlight() { @@ -889,9 +895,8 @@ public IndexSettingsAsSearchParams addAttributesToSnippetItem( /** * List of attributes to snippet, with an optional maximum number of words to snippet. - * * @return attributesToSnippet - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes to snippet, with an optional maximum number of words to snippet." @@ -911,13 +916,11 @@ public IndexSettingsAsSearchParams highlightPreTag(String highlightPreTag) { /** * The HTML string to insert before the highlighted parts in all highlight and snippet results. - * * @return highlightPreTag - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert before the highlighted parts in all highlight and snippet" + - " results." + value = "The HTML string to insert before the highlighted parts in all highlight and snippet results." ) public String getHighlightPreTag() { return highlightPreTag; @@ -934,13 +937,11 @@ public IndexSettingsAsSearchParams highlightPostTag(String highlightPostTag) { /** * The HTML string to insert after the highlighted parts in all highlight and snippet results. - * * @return highlightPostTag - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert after the highlighted parts in all highlight and snippet" + - " results." + value = "The HTML string to insert after the highlighted parts in all highlight and snippet results." ) public String getHighlightPostTag() { return highlightPostTag; @@ -959,9 +960,8 @@ public IndexSettingsAsSearchParams snippetEllipsisText( /** * String used as an ellipsis indicator when a snippet is truncated. - * * @return snippetEllipsisText - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "String used as an ellipsis indicator when a snippet is truncated." @@ -983,9 +983,8 @@ public IndexSettingsAsSearchParams restrictHighlightAndSnippetArrays( /** * Restrict highlighting and snippeting to items that matched the query. - * * @return restrictHighlightAndSnippetArrays - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Restrict highlighting and snippeting to items that matched the query." @@ -1007,9 +1006,8 @@ public IndexSettingsAsSearchParams hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. - * * @return hitsPerPage - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -1028,15 +1026,12 @@ public IndexSettingsAsSearchParams minWordSizefor1Typo( } /** - * Minimum number of characters a word in the query string must contain to accept matches with 1 - * typo. - * + * Minimum number of characters a word in the query string must contain to accept matches with 1 typo. * @return minWordSizefor1Typo - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches" + - " with 1 typo." + value = "Minimum number of characters a word in the query string must contain to accept matches with 1 typo." ) public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; @@ -1054,15 +1049,12 @@ public IndexSettingsAsSearchParams minWordSizefor2Typos( } /** - * Minimum number of characters a word in the query string must contain to accept matches with 2 - * typos. - * + * Minimum number of characters a word in the query string must contain to accept matches with 2 typos. * @return minWordSizefor2Typos - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches" + - " with 2 typos." + value = "Minimum number of characters a word in the query string must contain to accept matches with 2 typos." ) public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; @@ -1081,9 +1073,8 @@ public IndexSettingsAsSearchParams typoTolerance( /** * Controls whether typo tolerance is enabled and how it is applied. - * * @return typoTolerance - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Controls whether typo tolerance is enabled and how it is applied." @@ -1105,9 +1096,8 @@ public IndexSettingsAsSearchParams allowTyposOnNumericTokens( /** * Whether to allow typos on numbers (“numeric tokens”) in the query string. - * * @return allowTyposOnNumericTokens - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to allow typos on numbers (“numeric tokens”) in the query string." @@ -1141,9 +1131,8 @@ public IndexSettingsAsSearchParams addDisableTypoToleranceOnAttributesItem( /** * List of attributes on which you want to disable typo tolerance. - * * @return disableTypoToleranceOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable typo tolerance." @@ -1167,9 +1156,8 @@ public IndexSettingsAsSearchParams separatorsToIndex( /** * Control which separators are indexed. - * * @return separatorsToIndex - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Control which separators are indexed.") public String getSeparatorsToIndex() { @@ -1187,9 +1175,8 @@ public IndexSettingsAsSearchParams ignorePlurals(String ignorePlurals) { /** * Treats singular, plurals, and other forms of declensions as matching terms. - * * @return ignorePlurals - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Treats singular, plurals, and other forms of declensions as matching terms." @@ -1209,9 +1196,8 @@ public IndexSettingsAsSearchParams removeStopWords(String removeStopWords) { /** * Removes stop (common) words from the query before executing it. - * * @return removeStopWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Removes stop (common) words from the query before executing it." @@ -1233,9 +1219,8 @@ public IndexSettingsAsSearchParams keepDiacriticsOnCharacters( /** * List of characters that the engine shouldn’t automatically normalize. - * * @return keepDiacriticsOnCharacters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of characters that the engine shouldn’t automatically normalize." @@ -1266,15 +1251,12 @@ public IndexSettingsAsSearchParams addQueryLanguagesItem( } /** - * Sets the languages to be used by language-specific settings and functionalities such as - * ignorePlurals, removeStopWords, and CJK word-detection. - * + * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection. * @return queryLanguages - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages to be used by language-specific settings and functionalities such as" + - " ignorePlurals, removeStopWords, and CJK word-detection." + value = "Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection." ) public List getQueryLanguages() { return queryLanguages; @@ -1291,9 +1273,8 @@ public IndexSettingsAsSearchParams decompoundQuery(Boolean decompoundQuery) { /** * Splits compound words into their composing atoms in the query. - * * @return decompoundQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Splits compound words into their composing atoms in the query." @@ -1313,9 +1294,8 @@ public IndexSettingsAsSearchParams enableRules(Boolean enableRules) { /** * Whether Rules should be globally enabled. - * * @return enableRules - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Whether Rules should be globally enabled.") public Boolean getEnableRules() { @@ -1335,9 +1315,8 @@ public IndexSettingsAsSearchParams enablePersonalization( /** * Enable the Personalization feature. - * * @return enablePersonalization - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Personalization feature.") public Boolean getEnablePersonalization() { @@ -1355,9 +1334,8 @@ public IndexSettingsAsSearchParams queryType(QueryTypeEnum queryType) { /** * Controls if and how query words are interpreted as prefixes. - * * @return queryType - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Controls if and how query words are interpreted as prefixes." @@ -1379,9 +1357,8 @@ public IndexSettingsAsSearchParams removeWordsIfNoResults( /** * Selects a strategy to remove words from the query when it doesn’t match any hits. - * * @return removeWordsIfNoResults - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Selects a strategy to remove words from the query when it doesn’t match any hits." @@ -1403,9 +1380,8 @@ public IndexSettingsAsSearchParams advancedSyntax(Boolean advancedSyntax) { /** * Enables the advanced query syntax. - * * @return advancedSyntax - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables the advanced query syntax.") public Boolean getAdvancedSyntax() { @@ -1433,9 +1409,8 @@ public IndexSettingsAsSearchParams addOptionalWordsItem( /** * A list of words that should be considered as optional when found in the query. - * * @return optionalWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words that should be considered as optional when found in the query." @@ -1467,9 +1442,8 @@ public IndexSettingsAsSearchParams addDisableExactOnAttributesItem( /** * List of attributes on which you want to disable the exact ranking criterion. - * * @return disableExactOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable the exact ranking criterion." @@ -1493,13 +1467,11 @@ public IndexSettingsAsSearchParams exactOnSingleWordQuery( /** * Controls how the exact ranking criterion is computed when the query contains only one word. - * * @return exactOnSingleWordQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls how the exact ranking criterion is computed when the query contains only one" + - " word." + value = "Controls how the exact ranking criterion is computed when the query contains only one word." ) public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; @@ -1530,13 +1502,11 @@ public IndexSettingsAsSearchParams addAlternativesAsExactItem( /** * List of alternatives that should be considered an exact match by the exact ranking criterion. - * * @return alternativesAsExact - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "List of alternatives that should be considered an exact match by the exact ranking" + - " criterion." + value = "List of alternatives that should be considered an exact match by the exact ranking criterion." ) public List getAlternativesAsExact() { return alternativesAsExact; @@ -1566,15 +1536,12 @@ public IndexSettingsAsSearchParams addAdvancedSyntaxFeaturesItem( } /** - * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is - * enabled. - * + * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled. * @return advancedSyntaxFeatures - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is" + - " enabled." + value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled." ) public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; @@ -1592,10 +1559,11 @@ public IndexSettingsAsSearchParams distinct(Integer distinct) { } /** - * Enables de-duplication or grouping of results. minimum: 0 maximum: 4 - * + * Enables de-duplication or grouping of results. + * minimum: 0 + * maximum: 4 * @return distinct - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables de-duplication or grouping of results.") public Integer getDistinct() { @@ -1613,9 +1581,8 @@ public IndexSettingsAsSearchParams synonyms(Boolean synonyms) { /** * Whether to take into account an index’s synonyms for a particular search. - * * @return synonyms - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to take into account an index’s synonyms for a particular search." @@ -1636,15 +1603,12 @@ public IndexSettingsAsSearchParams replaceSynonymsInHighlight( } /** - * Whether to highlight and snippet the original word that matches the synonym or the synonym - * itself. - * + * Whether to highlight and snippet the original word that matches the synonym or the synonym itself. * @return replaceSynonymsInHighlight - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether to highlight and snippet the original word that matches the synonym or the" + - " synonym itself." + value = "Whether to highlight and snippet the original word that matches the synonym or the synonym itself." ) public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; @@ -1662,10 +1626,11 @@ public IndexSettingsAsSearchParams minProximity(Integer minProximity) { } /** - * Precision of the proximity ranking criterion. minimum: 1 maximum: 7 - * + * Precision of the proximity ranking criterion. + * minimum: 1 + * maximum: 7 * @return minProximity - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Precision of the proximity ranking criterion.") public Integer getMinProximity() { @@ -1694,15 +1659,12 @@ public IndexSettingsAsSearchParams addResponseFieldsItem( } /** - * Choose which fields to return in the API response. This parameters applies to search and browse - * queries. - * + * Choose which fields to return in the API response. This parameters applies to search and browse queries. * @return responseFields - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Choose which fields to return in the API response. This parameters applies to search and" + - " browse queries." + value = "Choose which fields to return in the API response. This parameters applies to search and browse queries." ) public List getResponseFields() { return responseFields; @@ -1719,9 +1681,8 @@ public IndexSettingsAsSearchParams maxFacetHits(Integer maxFacetHits) { /** * Maximum number of facet hits to return during a search for facet values. - * * @return maxFacetHits - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet hits to return during a search for facet values." @@ -1743,15 +1704,12 @@ public IndexSettingsAsSearchParams attributeCriteriaComputedByMinProximity( } /** - * When attribute is ranked above proximity in your ranking formula, proximity is used to select - * which searchable attribute is matched in the attribute ranking stage. - * + * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage. * @return attributeCriteriaComputedByMinProximity - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "When attribute is ranked above proximity in your ranking formula, proximity is used to" + - " select which searchable attribute is matched in the attribute ranking stage." + value = "When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage." ) public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; @@ -1770,15 +1728,12 @@ public IndexSettingsAsSearchParams renderingContent(Object renderingContent) { } /** - * Content defining how the search interface should be rendered. Can be set via the settings for a - * default value and can be overridden via rules. - * + * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules. * @return renderingContent - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Content defining how the search interface should be rendered. Can be set via the" + - " settings for a default value and can be overridden via rules." + value = "Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules." ) public Object getRenderingContent() { return renderingContent; @@ -2191,7 +2146,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java index 465c39dc574..5eb87bda20b 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java @@ -1,21 +1,30 @@ package com.algolia.model; +import com.algolia.model.ApiKey; +import com.algolia.model.CreatedAtObject; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** KeyObject */ +/** + * KeyObject + */ + public class KeyObject { - /** Gets or Sets acl */ + /** + * Gets or Sets acl + */ @JsonAdapter(AclEnum.Adapter.class) public enum AclEnum { ADDOBJECT("addObject"), @@ -146,9 +155,8 @@ public KeyObject addAclItem(AclEnum aclItem) { /** * Set of permissions associated with the key. - * * @return acl - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -168,15 +176,12 @@ public KeyObject description(String description) { } /** - * A comment used to identify a key more easily in the dashboard. It is not interpreted by the - * API. - * + * A comment used to identify a key more easily in the dashboard. It is not interpreted by the API. * @return description - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by" + - " the API." + value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by the API." ) public String getDescription() { return description; @@ -200,15 +205,12 @@ public KeyObject addIndexesItem(String indexesItem) { } /** - * Restrict this new API key to a list of indices or index patterns. If the list is empty, all - * indices are allowed. - * + * Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed. * @return indexes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to a list of indices or index patterns. If the list is empty," + - " all indices are allowed." + value = "Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed." ) public List getIndexes() { return indexes; @@ -225,13 +227,11 @@ public KeyObject maxHitsPerQuery(Integer maxHitsPerQuery) { /** * Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. - * * @return maxHitsPerQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is" + - " enforced." + value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced." ) public Integer getMaxHitsPerQuery() { return maxHitsPerQuery; @@ -248,9 +248,8 @@ public KeyObject maxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { /** * Maximum number of API calls per hour allowed from a given IP address or a user token. - * * @return maxQueriesPerIPPerHour - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of API calls per hour allowed from a given IP address or a user token." @@ -269,15 +268,12 @@ public KeyObject queryParameters(String queryParameters) { } /** - * URL-encoded query string. Force some query parameters to be applied for each query made with - * this API key. - * + * URL-encoded query string. Force some query parameters to be applied for each query made with this API key. * @return queryParameters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "URL-encoded query string. Force some query parameters to be applied for each query made" + - " with this API key." + value = "URL-encoded query string. Force some query parameters to be applied for each query made with this API key." ) public String getQueryParameters() { return queryParameters; @@ -302,13 +298,11 @@ public KeyObject addReferersItem(String referersItem) { /** * Restrict this new API key to specific referers. If empty or blank, defaults to all referers. - * * @return referers - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to specific referers. If empty or blank, defaults to all" + - " referers." + value = "Restrict this new API key to specific referers. If empty or blank, defaults to all referers." ) public List getReferers() { return referers; @@ -324,15 +318,12 @@ public KeyObject validity(Integer validity) { } /** - * Validity limit for this key in seconds. The key will automatically be removed after this period - * of time. - * + * Validity limit for this key in seconds. The key will automatically be removed after this period of time. * @return validity - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Validity limit for this key in seconds. The key will automatically be removed after this" + - " period of time." + value = "Validity limit for this key in seconds. The key will automatically be removed after this period of time." ) public Integer getValidity() { return validity; @@ -349,9 +340,8 @@ public KeyObject createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). - * * @return createdAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -438,7 +428,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java index c13fa9b9f20..d5bb7484855 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java @@ -1,12 +1,23 @@ package com.algolia.model; +import com.algolia.model.KeyObject; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** ListApiKeysResponse */ +/** + * ListApiKeysResponse + */ + public class ListApiKeysResponse { public static final String SERIALIZED_NAME_KEYS = "keys"; @@ -26,9 +37,8 @@ public ListApiKeysResponse addKeysItem(KeyObject keysItem) { /** * List of api keys. - * * @return keys - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "List of api keys.") public List getKeys() { @@ -66,7 +76,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java index 5794a2f7955..6bccdbb84e3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java @@ -1,13 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** Array of clusters. */ +/** + * Array of clusters. + */ @ApiModel(description = "Array of clusters.") public class ListClustersResponse { @@ -28,9 +36,8 @@ public ListClustersResponse addTopUsersItem(String topUsersItem) { /** * Mapping of cluster names to top users. - * * @return topUsers - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -71,7 +78,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java index 201e4d3634d..739b5930570 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java @@ -1,12 +1,23 @@ package com.algolia.model; +import com.algolia.model.Index; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** ListIndicesResponse */ +/** + * ListIndicesResponse + */ + public class ListIndicesResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -34,9 +45,8 @@ public ListIndicesResponse addItemsItem(Index itemsItem) { /** * List of the fetched indices. - * * @return items - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "List of the fetched indices.") public List getItems() { @@ -54,9 +64,8 @@ public ListIndicesResponse nbPages(Integer nbPages) { /** * Number of pages. - * * @return nbPages - */ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "Number of pages.") public Integer getNbPages() { @@ -98,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java index 0ba70e52e29..c1470a5e4dd 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java @@ -1,13 +1,22 @@ package com.algolia.model; +import com.algolia.model.UserId; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** UserIDs data. */ +/** + * UserIDs data. + */ @ApiModel(description = "UserIDs data.") public class ListUserIdsResponse { @@ -28,9 +37,8 @@ public ListUserIdsResponse addUserIDsItem(UserId userIDsItem) { /** * List of userIDs. - * * @return userIDs - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "List of userIDs.") public List getUserIDs() { @@ -68,7 +76,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java index f7cd5d23f09..f8bf4c3152c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java @@ -5,11 +5,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** MultipleQueries */ +/** + * MultipleQueries + */ + public class MultipleQueries { public static final String SERIALIZED_NAME_INDEX_NAME = "indexName"; @@ -22,7 +27,9 @@ public class MultipleQueries { @SerializedName(SERIALIZED_NAME_QUERY) private String query = ""; - /** Perform a search query with `default`, will search for facet values if `facet` is given. */ + /** + * Perform a search query with `default`, will search for facet values if `facet` is given. + */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { DEFAULT("default"), @@ -93,9 +100,8 @@ public MultipleQueries indexName(String indexName) { /** * The Algolia index name. - * * @return indexName - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "products", @@ -117,9 +123,8 @@ public MultipleQueries query(String query) { /** * The text to search in the index. - * * @return query - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The text to search in the index.") public String getQuery() { @@ -137,13 +142,11 @@ public MultipleQueries type(TypeEnum type) { /** * Perform a search query with `default`, will search for facet values if `facet` is given. - * * @return type - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Perform a search query with `default`, will search for facet values if `facet` is" + - " given." + value = "Perform a search query with `default`, will search for facet values if `facet` is given." ) public TypeEnum getType() { return type; @@ -160,9 +163,8 @@ public MultipleQueries facet(String facet) { /** * The `facet` name. - * * @return facet - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The `facet` name.") public String getFacet() { @@ -180,9 +182,8 @@ public MultipleQueries params(String params) { /** * A query string of search parameters. - * * @return params - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A query string of search parameters.") public String getParams() { @@ -233,7 +234,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java index f799ac1ac0f..1a59201ef64 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java @@ -1,17 +1,23 @@ package com.algolia.model; +import com.algolia.model.MultipleQueries; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** MultipleQueriesObject */ +/** + * MultipleQueriesObject + */ + public class MultipleQueriesObject { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @@ -19,7 +25,9 @@ public class MultipleQueriesObject { @SerializedName(SERIALIZED_NAME_REQUESTS) private List requests = new ArrayList<>(); - /** Gets or Sets strategy */ + /** + * Gets or Sets strategy + */ @JsonAdapter(StrategyEnum.Adapter.class) public enum StrategyEnum { NONE("none"), @@ -85,9 +93,8 @@ public MultipleQueriesObject addRequestsItem(MultipleQueries requestsItem) { /** * Get requests - * * @return requests - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getRequests() { @@ -105,9 +112,8 @@ public MultipleQueriesObject strategy(StrategyEnum strategy) { /** * Get strategy - * * @return strategy - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public StrategyEnum getStrategy() { @@ -149,7 +155,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java index c9818f862b3..6b012247f13 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java @@ -1,12 +1,23 @@ package com.algolia.model; +import com.algolia.model.SearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** MultipleQueriesResponse */ +/** + * MultipleQueriesResponse + */ + public class MultipleQueriesResponse { public static final String SERIALIZED_NAME_RESULTS = "results"; @@ -29,9 +40,8 @@ public MultipleQueriesResponse addResultsItem(SearchResponse resultsItem) { /** * Get results - * * @return results - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getResults() { @@ -69,7 +79,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java index 269dc3d26d9..a1bb4263c45 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java @@ -5,16 +5,24 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; -/** Operation */ +/** + * Operation + */ + public class Operation { - /** type of operation. */ + /** + * type of operation. + */ @JsonAdapter(ActionEnum.Adapter.class) public enum ActionEnum { ADDOBJECT("addObject"), @@ -90,9 +98,8 @@ public Operation action(ActionEnum action) { /** * type of operation. - * * @return action - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "type of operation.") public ActionEnum getAction() { @@ -118,9 +125,8 @@ public Operation putBodyItem(String key, Object bodyItem) { /** * arguments to the operation (depends on the type of the operation). - * * @return body - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "arguments to the operation (depends on the type of the operation)." @@ -164,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java index c7bc64aa54d..2fe028d0003 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java @@ -5,16 +5,23 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** OperationIndexObject */ +/** + * OperationIndexObject + */ + public class OperationIndexObject { - /** Type of operation to perform (move or copy). */ + /** + * Type of operation to perform (move or copy). + */ @JsonAdapter(OperationEnum.Adapter.class) public enum OperationEnum { MOVE("move"), @@ -74,7 +81,9 @@ public OperationEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DESTINATION) private String destination; - /** Gets or Sets scope */ + /** + * Gets or Sets scope + */ @JsonAdapter(ScopeEnum.Adapter.class) public enum ScopeEnum { SETTINGS("settings"), @@ -137,9 +146,8 @@ public OperationIndexObject operation(OperationEnum operation) { /** * Type of operation to perform (move or copy). - * * @return operation - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -160,9 +168,8 @@ public OperationIndexObject destination(String destination) { /** * The Algolia index name. - * * @return destination - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "products", @@ -191,15 +198,12 @@ public OperationIndexObject addScopeItem(ScopeEnum scopeItem) { } /** - * Scope of the data to copy. When absent, a full copy is performed. When present, only the - * selected scopes are copied. - * + * Scope of the data to copy. When absent, a full copy is performed. When present, only the selected scopes are copied. * @return scope - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Scope of the data to copy. When absent, a full copy is performed. When present, only the" + - " selected scopes are copied." + value = "Scope of the data to copy. When absent, a full copy is performed. When present, only the selected scopes are copied." ) public List getScope() { return scope; @@ -248,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java index 0a4b6bb2528..252b1afcfe3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** OperationIndexResponse */ +/** + * OperationIndexResponse + */ + public class OperationIndexResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -25,9 +35,8 @@ public OperationIndexResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -45,9 +54,8 @@ public OperationIndexResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date of last update (ISO-8601 format).") public OffsetDateTime getUpdatedAt() { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java index ca84786ff7f..ac23c187db1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java @@ -1,12 +1,24 @@ package com.algolia.model; +import com.algolia.model.RankingInfoMatchedGeoLocation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; -/** RankingInfo */ +/** + * RankingInfo + */ + public class RankingInfo { public static final String SERIALIZED_NAME_FILTERS = "filters"; @@ -74,9 +86,8 @@ public RankingInfo filters(Integer filters) { /** * This field is reserved for advanced usage. - * * @return filters - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "This field is reserved for advanced usage.") public Integer getFilters() { @@ -94,9 +105,8 @@ public RankingInfo firstMatchedWord(Integer firstMatchedWord) { /** * Position of the most important matched attribute in the attributes to index list. - * * @return firstMatchedWord - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Position of the most important matched attribute in the attributes to index list." @@ -115,15 +125,12 @@ public RankingInfo geoDistance(Integer geoDistance) { } /** - * Distance between the geo location in the search query and the best matching geo location in the - * record, divided by the geo precision (in meters). - * + * Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters). * @return geoDistance - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Distance between the geo location in the search query and the best matching geo location" + - " in the record, divided by the geo precision (in meters)." + value = "Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters)." ) public Integer getGeoDistance() { return geoDistance; @@ -140,9 +147,8 @@ public RankingInfo geoPrecision(Integer geoPrecision) { /** * Precision used when computing the geo distance, in meters. - * * @return geoPrecision - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Precision used when computing the geo distance, in meters." @@ -175,9 +181,8 @@ public RankingInfo putMatchedGeoLocationItem( /** * Get matchedGeoLocation - * * @return matchedGeoLocation - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public Map getMatchedGeoLocation() { @@ -197,9 +202,8 @@ public RankingInfo nbExactWords(Integer nbExactWords) { /** * Number of exactly matched words. - * * @return nbExactWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Number of exactly matched words.") public Integer getNbExactWords() { @@ -217,9 +221,8 @@ public RankingInfo nbTypos(Integer nbTypos) { /** * Number of typos encountered when matching the record. - * * @return nbTypos - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Number of typos encountered when matching the record." @@ -239,9 +242,8 @@ public RankingInfo promoted(Boolean promoted) { /** * Present and set to true if a Rule promoted the hit. - * * @return promoted - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Present and set to true if a Rule promoted the hit." @@ -260,15 +262,12 @@ public RankingInfo proximityDistance(Integer proximityDistance) { } /** - * When the query contains more than one word, the sum of the distances between matched words (in - * meters). - * + * When the query contains more than one word, the sum of the distances between matched words (in meters). * @return proximityDistance - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "When the query contains more than one word, the sum of the distances between matched" + - " words (in meters)." + value = "When the query contains more than one word, the sum of the distances between matched words (in meters)." ) public Integer getProximityDistance() { return proximityDistance; @@ -285,9 +284,8 @@ public RankingInfo userScore(Integer userScore) { /** * Custom ranking for the object, expressed as a single integer value. - * * @return userScore - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Custom ranking for the object, expressed as a single integer value." @@ -307,9 +305,8 @@ public RankingInfo word(Integer word) { /** * Number of matched words, including prefixes and typos. - * * @return word - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Number of matched words, including prefixes and typos." @@ -404,7 +401,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java index 9007f515dc4..9f3d772d029 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java @@ -1,10 +1,20 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** RankingInfoMatchedGeoLocation */ +/** + * RankingInfoMatchedGeoLocation + */ + public class RankingInfoMatchedGeoLocation { public static final String SERIALIZED_NAME_LAT = "lat"; @@ -29,9 +39,8 @@ public RankingInfoMatchedGeoLocation lat(Double lat) { /** * Latitude of the matched location. - * * @return lat - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Latitude of the matched location.") public Double getLat() { @@ -49,9 +58,8 @@ public RankingInfoMatchedGeoLocation lng(Double lng) { /** * Longitude of the matched location. - * * @return lng - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Longitude of the matched location.") public Double getLng() { @@ -69,9 +77,8 @@ public RankingInfoMatchedGeoLocation distance(Integer distance) { /** * Distance between the matched location and the search location (in meters). - * * @return distance - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Distance between the matched location and the search location (in meters)." @@ -117,7 +124,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java index c077f4165f5..cb40e9ec033 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java @@ -1,12 +1,24 @@ package com.algolia.model; +import com.algolia.model.HighlightResult; +import com.algolia.model.RankingInfo; +import com.algolia.model.SnippetResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; +import java.util.Map; import java.util.Objects; -/** A single record. */ +/** + * A single record. + */ @ApiModel(description = "A single record.") public class Record extends HashMap { @@ -44,9 +56,8 @@ public Record objectID(String objectID) { /** * Unique identifier of the object. - * * @return objectID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Unique identifier of the object.") public String getObjectID() { @@ -64,9 +75,8 @@ public Record highlightResult(HighlightResult highlightResult) { /** * Get highlightResult - * * @return highlightResult - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public HighlightResult getHighlightResult() { @@ -84,9 +94,8 @@ public Record snippetResult(SnippetResult snippetResult) { /** * Get snippetResult - * * @return snippetResult - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public SnippetResult getSnippetResult() { @@ -104,9 +113,8 @@ public Record rankingInfo(RankingInfo rankingInfo) { /** * Get rankingInfo - * * @return rankingInfo - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public RankingInfo getRankingInfo() { @@ -124,9 +132,8 @@ public Record distinctSeqID(Integer distinctSeqID) { /** * Get distinctSeqID - * * @return distinctSeqID - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public Integer getDistinctSeqID() { @@ -195,7 +202,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java index ada941fafaa..25b04fb457b 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** RemoveUserIdResponse */ +/** + * RemoveUserIdResponse + */ + public class RemoveUserIdResponse { public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; @@ -20,9 +30,8 @@ public RemoveUserIdResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). - * * @return deletedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -66,7 +75,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java new file mode 100644 index 00000000000..d0286e423b9 --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java @@ -0,0 +1,87 @@ +package com.algolia.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.Objects; + +/** + * ReplaceSourceResponse + */ + +public class ReplaceSourceResponse { + + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + public ReplaceSourceResponse updatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Date of last update (ISO-8601 format). + * @return updatedAt + **/ + @javax.annotation.Nonnull + @ApiModelProperty( + required = true, + value = "Date of last update (ISO-8601 format)." + ) + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceSourceResponse replaceSourceResponse = (ReplaceSourceResponse) o; + return Objects.equals(this.updatedAt, replaceSourceResponse.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReplaceSourceResponse {\n"); + sb + .append(" updatedAt: ") + .append(toIndentedString(updatedAt)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java index 176038ae909..3208f2244a2 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java @@ -1,10 +1,20 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** SaveObjectResponse */ +/** + * SaveObjectResponse + */ + public class SaveObjectResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -29,9 +39,8 @@ public SaveObjectResponse createdAt(String createdAt) { /** * Get createdAt - * * @return createdAt - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public String getCreatedAt() { @@ -49,9 +58,8 @@ public SaveObjectResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -69,9 +77,8 @@ public SaveObjectResponse objectID(String objectID) { /** * Unique identifier of the object. - * * @return objectID - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Unique identifier of the object.") public String getObjectID() { @@ -118,7 +125,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java index 47a5c4d96e9..ac8827cf7ad 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** SaveSynonymResponse */ +/** + * SaveSynonymResponse + */ + public class SaveSynonymResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -30,9 +40,8 @@ public SaveSynonymResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -53,9 +62,8 @@ public SaveSynonymResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -76,9 +84,8 @@ public SaveSynonymResponse id(String id) { /** * objectID of the inserted object. - * * @return id - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "objectID of the inserted object.") public String getId() { @@ -125,7 +132,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java index f6b8e6da208..91fa20fb589 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** SaveSynonymsResponse */ +/** + * SaveSynonymsResponse + */ + public class SaveSynonymsResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -25,9 +35,8 @@ public SaveSynonymsResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -48,9 +57,8 @@ public SaveSynonymsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -98,7 +106,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java index 0901da6c69c..cfde66c968e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java @@ -1,12 +1,23 @@ package com.algolia.model; +import com.algolia.model.Record; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** SearchHits */ +/** + * SearchHits + */ + public class SearchHits { public static final String SERIALIZED_NAME_HITS = "hits"; @@ -29,9 +40,8 @@ public SearchHits addHitsItem(Record hitsItem) { /** * Get hits - * * @return hits - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getHits() { @@ -69,7 +79,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java index 81b9a491f54..8b70d9e4a30 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java @@ -1,10 +1,14 @@ package com.algolia.model; +import com.algolia.model.BaseSearchParams; +import com.algolia.model.IndexSettingsAsSearchParams; +import com.algolia.model.OneOfintegerstring; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; @@ -14,7 +18,10 @@ import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; -/** SearchParams */ +/** + * SearchParams + */ + public class SearchParams { public static final String SERIALIZED_NAME_QUERY = "query"; @@ -295,7 +302,9 @@ public class SearchParams { @SerializedName(SERIALIZED_NAME_MIN_WORD_SIZEFOR2_TYPOS) private Integer minWordSizefor2Typos = 8; - /** Controls whether typo tolerance is enabled and how it is applied. */ + /** + * Controls whether typo tolerance is enabled and how it is applied. + */ @JsonAdapter(TypoToleranceEnum.Adapter.class) public enum TypoToleranceEnum { TRUE("true"), @@ -411,7 +420,9 @@ public TypoToleranceEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ENABLE_PERSONALIZATION) private Boolean enablePersonalization = false; - /** Controls if and how query words are interpreted as prefixes. */ + /** + * Controls if and how query words are interpreted as prefixes. + */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { PREFIXLAST("prefixLast"), @@ -468,7 +479,9 @@ public QueryTypeEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_QUERY_TYPE) private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; - /** Selects a strategy to remove words from the query when it doesn’t match any hits. */ + /** + * Selects a strategy to remove words from the query when it doesn’t match any hits. + */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), @@ -546,7 +559,9 @@ public RemoveWordsIfNoResultsEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DISABLE_EXACT_ON_ATTRIBUTES) private List disableExactOnAttributes = null; - /** Controls how the exact ranking criterion is computed when the query contains only one word. */ + /** + * Controls how the exact ranking criterion is computed when the query contains only one word. + */ @JsonAdapter(ExactOnSingleWordQueryEnum.Adapter.class) public enum ExactOnSingleWordQueryEnum { ATTRIBUTE("attribute"), @@ -606,7 +621,9 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) private ExactOnSingleWordQueryEnum exactOnSingleWordQuery = ExactOnSingleWordQueryEnum.ATTRIBUTE; - /** Gets or Sets alternativesAsExact */ + /** + * Gets or Sets alternativesAsExact + */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { IGNOREPLURALS("ignorePlurals"), @@ -664,7 +681,9 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ALTERNATIVES_AS_EXACT) private List alternativesAsExact = null; - /** Gets or Sets advancedSyntaxFeatures */ + /** + * Gets or Sets advancedSyntaxFeatures + */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { EXACTPHRASE("exactPhrase"), @@ -771,9 +790,8 @@ public SearchParams query(String query) { /** * The text to search in the index. - * * @return query - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -790,15 +808,12 @@ public SearchParams similarQuery(String similarQuery) { } /** - * Overrides the query parameter and performs a more generic search that can be used to find - * \"similar\" results. - * + * Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results. * @return similarQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Overrides the query parameter and performs a more generic search that can be used to" + - " find \"similar\" results." + value = "Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results." ) public String getSimilarQuery() { return similarQuery; @@ -815,9 +830,8 @@ public SearchParams filters(String filters) { /** * Filter the query with numeric, facet and/or tag filters. - * * @return filters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Filter the query with numeric, facet and/or tag filters." @@ -845,9 +859,8 @@ public SearchParams addFacetFiltersItem(String facetFiltersItem) { /** * Filter hits by facet value. - * * @return facetFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by facet value.") public List getFacetFilters() { @@ -872,15 +885,12 @@ public SearchParams addOptionalFiltersItem(String optionalFiltersItem) { } /** - * Create filters for ranking purposes, where records that match the filter are ranked higher, or - * lower in the case of a negative optional filter. - * + * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter. * @return optionalFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Create filters for ranking purposes, where records that match the filter are ranked" + - " higher, or lower in the case of a negative optional filter." + value = "Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter." ) public List getOptionalFilters() { return optionalFilters; @@ -905,9 +915,8 @@ public SearchParams addNumericFiltersItem(String numericFiltersItem) { /** * Filter on numeric attributes. - * * @return numericFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter on numeric attributes.") public List getNumericFilters() { @@ -933,9 +942,8 @@ public SearchParams addTagFiltersItem(String tagFiltersItem) { /** * Filter hits by tags. - * * @return tagFilters - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by tags.") public List getTagFilters() { @@ -953,9 +961,8 @@ public SearchParams sumOrFiltersScores(Boolean sumOrFiltersScores) { /** * Determines how to calculate the total score for filtering. - * * @return sumOrFiltersScores - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Determines how to calculate the total score for filtering." @@ -983,9 +990,8 @@ public SearchParams addFacetsItem(String facetsItem) { /** * Retrieve facets and their facet values. - * * @return facets - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve facets and their facet values.") public List getFacets() { @@ -1003,9 +1009,8 @@ public SearchParams maxValuesPerFacet(Integer maxValuesPerFacet) { /** * Maximum number of facet values to return for each facet during a regular search. - * * @return maxValuesPerFacet - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet values to return for each facet during a regular search." @@ -1025,9 +1030,8 @@ public SearchParams facetingAfterDistinct(Boolean facetingAfterDistinct) { /** * Force faceting to be applied after de-duplication (via the Distinct setting). - * * @return facetingAfterDistinct - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Force faceting to be applied after de-duplication (via the Distinct setting)." @@ -1047,9 +1051,8 @@ public SearchParams sortFacetValuesBy(String sortFacetValuesBy) { /** * Controls how facet values are fetched. - * * @return sortFacetValuesBy - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how facet values are fetched.") public String getSortFacetValuesBy() { @@ -1067,9 +1070,8 @@ public SearchParams page(Integer page) { /** * Specify the page to retrieve. - * * @return page - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the page to retrieve.") public Integer getPage() { @@ -1087,9 +1089,8 @@ public SearchParams offset(Integer offset) { /** * Specify the offset of the first hit to return. - * * @return offset - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the offset of the first hit to return.") public Integer getOffset() { @@ -1106,10 +1107,11 @@ public SearchParams length(Integer length) { } /** - * Set the number of hits to retrieve (used only with offset). minimum: 1 maximum: 1000 - * + * Set the number of hits to retrieve (used only with offset). + * minimum: 1 + * maximum: 1000 * @return length - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Set the number of hits to retrieve (used only with offset)." @@ -1129,13 +1131,11 @@ public SearchParams aroundLatLng(String aroundLatLng) { /** * Search for entries around a central geolocation, enabling a geo search within a circular area. - * * @return aroundLatLng - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a central geolocation, enabling a geo search within a circular" + - " area." + value = "Search for entries around a central geolocation, enabling a geo search within a circular area." ) public String getAroundLatLng() { return aroundLatLng; @@ -1151,15 +1151,12 @@ public SearchParams aroundLatLngViaIP(Boolean aroundLatLngViaIP) { } /** - * Search for entries around a given location automatically computed from the requester’s IP - * address. - * + * Search for entries around a given location automatically computed from the requester’s IP address. * @return aroundLatLngViaIP - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a given location automatically computed from the requester’s" + - " IP address." + value = "Search for entries around a given location automatically computed from the requester’s IP address." ) public Boolean getAroundLatLngViaIP() { return aroundLatLngViaIP; @@ -1176,9 +1173,8 @@ public SearchParams aroundRadius(OneOfintegerstring aroundRadius) { /** * Define the maximum radius for a geo search (in meters). - * * @return aroundRadius - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Define the maximum radius for a geo search (in meters)." @@ -1198,13 +1194,11 @@ public SearchParams aroundPrecision(Integer aroundPrecision) { /** * Precision of geo search (in meters), to add grouping by geo location to the ranking formula. - * * @return aroundPrecision - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Precision of geo search (in meters), to add grouping by geo location to the ranking" + - " formula." + value = "Precision of geo search (in meters), to add grouping by geo location to the ranking formula." ) public Integer getAroundPrecision() { return aroundPrecision; @@ -1220,10 +1214,10 @@ public SearchParams minimumAroundRadius(Integer minimumAroundRadius) { } /** - * Minimum radius (in meters) used for a geo search when aroundRadius is not set. minimum: 1 - * + * Minimum radius (in meters) used for a geo search when aroundRadius is not set. + * minimum: 1 * @return minimumAroundRadius - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Minimum radius (in meters) used for a geo search when aroundRadius is not set." @@ -1253,9 +1247,8 @@ public SearchParams addInsideBoundingBoxItem( /** * Search inside a rectangular area (in geo coordinates). - * * @return insideBoundingBox - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Search inside a rectangular area (in geo coordinates)." @@ -1283,9 +1276,8 @@ public SearchParams addInsidePolygonItem(BigDecimal insidePolygonItem) { /** * Search inside a polygon (in geo coordinates). - * * @return insidePolygon - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Search inside a polygon (in geo coordinates).") public List getInsidePolygon() { @@ -1310,21 +1302,12 @@ public SearchParams addNaturalLanguagesItem(String naturalLanguagesItem) { } /** - * This parameter changes the default values of certain parameters and settings that work best for - * a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, - * analyticsTags and ruleContexts. These parameters and settings work well together when the query - * is formatted in natural language instead of keywords, for example when your user performs a - * voice search. - * + * This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search. * @return naturalLanguages - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "This parameter changes the default values of certain parameters and settings that work" + - " best for a natural language query, such as ignorePlurals, removeStopWords," + - " removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and" + - " settings work well together when the query is formatted in natural language" + - " instead of keywords, for example when your user performs a voice search." + value = "This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search." ) public List getNaturalLanguages() { return naturalLanguages; @@ -1349,9 +1332,8 @@ public SearchParams addRuleContextsItem(String ruleContextsItem) { /** * Enables contextual rules. - * * @return ruleContexts - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables contextual rules.") public List getRuleContexts() { @@ -1369,9 +1351,8 @@ public SearchParams personalizationImpact(Integer personalizationImpact) { /** * Define the impact of the Personalization feature. - * * @return personalizationImpact - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Define the impact of the Personalization feature.") public Integer getPersonalizationImpact() { @@ -1389,9 +1370,8 @@ public SearchParams userToken(String userToken) { /** * Associates a certain user token with the current search. - * * @return userToken - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Associates a certain user token with the current search." @@ -1411,9 +1391,8 @@ public SearchParams getRankingInfo(Boolean getRankingInfo) { /** * Retrieve detailed ranking information. - * * @return getRankingInfo - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve detailed ranking information.") public Boolean getGetRankingInfo() { @@ -1431,9 +1410,8 @@ public SearchParams clickAnalytics(Boolean clickAnalytics) { /** * Enable the Click Analytics feature. - * * @return clickAnalytics - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Click Analytics feature.") public Boolean getClickAnalytics() { @@ -1451,9 +1429,8 @@ public SearchParams analytics(Boolean analytics) { /** * Whether the current query will be taken into account in the Analytics. - * * @return analytics - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the current query will be taken into account in the Analytics." @@ -1481,9 +1458,8 @@ public SearchParams addAnalyticsTagsItem(String analyticsTagsItem) { /** * List of tags to apply to the query for analytics purposes. - * * @return analyticsTags - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of tags to apply to the query for analytics purposes." @@ -1503,9 +1479,8 @@ public SearchParams percentileComputation(Boolean percentileComputation) { /** * Whether to include or exclude a query from the processing-time percentile computation. - * * @return percentileComputation - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to include or exclude a query from the processing-time percentile computation." @@ -1525,9 +1500,8 @@ public SearchParams enableABTest(Boolean enableABTest) { /** * Whether this search should participate in running AB tests. - * * @return enableABTest - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether this search should participate in running AB tests." @@ -1547,9 +1521,8 @@ public SearchParams enableReRanking(Boolean enableReRanking) { /** * Whether this search should use AI Re-Ranking. - * * @return enableReRanking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Whether this search should use AI Re-Ranking.") public Boolean getEnableReRanking() { @@ -1577,9 +1550,8 @@ public SearchParams addSearchableAttributesItem( /** * The complete list of attributes used for searching. - * * @return searchableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes used for searching." @@ -1611,9 +1583,8 @@ public SearchParams addAttributesForFacetingItem( /** * The complete list of attributes that will be used for faceting. - * * @return attributesForFaceting - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes that will be used for faceting." @@ -1645,9 +1616,8 @@ public SearchParams addUnretrievableAttributesItem( /** * List of attributes that can’t be retrieved at query time. - * * @return unretrievableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes that can’t be retrieved at query time." @@ -1677,9 +1647,8 @@ public SearchParams addAttributesToRetrieveItem( /** * This parameter controls which attributes to retrieve and which not to retrieve. - * * @return attributesToRetrieve - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "This parameter controls which attributes to retrieve and which not to retrieve." @@ -1711,9 +1680,8 @@ public SearchParams addRestrictSearchableAttributesItem( /** * Restricts a given query to look in only a subset of your searchable attributes. - * * @return restrictSearchableAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Restricts a given query to look in only a subset of your searchable attributes." @@ -1743,9 +1711,8 @@ public SearchParams addRankingItem(String rankingItem) { /** * Controls how Algolia should sort your results. - * * @return ranking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how Algolia should sort your results.") public List getRanking() { @@ -1771,9 +1738,8 @@ public SearchParams addCustomRankingItem(String customRankingItem) { /** * Specifies the custom ranking criterion. - * * @return customRanking - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the custom ranking criterion.") public List getCustomRanking() { @@ -1790,15 +1756,12 @@ public SearchParams relevancyStrictness(Integer relevancyStrictness) { } /** - * Controls the relevancy threshold below which less relevant results aren’t included in the - * results. - * + * Controls the relevancy threshold below which less relevant results aren’t included in the results. * @return relevancyStrictness - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls the relevancy threshold below which less relevant results aren’t included in" + - " the results." + value = "Controls the relevancy threshold below which less relevant results aren’t included in the results." ) public Integer getRelevancyStrictness() { return relevancyStrictness; @@ -1827,9 +1790,8 @@ public SearchParams addAttributesToHighlightItem( /** * List of attributes to highlight. - * * @return attributesToHighlight - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "List of attributes to highlight.") public List getAttributesToHighlight() { @@ -1857,9 +1819,8 @@ public SearchParams addAttributesToSnippetItem( /** * List of attributes to snippet, with an optional maximum number of words to snippet. - * * @return attributesToSnippet - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes to snippet, with an optional maximum number of words to snippet." @@ -1879,13 +1840,11 @@ public SearchParams highlightPreTag(String highlightPreTag) { /** * The HTML string to insert before the highlighted parts in all highlight and snippet results. - * * @return highlightPreTag - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert before the highlighted parts in all highlight and snippet" + - " results." + value = "The HTML string to insert before the highlighted parts in all highlight and snippet results." ) public String getHighlightPreTag() { return highlightPreTag; @@ -1902,13 +1861,11 @@ public SearchParams highlightPostTag(String highlightPostTag) { /** * The HTML string to insert after the highlighted parts in all highlight and snippet results. - * * @return highlightPostTag - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert after the highlighted parts in all highlight and snippet" + - " results." + value = "The HTML string to insert after the highlighted parts in all highlight and snippet results." ) public String getHighlightPostTag() { return highlightPostTag; @@ -1925,9 +1882,8 @@ public SearchParams snippetEllipsisText(String snippetEllipsisText) { /** * String used as an ellipsis indicator when a snippet is truncated. - * * @return snippetEllipsisText - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "String used as an ellipsis indicator when a snippet is truncated." @@ -1949,9 +1905,8 @@ public SearchParams restrictHighlightAndSnippetArrays( /** * Restrict highlighting and snippeting to items that matched the query. - * * @return restrictHighlightAndSnippetArrays - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Restrict highlighting and snippeting to items that matched the query." @@ -1973,9 +1928,8 @@ public SearchParams hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. - * * @return hitsPerPage - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -1992,15 +1946,12 @@ public SearchParams minWordSizefor1Typo(Integer minWordSizefor1Typo) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 1 - * typo. - * + * Minimum number of characters a word in the query string must contain to accept matches with 1 typo. * @return minWordSizefor1Typo - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches" + - " with 1 typo." + value = "Minimum number of characters a word in the query string must contain to accept matches with 1 typo." ) public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; @@ -2016,15 +1967,12 @@ public SearchParams minWordSizefor2Typos(Integer minWordSizefor2Typos) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 2 - * typos. - * + * Minimum number of characters a word in the query string must contain to accept matches with 2 typos. * @return minWordSizefor2Typos - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches" + - " with 2 typos." + value = "Minimum number of characters a word in the query string must contain to accept matches with 2 typos." ) public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; @@ -2041,9 +1989,8 @@ public SearchParams typoTolerance(TypoToleranceEnum typoTolerance) { /** * Controls whether typo tolerance is enabled and how it is applied. - * * @return typoTolerance - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Controls whether typo tolerance is enabled and how it is applied." @@ -2065,9 +2012,8 @@ public SearchParams allowTyposOnNumericTokens( /** * Whether to allow typos on numbers (“numeric tokens”) in the query string. - * * @return allowTyposOnNumericTokens - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to allow typos on numbers (“numeric tokens”) in the query string." @@ -2101,9 +2047,8 @@ public SearchParams addDisableTypoToleranceOnAttributesItem( /** * List of attributes on which you want to disable typo tolerance. - * * @return disableTypoToleranceOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable typo tolerance." @@ -2125,9 +2070,8 @@ public SearchParams separatorsToIndex(String separatorsToIndex) { /** * Control which separators are indexed. - * * @return separatorsToIndex - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Control which separators are indexed.") public String getSeparatorsToIndex() { @@ -2145,9 +2089,8 @@ public SearchParams ignorePlurals(String ignorePlurals) { /** * Treats singular, plurals, and other forms of declensions as matching terms. - * * @return ignorePlurals - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Treats singular, plurals, and other forms of declensions as matching terms." @@ -2167,9 +2110,8 @@ public SearchParams removeStopWords(String removeStopWords) { /** * Removes stop (common) words from the query before executing it. - * * @return removeStopWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Removes stop (common) words from the query before executing it." @@ -2191,9 +2133,8 @@ public SearchParams keepDiacriticsOnCharacters( /** * List of characters that the engine shouldn’t automatically normalize. - * * @return keepDiacriticsOnCharacters - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of characters that the engine shouldn’t automatically normalize." @@ -2220,15 +2161,12 @@ public SearchParams addQueryLanguagesItem(String queryLanguagesItem) { } /** - * Sets the languages to be used by language-specific settings and functionalities such as - * ignorePlurals, removeStopWords, and CJK word-detection. - * + * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection. * @return queryLanguages - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages to be used by language-specific settings and functionalities such as" + - " ignorePlurals, removeStopWords, and CJK word-detection." + value = "Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection." ) public List getQueryLanguages() { return queryLanguages; @@ -2245,9 +2183,8 @@ public SearchParams decompoundQuery(Boolean decompoundQuery) { /** * Splits compound words into their composing atoms in the query. - * * @return decompoundQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Splits compound words into their composing atoms in the query." @@ -2267,9 +2204,8 @@ public SearchParams enableRules(Boolean enableRules) { /** * Whether Rules should be globally enabled. - * * @return enableRules - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Whether Rules should be globally enabled.") public Boolean getEnableRules() { @@ -2287,9 +2223,8 @@ public SearchParams enablePersonalization(Boolean enablePersonalization) { /** * Enable the Personalization feature. - * * @return enablePersonalization - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Personalization feature.") public Boolean getEnablePersonalization() { @@ -2307,9 +2242,8 @@ public SearchParams queryType(QueryTypeEnum queryType) { /** * Controls if and how query words are interpreted as prefixes. - * * @return queryType - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Controls if and how query words are interpreted as prefixes." @@ -2331,9 +2265,8 @@ public SearchParams removeWordsIfNoResults( /** * Selects a strategy to remove words from the query when it doesn’t match any hits. - * * @return removeWordsIfNoResults - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Selects a strategy to remove words from the query when it doesn’t match any hits." @@ -2355,9 +2288,8 @@ public SearchParams advancedSyntax(Boolean advancedSyntax) { /** * Enables the advanced query syntax. - * * @return advancedSyntax - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables the advanced query syntax.") public Boolean getAdvancedSyntax() { @@ -2383,9 +2315,8 @@ public SearchParams addOptionalWordsItem(String optionalWordsItem) { /** * A list of words that should be considered as optional when found in the query. - * * @return optionalWords - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words that should be considered as optional when found in the query." @@ -2417,9 +2348,8 @@ public SearchParams addDisableExactOnAttributesItem( /** * List of attributes on which you want to disable the exact ranking criterion. - * * @return disableExactOnAttributes - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable the exact ranking criterion." @@ -2443,13 +2373,11 @@ public SearchParams exactOnSingleWordQuery( /** * Controls how the exact ranking criterion is computed when the query contains only one word. - * * @return exactOnSingleWordQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls how the exact ranking criterion is computed when the query contains only one" + - " word." + value = "Controls how the exact ranking criterion is computed when the query contains only one word." ) public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; @@ -2480,13 +2408,11 @@ public SearchParams addAlternativesAsExactItem( /** * List of alternatives that should be considered an exact match by the exact ranking criterion. - * * @return alternativesAsExact - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "List of alternatives that should be considered an exact match by the exact ranking" + - " criterion." + value = "List of alternatives that should be considered an exact match by the exact ranking criterion." ) public List getAlternativesAsExact() { return alternativesAsExact; @@ -2516,15 +2442,12 @@ public SearchParams addAdvancedSyntaxFeaturesItem( } /** - * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is - * enabled. - * + * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled. * @return advancedSyntaxFeatures - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is" + - " enabled." + value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled." ) public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; @@ -2542,10 +2465,11 @@ public SearchParams distinct(Integer distinct) { } /** - * Enables de-duplication or grouping of results. minimum: 0 maximum: 4 - * + * Enables de-duplication or grouping of results. + * minimum: 0 + * maximum: 4 * @return distinct - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Enables de-duplication or grouping of results.") public Integer getDistinct() { @@ -2563,9 +2487,8 @@ public SearchParams synonyms(Boolean synonyms) { /** * Whether to take into account an index’s synonyms for a particular search. - * * @return synonyms - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to take into account an index’s synonyms for a particular search." @@ -2586,15 +2509,12 @@ public SearchParams replaceSynonymsInHighlight( } /** - * Whether to highlight and snippet the original word that matches the synonym or the synonym - * itself. - * + * Whether to highlight and snippet the original word that matches the synonym or the synonym itself. * @return replaceSynonymsInHighlight - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether to highlight and snippet the original word that matches the synonym or the" + - " synonym itself." + value = "Whether to highlight and snippet the original word that matches the synonym or the synonym itself." ) public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; @@ -2612,10 +2532,11 @@ public SearchParams minProximity(Integer minProximity) { } /** - * Precision of the proximity ranking criterion. minimum: 1 maximum: 7 - * + * Precision of the proximity ranking criterion. + * minimum: 1 + * maximum: 7 * @return minProximity - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Precision of the proximity ranking criterion.") public Integer getMinProximity() { @@ -2640,15 +2561,12 @@ public SearchParams addResponseFieldsItem(String responseFieldsItem) { } /** - * Choose which fields to return in the API response. This parameters applies to search and browse - * queries. - * + * Choose which fields to return in the API response. This parameters applies to search and browse queries. * @return responseFields - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Choose which fields to return in the API response. This parameters applies to search and" + - " browse queries." + value = "Choose which fields to return in the API response. This parameters applies to search and browse queries." ) public List getResponseFields() { return responseFields; @@ -2665,9 +2583,8 @@ public SearchParams maxFacetHits(Integer maxFacetHits) { /** * Maximum number of facet hits to return during a search for facet values. - * * @return maxFacetHits - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet hits to return during a search for facet values." @@ -2689,15 +2606,12 @@ public SearchParams attributeCriteriaComputedByMinProximity( } /** - * When attribute is ranked above proximity in your ranking formula, proximity is used to select - * which searchable attribute is matched in the attribute ranking stage. - * + * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage. * @return attributeCriteriaComputedByMinProximity - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "When attribute is ranked above proximity in your ranking formula, proximity is used to" + - " select which searchable attribute is matched in the attribute ranking stage." + value = "When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage." ) public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; @@ -2716,15 +2630,12 @@ public SearchParams renderingContent(Object renderingContent) { } /** - * Content defining how the search interface should be rendered. Can be set via the settings for a - * default value and can be overridden via rules. - * + * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules. * @return renderingContent - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "Content defining how the search interface should be rendered. Can be set via the" + - " settings for a default value and can be overridden via rules." + value = "Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules." ) public Object getRenderingContent() { return renderingContent; @@ -3304,7 +3215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java index a1437ac2707..c3a77c0b1e4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java @@ -1,14 +1,28 @@ package com.algolia.model; +import com.algolia.model.BaseSearchResponse; +import com.algolia.model.BaseSearchResponseFacetsStats; +import com.algolia.model.Record; +import com.algolia.model.SearchHits; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -/** SearchResponse */ +/** + * SearchResponse + */ + public class SearchResponse { public static final String SERIALIZED_NAME_AB_TEST_I_D = "abTestID"; @@ -148,15 +162,12 @@ public SearchResponse abTestID(Integer abTestID) { } /** - * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test - * ID. - * + * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID. * @return abTestID - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing" + - " A/B test ID." + value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID." ) public Integer getAbTestID() { return abTestID; @@ -172,15 +183,12 @@ public SearchResponse abTestVariantID(Integer abTestVariantID) { } /** - * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant - * ID of the index used. - * + * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used. * @return abTestVariantID - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the" + - " variant ID of the index used." + value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used." ) public Integer getAbTestVariantID() { return abTestVariantID; @@ -197,9 +205,8 @@ public SearchResponse aroundLatLng(String aroundLatLng) { /** * The computed geo location. - * * @return aroundLatLng - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The computed geo location.") public String getAroundLatLng() { @@ -216,15 +223,12 @@ public SearchResponse automaticRadius(String automaticRadius) { } /** - * The automatically computed radius. For legacy reasons, this parameter is a string and not an - * integer. - * + * The automatically computed radius. For legacy reasons, this parameter is a string and not an integer. * @return automaticRadius - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "The automatically computed radius. For legacy reasons, this parameter is a string and" + - " not an integer." + value = "The automatically computed radius. For legacy reasons, this parameter is a string and not an integer." ) public String getAutomaticRadius() { return automaticRadius; @@ -241,9 +245,8 @@ public SearchResponse exhaustiveFacetsCount(Boolean exhaustiveFacetsCount) { /** * Whether the facet count is exhaustive or approximate. - * * @return exhaustiveFacetsCount - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the facet count is exhaustive or approximate." @@ -263,9 +266,8 @@ public SearchResponse exhaustiveNbHits(Boolean exhaustiveNbHits) { /** * Indicate if the nbHits count was exhaustive or approximate - * * @return exhaustiveNbHits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -285,16 +287,13 @@ public SearchResponse exhaustiveTypo(Boolean exhaustiveTypo) { } /** - * Indicate if the typo-tolerence search was exhaustive or approximate (only included when - * typo-tolerance is enabled) - * + * Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled) * @return exhaustiveTypo - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when" + - " typo-tolerance is enabled)" + value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled)" ) public Boolean getExhaustiveTypo() { return exhaustiveTypo; @@ -322,9 +321,8 @@ public SearchResponse putFacetsItem( /** * A mapping of each facet name to the corresponding facet counts. - * * @return facets - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "{\"category\":{\"food\":1,\"tech\":42}}", @@ -358,9 +356,8 @@ public SearchResponse putFacetsStatsItem( /** * Statistics for numerical facets. - * * @return facetsStats - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Statistics for numerical facets.") public Map getFacetsStats() { @@ -380,9 +377,8 @@ public SearchResponse hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. - * * @return hitsPerPage - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -400,9 +396,8 @@ public SearchResponse index(String index) { /** * Index name used for the query. - * * @return index - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "indexName", @@ -422,16 +417,13 @@ public SearchResponse indexUsed(String indexUsed) { } /** - * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the - * index used by the query. - * + * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query. * @return indexUsed - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "indexNameAlt", - value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t" + - " always the index used by the query." + value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query." ) public String getIndexUsed() { return indexUsed; @@ -448,9 +440,8 @@ public SearchResponse message(String message) { /** * Used to return warnings about the query. - * * @return message - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Used to return warnings about the query.") public String getMessage() { @@ -468,9 +459,8 @@ public SearchResponse nbHits(Integer nbHits) { /** * Number of hits that the search query matched. - * * @return nbHits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -492,9 +482,8 @@ public SearchResponse nbPages(Integer nbPages) { /** * Number of pages available for the current query - * * @return nbPages - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "1", @@ -516,9 +505,8 @@ public SearchResponse nbSortedHits(Integer nbSortedHits) { /** * The number of hits selected and sorted by the relevant sort algorithm - * * @return nbSortedHits - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "20", @@ -539,9 +527,8 @@ public SearchResponse page(Integer page) { /** * Specify the page to retrieve. - * * @return page - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Specify the page to retrieve.") public Integer getPage() { @@ -559,9 +546,8 @@ public SearchResponse params(String params) { /** * A url-encoded string of all search parameters. - * * @return params - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "query=a&hitsPerPage=20", @@ -583,9 +569,8 @@ public SearchResponse parsedQuery(String parsedQuery) { /** * The query string that will be searched, after normalization. - * * @return parsedQuery - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "The query string that will be searched, after normalization." @@ -605,9 +590,8 @@ public SearchResponse processingTimeMS(Integer processingTimeMS) { /** * Time the server took to process the request, in milliseconds. - * * @return processingTimeMS - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -629,9 +613,8 @@ public SearchResponse query(String query) { /** * The text to search in the index. - * * @return query - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -648,15 +631,12 @@ public SearchResponse queryAfterRemoval(String queryAfterRemoval) { } /** - * A markup text indicating which parts of the original query have been removed in order to - * retrieve a non-empty result set. - * + * A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. * @return queryAfterRemoval - */ + **/ @javax.annotation.Nullable @ApiModelProperty( - value = "A markup text indicating which parts of the original query have been removed in order to" + - " retrieve a non-empty result set." + value = "A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set." ) public String getQueryAfterRemoval() { return queryAfterRemoval; @@ -673,9 +653,8 @@ public SearchResponse serverUsed(String serverUsed) { /** * Actual host name of the server that processed the request. - * * @return serverUsed - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Actual host name of the server that processed the request." @@ -703,9 +682,8 @@ public SearchResponse putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. - * * @return userData - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -728,9 +706,8 @@ public SearchResponse addHitsItem(Record hitsItem) { /** * Get hits - * * @return hits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getHits() { @@ -892,7 +869,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java index ea57089c759..cb5c7c7c3fa 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java @@ -1,13 +1,25 @@ package com.algolia.model; +import com.algolia.model.SynonymHit; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; -/** SearchSynonymsResponse */ +/** + * SearchSynonymsResponse + */ + public class SearchSynonymsResponse extends HashMap { public static final String SERIALIZED_NAME_HITS = "hits"; @@ -32,9 +44,8 @@ public SearchSynonymsResponse addHitsItem(SynonymHit hitsItem) { /** * Array of synonym objects. - * * @return hits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Array of synonym objects.") public List getHits() { @@ -52,9 +63,8 @@ public SearchSynonymsResponse nbHits(Integer nbHits) { /** * Number of hits that the search query matched. - * * @return nbHits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -102,7 +112,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java index d093d293312..2f0b03fee24 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java @@ -1,11 +1,19 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** OK */ +/** + * OK + */ @ApiModel(description = "OK") public class SearchUserIdsObject { @@ -35,16 +43,13 @@ public SearchUserIdsObject query(String query) { } /** - * Query to search. The search is a prefix search with typoTolerance. Use empty query to retrieve - * all users. - * + * Query to search. The search is a prefix search with typoTolerance. Use empty query to retrieve all users. * @return query - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "Query to search. The search is a prefix search with typoTolerance. Use empty query to" + - " retrieve all users." + value = "Query to search. The search is a prefix search with typoTolerance. Use empty query to retrieve all users." ) public String getQuery() { return query; @@ -61,9 +66,8 @@ public SearchUserIdsObject clusterName(String clusterName) { /** * Name of the cluster. - * * @return clusterName - */ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "c11-test", value = "Name of the cluster.") public String getClusterName() { @@ -81,9 +85,8 @@ public SearchUserIdsObject page(Integer page) { /** * Specify the page to retrieve. - * * @return page - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the page to retrieve.") public Integer getPage() { @@ -101,9 +104,8 @@ public SearchUserIdsObject hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. - * * @return hitsPerPage - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -155,7 +157,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java index 2d4535802b3..ee8eedee3df 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java @@ -1,14 +1,23 @@ package com.algolia.model; +import com.algolia.model.SearchUserIdsResponseHits; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** userIDs data. */ +/** + * userIDs data. + */ @ApiModel(description = "userIDs data.") public class SearchUserIdsResponse { @@ -49,9 +58,8 @@ public SearchUserIdsResponse addHitsItem(SearchUserIdsResponseHits hitsItem) { /** * List of user object matching the query. - * * @return hits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -72,9 +80,8 @@ public SearchUserIdsResponse nbHits(Object nbHits) { /** * Get nbHits - * * @return nbHits - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public Object getNbHits() { @@ -92,9 +99,8 @@ public SearchUserIdsResponse page(Integer page) { /** * Specify the page to retrieve. - * * @return page - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Specify the page to retrieve.") public Integer getPage() { @@ -112,9 +118,8 @@ public SearchUserIdsResponse hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. - * * @return hitsPerPage - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -132,9 +137,8 @@ public SearchUserIdsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -191,7 +195,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java index 09651a2ea8f..08457769e77 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java @@ -1,10 +1,21 @@ package com.algolia.model; +import com.algolia.model.HighlightResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** SearchUserIdsResponseHighlightResult */ +/** + * SearchUserIdsResponseHighlightResult + */ + public class SearchUserIdsResponseHighlightResult { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @@ -24,9 +35,8 @@ public SearchUserIdsResponseHighlightResult userID(HighlightResult userID) { /** * Get userID - * * @return userID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public HighlightResult getUserID() { @@ -46,9 +56,8 @@ public SearchUserIdsResponseHighlightResult clusterName( /** * Get clusterName - * * @return clusterName - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public HighlightResult getClusterName() { @@ -99,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java index 36d76eac7c7..abb5dac2179 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java @@ -1,10 +1,22 @@ package com.algolia.model; +import com.algolia.model.SearchUserIdsResponseHighlightResult; +import com.algolia.model.UserId; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** SearchUserIdsResponseHits */ +/** + * SearchUserIdsResponseHits + */ + public class SearchUserIdsResponseHits { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @@ -45,9 +57,8 @@ public SearchUserIdsResponseHits userID(UserId userID) { /** * Get userID - * * @return userID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public UserId getUserID() { @@ -65,9 +76,8 @@ public SearchUserIdsResponseHits clusterName(String clusterName) { /** * Name of the cluster. - * * @return clusterName - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "c11-test", @@ -89,9 +99,8 @@ public SearchUserIdsResponseHits nbRecords(Integer nbRecords) { /** * Number of records in the cluster. - * * @return nbRecords - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "3", @@ -113,9 +122,8 @@ public SearchUserIdsResponseHits dataSize(Integer dataSize) { /** * Data size taken by all the users assigned to the cluster. - * * @return dataSize - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "481", @@ -137,9 +145,8 @@ public SearchUserIdsResponseHits objectID(String objectID) { /** * userID of the requested user. Same as userID. - * * @return objectID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -162,9 +169,8 @@ public SearchUserIdsResponseHits highlightResult( /** * Get highlightResult - * * @return highlightResult - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public SearchUserIdsResponseHighlightResult getHighlightResult() { @@ -235,7 +241,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java index bdb6ef85d2a..00753353ecf 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** SetSettingsResponse */ +/** + * SetSettingsResponse + */ + public class SetSettingsResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -25,9 +35,8 @@ public SetSettingsResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. - * * @return taskID - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -45,9 +54,8 @@ public SetSettingsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date of last update (ISO-8601 format).") public OffsetDateTime getUpdatedAt() { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java index f117c587671..d77d10a6ee4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java @@ -5,11 +5,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** SnippetResult */ +/** + * SnippetResult + */ + public class SnippetResult { public static final String SERIALIZED_NAME_VALUE = "value"; @@ -17,7 +22,9 @@ public class SnippetResult { @SerializedName(SERIALIZED_NAME_VALUE) private String value; - /** Indicates how well the attribute matched the search query. */ + /** + * Indicates how well the attribute matched the search query. + */ @JsonAdapter(MatchLevelEnum.Adapter.class) public enum MatchLevelEnum { NONE("none"), @@ -81,9 +88,8 @@ public SnippetResult value(String value) { /** * Markup text with occurrences highlighted. - * * @return value - */ + **/ @javax.annotation.Nullable @ApiModelProperty( example = "George Clooney...", @@ -104,9 +110,8 @@ public SnippetResult matchLevel(MatchLevelEnum matchLevel) { /** * Indicates how well the attribute matched the search query. - * * @return matchLevel - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Indicates how well the attribute matched the search query." @@ -153,7 +158,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java new file mode 100644 index 00000000000..4052a4ab256 --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java @@ -0,0 +1,115 @@ +package com.algolia.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; +import java.util.Objects; + +/** + * The source. + */ +@ApiModel(description = "The source.") +public class Source { + + public static final String SERIALIZED_NAME_SOURCE = "source"; + + @SerializedName(SERIALIZED_NAME_SOURCE) + private String source; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public Source source(String source) { + this.source = source; + return this; + } + + /** + * The IP range of the source. + * @return source + **/ + @javax.annotation.Nonnull + @ApiModelProperty( + example = "10.0.0.1/32", + required = true, + value = "The IP range of the source." + ) + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public Source description(String description) { + this.description = description; + return this; + } + + /** + * The description of the source. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The description of the source.") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Source source = (Source) o; + return ( + Objects.equals(this.source, source.source) && + Objects.equals(this.description, source.description) + ); + } + + @Override + public int hashCode() { + return Objects.hash(source, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Source {\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb + .append(" description: ") + .append(toIndentedString(description)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java index 514cc6431b2..5324acde8d7 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java @@ -1,5 +1,6 @@ package com.algolia.model; +import com.algolia.model.SynonymHitHighlightResult; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -9,10 +10,13 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** Synonym object. */ +/** + * Synonym object. + */ @ApiModel(description = "Synonym object.") public class SynonymHit { @@ -21,7 +25,9 @@ public class SynonymHit { @SerializedName(SERIALIZED_NAME_OBJECT_I_D) private String objectID; - /** Type of the synonym object. */ + /** + * Type of the synonym object. + */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { SYNONYM("synonym"), @@ -124,9 +130,8 @@ public SynonymHit objectID(String objectID) { /** * Unique identifier of the synonym object to be created or updated. - * * @return objectID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -147,9 +152,8 @@ public SynonymHit type(TypeEnum type) { /** * Type of the synonym object. - * * @return type - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of the synonym object.") public TypeEnum getType() { @@ -175,9 +179,8 @@ public SynonymHit addSynonymsItem(String synonymsItem) { /** * Words or phrases to be considered equivalent. - * * @return synonyms - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Words or phrases to be considered equivalent.") public List getSynonyms() { @@ -195,9 +198,8 @@ public SynonymHit input(String input) { /** * Word or phrase to appear in query strings (for onewaysynonym). - * * @return input - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Word or phrase to appear in query strings (for onewaysynonym)." @@ -217,9 +219,8 @@ public SynonymHit word(String word) { /** * Word or phrase to appear in query strings (for altcorrection1 and altcorrection2). - * * @return word - */ + **/ @javax.annotation.Nullable @ApiModelProperty( value = "Word or phrase to appear in query strings (for altcorrection1 and altcorrection2)." @@ -247,9 +248,8 @@ public SynonymHit addCorrectionsItem(String correctionsItem) { /** * Words to be matched in records. - * * @return corrections - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Words to be matched in records.") public List getCorrections() { @@ -267,9 +267,8 @@ public SynonymHit placeholder(String placeholder) { /** * Token to be put inside records. - * * @return placeholder - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Token to be put inside records.") public String getPlaceholder() { @@ -295,9 +294,8 @@ public SynonymHit addReplacementsItem(String replacementsItem) { /** * List of query words that will match the token. - * * @return replacements - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "List of query words that will match the token.") public List getReplacements() { @@ -315,9 +313,8 @@ public SynonymHit highlightResult(SynonymHitHighlightResult highlightResult) { /** * Get highlightResult - * * @return highlightResult - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public SynonymHitHighlightResult getHighlightResult() { @@ -395,7 +392,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java index ccc0e886e3f..2e8909f225d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java @@ -1,13 +1,22 @@ package com.algolia.model; +import com.algolia.model.HighlightResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Objects; -/** Highlighted results */ +/** + * Highlighted results + */ @ApiModel(description = "Highlighted results") public class SynonymHitHighlightResult { @@ -28,9 +37,8 @@ public SynonymHitHighlightResult type(HighlightResult type) { /** * Get type - * * @return type - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public HighlightResult getType() { @@ -58,9 +66,8 @@ public SynonymHitHighlightResult addSynonymsItem( /** * Get synonyms - * * @return synonyms - */ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getSynonyms() { @@ -102,7 +109,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java index 2328d98f9a9..7208405d808 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java @@ -1,11 +1,21 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.Objects; -/** UpdateApiKeyResponse */ +/** + * UpdateApiKeyResponse + */ + public class UpdateApiKeyResponse { public static final String SERIALIZED_NAME_KEY = "key"; @@ -25,9 +35,8 @@ public UpdateApiKeyResponse key(String key) { /** * Key string. - * * @return key - */ + **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Key string.") public String getKey() { @@ -45,9 +54,8 @@ public UpdateApiKeyResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). - * * @return updatedAt - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -95,7 +103,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java index 03a68bf6c30..f7903ac0e4f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java @@ -1,11 +1,19 @@ package com.algolia.model; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; import java.util.Objects; -/** A userID. */ +/** + * A userID. + */ @ApiModel(description = "A userID.") public class UserId { @@ -36,9 +44,8 @@ public UserId userID(String userID) { /** * userID of the user. - * * @return userID - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "user1", @@ -60,9 +67,8 @@ public UserId clusterName(String clusterName) { /** * Cluster on which the user is assigned. - * * @return clusterName - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "c1-test", @@ -84,9 +90,8 @@ public UserId nbRecords(Integer nbRecords) { /** * Number of records belonging to the user. - * * @return nbRecords - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "42", @@ -108,9 +113,8 @@ public UserId dataSize(Integer dataSize) { /** * Data size used by the user. - * * @return dataSize - */ + **/ @javax.annotation.Nonnull @ApiModelProperty( example = "0", @@ -166,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java index 1e797f5f822..c91ffa77e4e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java @@ -5,8 +5,11 @@ import com.algolia.ApiException; import com.algolia.ApiResponse; import com.algolia.Pair; +import com.algolia.ProgressRequestBody; +import com.algolia.ProgressResponseBody; import com.algolia.model.AddApiKeyResponse; import com.algolia.model.ApiKey; +import com.algolia.model.AppendSourceResponse; import com.algolia.model.AssignUserIdObject; import com.algolia.model.AssignUserIdResponse; import com.algolia.model.BatchAssignUserIdsObject; @@ -16,7 +19,9 @@ import com.algolia.model.ClearAllSynonymsResponse; import com.algolia.model.DeleteApiKeyResponse; import com.algolia.model.DeleteIndexResponse; +import com.algolia.model.DeleteSourceResponse; import com.algolia.model.DeleteSynonymResponse; +import com.algolia.model.ErrorBase; import com.algolia.model.GetLogsResponse; import com.algolia.model.GetTaskResponse; import com.algolia.model.GetTopUserIdsResponse; @@ -32,6 +37,7 @@ import com.algolia.model.OperationIndexObject; import com.algolia.model.OperationIndexResponse; import com.algolia.model.RemoveUserIdResponse; +import com.algolia.model.ReplaceSourceResponse; import com.algolia.model.SaveObjectResponse; import com.algolia.model.SaveSynonymResponse; import com.algolia.model.SaveSynonymsResponse; @@ -41,10 +47,12 @@ import com.algolia.model.SearchUserIdsObject; import com.algolia.model.SearchUserIdsResponse; import com.algolia.model.SetSettingsResponse; +import com.algolia.model.Source; import com.algolia.model.SynonymHit; import com.algolia.model.UpdateApiKeyResponse; import com.algolia.model.UserId; import com.google.gson.reflect.TypeToken; +import java.io.IOException; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -58,22 +66,21 @@ public SearchApi(String appId, String apiKey) { } /** - * Build call for addApiKey - * - * @param apiKey (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for addApiKey + * @param apiKey (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call addApiKeyCall(ApiKey apiKey, final ApiCallback _callback) throws ApiException { Object localVarPostBody = apiKey; @@ -130,44 +137,42 @@ private okhttp3.Call addApiKeyValidateBeforeCall( } /** - * Create a new API key. Add a new API Key with specific permissions/restrictions. - * - * @param apiKey (required) - * @return AddApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Create a new API key. + * Add a new API Key with specific permissions/restrictions. + * @param apiKey (required) + * @return AddApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public AddApiKeyResponse addApiKey(ApiKey apiKey) throws ApiException { ApiResponse localVarResp = addApiKeyWithHttpInfo(apiKey); return localVarResp.getData(); } /** - * Create a new API key. Add a new API Key with specific permissions/restrictions. - * - * @param apiKey (required) - * @return ApiResponse<AddApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Create a new API key. + * Add a new API Key with specific permissions/restrictions. + * @param apiKey (required) + * @return ApiResponse<AddApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse addApiKeyWithHttpInfo(ApiKey apiKey) throws ApiException { okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(apiKey, null); @@ -176,23 +181,22 @@ public ApiResponse addApiKeyWithHttpInfo(ApiKey apiKey) } /** - * Create a new API key. (asynchronously) Add a new API Key with specific - * permissions/restrictions. - * - * @param apiKey (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Create a new API key. (asynchronously) + * Add a new API Key with specific permissions/restrictions. + * @param apiKey (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call addApiKeyAsync( ApiKey apiKey, final ApiCallback _callback @@ -204,23 +208,158 @@ public okhttp3.Call addApiKeyAsync( } /** - * Build call for assignUserId - * - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for appendSource + * @param source The sources to allow (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call appendSourceCall( + Source source, + final ApiCallback _callback + ) throws ApiException { + Object localVarPostBody = source; + + // create path and map variables + String localVarPath = "/1/security/sources/append"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { "application/json" }; + final String localVarAccept = this.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { "application/json" }; + final String localVarContentType = + this.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "apiKey", "appId" }; + return this.buildCall( + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback + ); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call appendSourceValidateBeforeCall( + Source source, + final ApiCallback _callback + ) throws ApiException { + // verify the required parameter 'source' is set + if (source == null) { + throw new ApiException( + "Missing the required parameter 'source' when calling appendSource(Async)" + ); + } + + okhttp3.Call localVarCall = appendSourceCall(source, _callback); + return localVarCall; + } + + /** + * + * Add a single source to the list of allowed sources. + * @param source The sources to allow (required) + * @return AppendSourceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public AppendSourceResponse appendSource(Source source) throws ApiException { + ApiResponse localVarResp = appendSourceWithHttpInfo( + source + ); + return localVarResp.getData(); + } + + /** + * + * Add a single source to the list of allowed sources. + * @param source The sources to allow (required) + * @return ApiResponse<AppendSourceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse appendSourceWithHttpInfo( + Source source + ) throws ApiException { + okhttp3.Call localVarCall = appendSourceValidateBeforeCall(source, null); + Type localVarReturnType = new TypeToken() {} + .getType(); + return this.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add a single source to the list of allowed sources. + * @param source The sources to allow (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call appendSourceAsync( + Source source, + final ApiCallback _callback + ) throws ApiException { + okhttp3.Call localVarCall = appendSourceValidateBeforeCall( + source, + _callback + ); + Type localVarReturnType = new TypeToken() {} + .getType(); + this.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for assignUserId + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call assignUserIdCall( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject, @@ -298,26 +437,22 @@ private okhttp3.Call assignUserIdValidateBeforeCall( } /** - * Assign or Move userID Assign or Move a userID to a cluster. The time it takes to migrate (move) - * a user is proportional to the amount of data linked to the userID. Upon success, the response - * is 200 OK. A successful response indicates that the operation has been taken into account, and - * the userID is directly usable. - * - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @return AssignUserIdResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Assign or Move userID + * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable. + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @return AssignUserIdResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public AssignUserIdResponse assignUserId( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject @@ -330,26 +465,22 @@ public AssignUserIdResponse assignUserId( } /** - * Assign or Move userID Assign or Move a userID to a cluster. The time it takes to migrate (move) - * a user is proportional to the amount of data linked to the userID. Upon success, the response - * is 200 OK. A successful response indicates that the operation has been taken into account, and - * the userID is directly usable. - * - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @return ApiResponse<AssignUserIdResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Assign or Move userID + * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable. + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @return ApiResponse<AssignUserIdResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse assignUserIdWithHttpInfo( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject @@ -365,26 +496,23 @@ public ApiResponse assignUserIdWithHttpInfo( } /** - * Assign or Move userID (asynchronously) Assign or Move a userID to a cluster. The time it takes - * to migrate (move) a user is proportional to the amount of data linked to the userID. Upon - * success, the response is 200 OK. A successful response indicates that the operation has been - * taken into account, and the userID is directly usable. - * - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Assign or Move userID (asynchronously) + * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable. + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call assignUserIdAsync( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject, @@ -402,23 +530,22 @@ public okhttp3.Call assignUserIdAsync( } /** - * Build call for batch - * - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for batch + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchCall( String indexName, BatchObject batchObject, @@ -490,23 +617,22 @@ private okhttp3.Call batchValidateBeforeCall( } /** - * Performs multiple write operations in a single API call. - * - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @return BatchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Performs multiple write operations in a single API call. + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @return BatchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public BatchResponse batch(String indexName, BatchObject batchObject) throws ApiException { ApiResponse localVarResp = batchWithHttpInfo( @@ -517,23 +643,22 @@ public BatchResponse batch(String indexName, BatchObject batchObject) } /** - * Performs multiple write operations in a single API call. - * - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @return ApiResponse<BatchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Performs multiple write operations in a single API call. + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @return ApiResponse<BatchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse batchWithHttpInfo( String indexName, BatchObject batchObject @@ -548,23 +673,23 @@ public ApiResponse batchWithHttpInfo( } /** - * (asynchronously) Performs multiple write operations in a single API call. - * - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Performs multiple write operations in a single API call. + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchAsync( String indexName, BatchObject batchObject, @@ -581,23 +706,22 @@ public okhttp3.Call batchAsync( } /** - * Build call for batchAssignUserIds - * - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for batchAssignUserIds + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchAssignUserIdsCall( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject, @@ -662,8 +786,7 @@ private okhttp3.Call batchAssignUserIdsValidateBeforeCall( // verify the required parameter 'batchAssignUserIdsObject' is set if (batchAssignUserIdsObject == null) { throw new ApiException( - "Missing the required parameter 'batchAssignUserIdsObject' when calling" + - " batchAssignUserIds(Async)" + "Missing the required parameter 'batchAssignUserIdsObject' when calling batchAssignUserIds(Async)" ); } @@ -676,25 +799,22 @@ private okhttp3.Call batchAssignUserIdsValidateBeforeCall( } /** - * Batch assign userIDs Assign multiple userIDs to a cluster. Upon success, the response is 200 - * OK. A successful response indicates that the operation has been taken into account, and the - * userIDs are directly usable. - * - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @return BatchAssignUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Batch assign userIDs + * Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @return BatchAssignUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public BatchAssignUserIdsResponse batchAssignUserIds( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject @@ -707,25 +827,22 @@ public BatchAssignUserIdsResponse batchAssignUserIds( } /** - * Batch assign userIDs Assign multiple userIDs to a cluster. Upon success, the response is 200 - * OK. A successful response indicates that the operation has been taken into account, and the - * userIDs are directly usable. - * - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @return ApiResponse<BatchAssignUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Batch assign userIDs + * Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @return ApiResponse<BatchAssignUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse batchAssignUserIdsWithHttpInfo( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject @@ -741,25 +858,23 @@ public ApiResponse batchAssignUserIdsWithHttpInfo( } /** - * Batch assign userIDs (asynchronously) Assign multiple userIDs to a cluster. Upon success, the - * response is 200 OK. A successful response indicates that the operation has been taken into - * account, and the userIDs are directly usable. - * - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Batch assign userIDs (asynchronously) + * Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchAssignUserIdsAsync( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject, @@ -777,24 +892,22 @@ public okhttp3.Call batchAssignUserIdsAsync( } /** - * Build call for clearAllSynonyms - * - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for clearAllSynonyms + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call clearAllSynonymsCall( String indexName, Boolean forwardToReplicas, @@ -828,7 +941,6 @@ public okhttp3.Call clearAllSynonymsCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -870,24 +982,22 @@ private okhttp3.Call clearAllSynonymsValidateBeforeCall( } /** - * Clear all synonyms. Remove all synonyms from an index. - * - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return ClearAllSynonymsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Clear all synonyms. + * Remove all synonyms from an index. + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return ClearAllSynonymsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ClearAllSynonymsResponse clearAllSynonyms( String indexName, Boolean forwardToReplicas @@ -900,24 +1010,22 @@ public ClearAllSynonymsResponse clearAllSynonyms( } /** - * Clear all synonyms. Remove all synonyms from an index. - * - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return ApiResponse<ClearAllSynonymsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Clear all synonyms. + * Remove all synonyms from an index. + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return ApiResponse<ClearAllSynonymsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse clearAllSynonymsWithHttpInfo( String indexName, Boolean forwardToReplicas @@ -933,24 +1041,23 @@ public ApiResponse clearAllSynonymsWithHttpInfo( } /** - * Clear all synonyms. (asynchronously) Remove all synonyms from an index. - * - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Clear all synonyms. (asynchronously) + * Remove all synonyms from an index. + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call clearAllSynonymsAsync( String indexName, Boolean forwardToReplicas, @@ -968,22 +1075,21 @@ public okhttp3.Call clearAllSynonymsAsync( } /** - * Build call for deleteApiKey - * - * @param key API Key string. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for deleteApiKey + * @param key API Key string. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteApiKeyCall(String key, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -1008,7 +1114,6 @@ public okhttp3.Call deleteApiKeyCall(String key, final ApiCallback _callback) } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1045,22 +1150,21 @@ private okhttp3.Call deleteApiKeyValidateBeforeCall( } /** - * Delete an API key. Delete an existing API Key. - * - * @param key API Key string. (required) - * @return DeleteApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete an API key. + * Delete an existing API Key. + * @param key API Key string. (required) + * @return DeleteApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public DeleteApiKeyResponse deleteApiKey(String key) throws ApiException { ApiResponse localVarResp = deleteApiKeyWithHttpInfo( key @@ -1069,22 +1173,21 @@ public DeleteApiKeyResponse deleteApiKey(String key) throws ApiException { } /** - * Delete an API key. Delete an existing API Key. - * - * @param key API Key string. (required) - * @return ApiResponse<DeleteApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete an API key. + * Delete an existing API Key. + * @param key API Key string. (required) + * @return ApiResponse<DeleteApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse deleteApiKeyWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(key, null); @@ -1094,22 +1197,22 @@ public ApiResponse deleteApiKeyWithHttpInfo(String key) } /** - * Delete an API key. (asynchronously) Delete an existing API Key. - * - * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete an API key. (asynchronously) + * Delete an existing API Key. + * @param key API Key string. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteApiKeyAsync( String key, final ApiCallback _callback @@ -1122,22 +1225,21 @@ public okhttp3.Call deleteApiKeyAsync( } /** - * Build call for deleteIndex - * - * @param indexName The index in which to perform the request. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for deleteIndex + * @param indexName The index in which to perform the request. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteIndexCall( String indexName, final ApiCallback _callback @@ -1164,7 +1266,6 @@ public okhttp3.Call deleteIndexCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1201,22 +1302,21 @@ private okhttp3.Call deleteIndexValidateBeforeCall( } /** - * Delete index. Delete an existing index. - * - * @param indexName The index in which to perform the request. (required) - * @return DeleteIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete index. + * Delete an existing index. + * @param indexName The index in which to perform the request. (required) + * @return DeleteIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public DeleteIndexResponse deleteIndex(String indexName) throws ApiException { ApiResponse localVarResp = deleteIndexWithHttpInfo( indexName @@ -1225,22 +1325,21 @@ public DeleteIndexResponse deleteIndex(String indexName) throws ApiException { } /** - * Delete index. Delete an existing index. - * - * @param indexName The index in which to perform the request. (required) - * @return ApiResponse<DeleteIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete index. + * Delete an existing index. + * @param indexName The index in which to perform the request. (required) + * @return ApiResponse<DeleteIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse deleteIndexWithHttpInfo( String indexName ) throws ApiException { @@ -1250,22 +1349,22 @@ public ApiResponse deleteIndexWithHttpInfo( } /** - * Delete index. (asynchronously) Delete an existing index. - * - * @param indexName The index in which to perform the request. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete index. (asynchronously) + * Delete an existing index. + * @param indexName The index in which to perform the request. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteIndexAsync( String indexName, final ApiCallback _callback @@ -1280,25 +1379,163 @@ public okhttp3.Call deleteIndexAsync( } /** - * Build call for deleteSynonym - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for deleteSource + * @param source The IP range of the source. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteSourceCall( + String source, + final ApiCallback _callback + ) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/1/security/sources/{source}".replaceAll( + "\\{" + "source" + "\\}", + this.escapeString(source.toString()) + ); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { "application/json" }; + final String localVarAccept = this.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + this.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "apiKey", "appId" }; + return this.buildCall( + localVarPath, + "DELETE", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback + ); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSourceValidateBeforeCall( + String source, + final ApiCallback _callback + ) throws ApiException { + // verify the required parameter 'source' is set + if (source == null) { + throw new ApiException( + "Missing the required parameter 'source' when calling deleteSource(Async)" + ); + } + + okhttp3.Call localVarCall = deleteSourceCall(source, _callback); + return localVarCall; + } + + /** + * + * Remove a single source from the list of allowed sources. + * @param source The IP range of the source. (required) + * @return DeleteSourceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DeleteSourceResponse deleteSource(String source) throws ApiException { + ApiResponse localVarResp = deleteSourceWithHttpInfo( + source + ); + return localVarResp.getData(); + } + + /** + * + * Remove a single source from the list of allowed sources. + * @param source The IP range of the source. (required) + * @return ApiResponse<DeleteSourceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteSourceWithHttpInfo( + String source + ) throws ApiException { + okhttp3.Call localVarCall = deleteSourceValidateBeforeCall(source, null); + Type localVarReturnType = new TypeToken() {} + .getType(); + return this.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Remove a single source from the list of allowed sources. + * @param source The IP range of the source. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteSourceAsync( + String source, + final ApiCallback _callback + ) throws ApiException { + okhttp3.Call localVarCall = deleteSourceValidateBeforeCall( + source, + _callback + ); + Type localVarReturnType = new TypeToken() {} + .getType(); + this.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteSynonym + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteSynonymCall( String indexName, String objectID, @@ -1337,7 +1574,6 @@ public okhttp3.Call deleteSynonymCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1388,25 +1624,23 @@ private okhttp3.Call deleteSynonymValidateBeforeCall( } /** - * Delete synonym. Delete a single synonyms set, identified by the given objectID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return DeleteSynonymResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete synonym. + * Delete a single synonyms set, identified by the given objectID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return DeleteSynonymResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public DeleteSynonymResponse deleteSynonym( String indexName, String objectID, @@ -1421,25 +1655,23 @@ public DeleteSynonymResponse deleteSynonym( } /** - * Delete synonym. Delete a single synonyms set, identified by the given objectID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return ApiResponse<DeleteSynonymResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete synonym. + * Delete a single synonyms set, identified by the given objectID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return ApiResponse<DeleteSynonymResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse deleteSynonymWithHttpInfo( String indexName, String objectID, @@ -1457,26 +1689,24 @@ public ApiResponse deleteSynonymWithHttpInfo( } /** - * Delete synonym. (asynchronously) Delete a single synonyms set, identified by the given - * objectID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete synonym. (asynchronously) + * Delete a single synonyms set, identified by the given objectID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteSynonymAsync( String indexName, String objectID, @@ -1496,22 +1726,21 @@ public okhttp3.Call deleteSynonymAsync( } /** - * Build call for getApiKey - * - * @param key API Key string. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getApiKey + * @param key API Key string. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getApiKeyCall(String key, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -1536,7 +1765,6 @@ public okhttp3.Call getApiKeyCall(String key, final ApiCallback _callback) } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1573,44 +1801,42 @@ private okhttp3.Call getApiKeyValidateBeforeCall( } /** - * Get an API key. Get the permissions of an API key. - * - * @param key API Key string. (required) - * @return KeyObject - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get an API key. + * Get the permissions of an API key. + * @param key API Key string. (required) + * @return KeyObject + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public KeyObject getApiKey(String key) throws ApiException { ApiResponse localVarResp = getApiKeyWithHttpInfo(key); return localVarResp.getData(); } /** - * Get an API key. Get the permissions of an API key. - * - * @param key API Key string. (required) - * @return ApiResponse<KeyObject> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get an API key. + * Get the permissions of an API key. + * @param key API Key string. (required) + * @return ApiResponse<KeyObject> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getApiKeyWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = getApiKeyValidateBeforeCall(key, null); @@ -1619,22 +1845,22 @@ public ApiResponse getApiKeyWithHttpInfo(String key) } /** - * Get an API key. (asynchronously) Get the permissions of an API key. - * - * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get an API key. (asynchronously) + * Get the permissions of an API key. + * @param key API Key string. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getApiKeyAsync( String key, final ApiCallback _callback @@ -1646,29 +1872,24 @@ public okhttp3.Call getApiKeyAsync( } /** - * Build call for getLogs - * - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, - * therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. - * (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are - * retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. - * (optional, default to all) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getLogs + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getLogsCall( Integer offset, Integer length, @@ -1710,7 +1931,6 @@ public okhttp3.Call getLogsCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1749,29 +1969,24 @@ private okhttp3.Call getLogsValidateBeforeCall( } /** - * Return the lastest log entries. - * - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, - * therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. - * (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are - * retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. - * (optional, default to all) - * @return GetLogsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Return the lastest log entries. + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) + * @return GetLogsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public GetLogsResponse getLogs( Integer offset, Integer length, @@ -1788,29 +2003,24 @@ public GetLogsResponse getLogs( } /** - * Return the lastest log entries. - * - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, - * therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. - * (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are - * retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. - * (optional, default to all) - * @return ApiResponse<GetLogsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Return the lastest log entries. + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) + * @return ApiResponse<GetLogsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getLogsWithHttpInfo( Integer offset, Integer length, @@ -1829,29 +2039,25 @@ public ApiResponse getLogsWithHttpInfo( } /** - * (asynchronously) Return the lastest log entries. - * - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, - * therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. - * (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are - * retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. - * (optional, default to all) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Return the lastest log entries. + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getLogsAsync( Integer offset, Integer length, @@ -1872,22 +2078,21 @@ public okhttp3.Call getLogsAsync( } /** - * Build call for getSettings - * - * @param indexName The index in which to perform the request. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getSettings + * @param indexName The index in which to perform the request. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSettingsCall( String indexName, final ApiCallback _callback @@ -1914,7 +2119,6 @@ public okhttp3.Call getSettingsCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1951,22 +2155,21 @@ private okhttp3.Call getSettingsValidateBeforeCall( } /** - * Retrieve settings of a given indexName. - * - * @param indexName The index in which to perform the request. (required) - * @return IndexSettings - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Retrieve settings of a given indexName. + * @param indexName The index in which to perform the request. (required) + * @return IndexSettings + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public IndexSettings getSettings(String indexName) throws ApiException { ApiResponse localVarResp = getSettingsWithHttpInfo( indexName @@ -1975,22 +2178,21 @@ public IndexSettings getSettings(String indexName) throws ApiException { } /** - * Retrieve settings of a given indexName. - * - * @param indexName The index in which to perform the request. (required) - * @return ApiResponse<IndexSettings> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Retrieve settings of a given indexName. + * @param indexName The index in which to perform the request. (required) + * @return ApiResponse<IndexSettings> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getSettingsWithHttpInfo(String indexName) throws ApiException { okhttp3.Call localVarCall = getSettingsValidateBeforeCall(indexName, null); @@ -1999,22 +2201,22 @@ public ApiResponse getSettingsWithHttpInfo(String indexName) } /** - * (asynchronously) Retrieve settings of a given indexName. - * - * @param indexName The index in which to perform the request. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Retrieve settings of a given indexName. + * @param indexName The index in which to perform the request. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSettingsAsync( String indexName, final ApiCallback _callback @@ -2029,23 +2231,135 @@ public okhttp3.Call getSettingsAsync( } /** - * Build call for getSynonym - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getSources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getSourcesCall(final ApiCallback _callback) + throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/1/security/sources"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { "application/json" }; + final String localVarAccept = this.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + this.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "apiKey", "appId" }; + return this.buildCall( + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback + ); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSourcesValidateBeforeCall( + final ApiCallback _callback + ) throws ApiException { + okhttp3.Call localVarCall = getSourcesCall(_callback); + return localVarCall; + } + + /** + * + * List all allowed sources. + * @return List<Source> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getSources() throws ApiException { + ApiResponse> localVarResp = getSourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * List all allowed sources. + * @return ApiResponse<List<Source>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getSourcesWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = getSourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>() {}.getType(); + return this.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * List all allowed sources. + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getSourcesAsync( + final ApiCallback> _callback + ) throws ApiException { + okhttp3.Call localVarCall = getSourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>() {}.getType(); + this.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getSynonym + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSynonymCall( String indexName, String objectID, @@ -2077,7 +2391,6 @@ public okhttp3.Call getSynonymCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2122,23 +2435,22 @@ private okhttp3.Call getSynonymValidateBeforeCall( } /** - * Get synonym. Fetch a synonym object identified by its objectID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @return SynonymHit - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get synonym. + * Fetch a synonym object identified by its objectID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @return SynonymHit + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SynonymHit getSynonym(String indexName, String objectID) throws ApiException { ApiResponse localVarResp = getSynonymWithHttpInfo( @@ -2149,23 +2461,22 @@ public SynonymHit getSynonym(String indexName, String objectID) } /** - * Get synonym. Fetch a synonym object identified by its objectID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @return ApiResponse<SynonymHit> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get synonym. + * Fetch a synonym object identified by its objectID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @return ApiResponse<SynonymHit> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getSynonymWithHttpInfo( String indexName, String objectID @@ -2180,23 +2491,23 @@ public ApiResponse getSynonymWithHttpInfo( } /** - * Get synonym. (asynchronously) Fetch a synonym object identified by its objectID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get synonym. (asynchronously) + * Fetch a synonym object identified by its objectID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSynonymAsync( String indexName, String objectID, @@ -2213,23 +2524,22 @@ public okhttp3.Call getSynonymAsync( } /** - * Build call for getTask - * - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getTask + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTaskCall( String indexName, Integer taskID, @@ -2261,7 +2571,6 @@ public okhttp3.Call getTaskCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2306,23 +2615,22 @@ private okhttp3.Call getTaskValidateBeforeCall( } /** - * Check the current status of a given task. - * - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @return GetTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Check the current status of a given task. + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @return GetTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public GetTaskResponse getTask(String indexName, Integer taskID) throws ApiException { ApiResponse localVarResp = getTaskWithHttpInfo( @@ -2333,23 +2641,22 @@ public GetTaskResponse getTask(String indexName, Integer taskID) } /** - * Check the current status of a given task. - * - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @return ApiResponse<GetTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Check the current status of a given task. + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @return ApiResponse<GetTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getTaskWithHttpInfo( String indexName, Integer taskID @@ -2364,23 +2671,23 @@ public ApiResponse getTaskWithHttpInfo( } /** - * (asynchronously) Check the current status of a given task. - * - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Check the current status of a given task. + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTaskAsync( String indexName, Integer taskID, @@ -2397,21 +2704,20 @@ public okhttp3.Call getTaskAsync( } /** - * Build call for getTopUserIds - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getTopUserIds + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTopUserIdsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -2432,7 +2738,6 @@ public okhttp3.Call getTopUserIdsCall(final ApiCallback _callback) } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2461,48 +2766,40 @@ private okhttp3.Call getTopUserIdsValidateBeforeCall( } /** - * Get top userID Get the top 10 userIDs with the highest number of records per cluster. The data - * returned will usually be a few seconds behind real time, because userID usage may take up to a - * few seconds to propagate to the different clusters. Upon success, the response is 200 OK and - * contains the following array of userIDs and clusters. - * - * @return GetTopUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get top userID + * Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters. + * @return GetTopUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public GetTopUserIdsResponse getTopUserIds() throws ApiException { ApiResponse localVarResp = getTopUserIdsWithHttpInfo(); return localVarResp.getData(); } /** - * Get top userID Get the top 10 userIDs with the highest number of records per cluster. The data - * returned will usually be a few seconds behind real time, because userID usage may take up to a - * few seconds to propagate to the different clusters. Upon success, the response is 200 OK and - * contains the following array of userIDs and clusters. - * - * @return ApiResponse<GetTopUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get top userID + * Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters. + * @return ApiResponse<GetTopUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getTopUserIdsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTopUserIdsValidateBeforeCall(null); @@ -2512,24 +2809,21 @@ public ApiResponse getTopUserIdsWithHttpInfo() } /** - * Get top userID (asynchronously) Get the top 10 userIDs with the highest number of records per - * cluster. The data returned will usually be a few seconds behind real time, because userID usage - * may take up to a few seconds to propagate to the different clusters. Upon success, the response - * is 200 OK and contains the following array of userIDs and clusters. - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get top userID (asynchronously) + * Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters. + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTopUserIdsAsync( final ApiCallback _callback ) throws ApiException { @@ -2541,22 +2835,21 @@ public okhttp3.Call getTopUserIdsAsync( } /** - * Build call for getUserId - * - * @param userID userID to assign. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getUserId + * @param userID userID to assign. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getUserIdCall(Object userID, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -2581,7 +2874,6 @@ public okhttp3.Call getUserIdCall(Object userID, final ApiCallback _callback) } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2618,50 +2910,42 @@ private okhttp3.Call getUserIdValidateBeforeCall( } /** - * Get userID Returns the userID data stored in the mapping. The data returned will usually be a - * few seconds behind real time, because userID usage may take up to a few seconds to propagate to - * the different clusters. Upon success, the response is 200 OK and contains the following userID - * data. - * - * @param userID userID to assign. (required) - * @return UserId - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get userID + * Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data. + * @param userID userID to assign. (required) + * @return UserId + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public UserId getUserId(Object userID) throws ApiException { ApiResponse localVarResp = getUserIdWithHttpInfo(userID); return localVarResp.getData(); } /** - * Get userID Returns the userID data stored in the mapping. The data returned will usually be a - * few seconds behind real time, because userID usage may take up to a few seconds to propagate to - * the different clusters. Upon success, the response is 200 OK and contains the following userID - * data. - * - * @param userID userID to assign. (required) - * @return ApiResponse<UserId> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get userID + * Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data. + * @param userID userID to assign. (required) + * @return ApiResponse<UserId> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getUserIdWithHttpInfo(Object userID) throws ApiException { okhttp3.Call localVarCall = getUserIdValidateBeforeCall(userID, null); @@ -2670,25 +2954,22 @@ public ApiResponse getUserIdWithHttpInfo(Object userID) } /** - * Get userID (asynchronously) Returns the userID data stored in the mapping. The data returned - * will usually be a few seconds behind real time, because userID usage may take up to a few - * seconds to propagate to the different clusters. Upon success, the response is 200 OK and - * contains the following userID data. - * - * @param userID userID to assign. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get userID (asynchronously) + * Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data. + * @param userID userID to assign. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getUserIdAsync( Object userID, final ApiCallback _callback @@ -2700,22 +2981,21 @@ public okhttp3.Call getUserIdAsync( } /** - * Build call for hasPendingMappings - * - * @param getClusters (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for hasPendingMappings + * @param getClusters (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call hasPendingMappingsCall( Boolean getClusters, final ApiCallback _callback @@ -2744,7 +3024,6 @@ public okhttp3.Call hasPendingMappingsCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2774,26 +3053,21 @@ private okhttp3.Call hasPendingMappingsValidateBeforeCall( } /** - * Has pending mappings Get the status of your clusters’ migrations or user creations. Creating a - * large batch of users or migrating your multi-cluster may take quite some time. This method lets - * you retrieve the status of the migration, so you can know when it’s done. Upon success, the - * response is 200 OK. A successful response indicates that the operation has been taken into - * account, and the userIDs are directly usable. - * - * @param getClusters (optional) - * @return HasPendingMappingsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Has pending mappings + * Get the status of your clusters’ migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it’s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. + * @param getClusters (optional) + * @return HasPendingMappingsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public HasPendingMappingsResponse hasPendingMappings(Boolean getClusters) throws ApiException { ApiResponse localVarResp = hasPendingMappingsWithHttpInfo( @@ -2803,26 +3077,21 @@ public HasPendingMappingsResponse hasPendingMappings(Boolean getClusters) } /** - * Has pending mappings Get the status of your clusters’ migrations or user creations. Creating a - * large batch of users or migrating your multi-cluster may take quite some time. This method lets - * you retrieve the status of the migration, so you can know when it’s done. Upon success, the - * response is 200 OK. A successful response indicates that the operation has been taken into - * account, and the userIDs are directly usable. - * - * @param getClusters (optional) - * @return ApiResponse<HasPendingMappingsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Has pending mappings + * Get the status of your clusters’ migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it’s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. + * @param getClusters (optional) + * @return ApiResponse<HasPendingMappingsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse hasPendingMappingsWithHttpInfo( Boolean getClusters ) throws ApiException { @@ -2836,26 +3105,22 @@ public ApiResponse hasPendingMappingsWithHttpInfo( } /** - * Has pending mappings (asynchronously) Get the status of your clusters’ migrations or user - * creations. Creating a large batch of users or migrating your multi-cluster may take quite some - * time. This method lets you retrieve the status of the migration, so you can know when it’s - * done. Upon success, the response is 200 OK. A successful response indicates that the operation - * has been taken into account, and the userIDs are directly usable. - * - * @param getClusters (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Has pending mappings (asynchronously) + * Get the status of your clusters’ migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it’s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. + * @param getClusters (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call hasPendingMappingsAsync( Boolean getClusters, final ApiCallback _callback @@ -2871,21 +3136,20 @@ public okhttp3.Call hasPendingMappingsAsync( } /** - * Build call for listApiKeys - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listApiKeys + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listApiKeysCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -2906,7 +3170,6 @@ public okhttp3.Call listApiKeysCall(final ApiCallback _callback) } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2935,42 +3198,40 @@ private okhttp3.Call listApiKeysValidateBeforeCall( } /** - * Get the full list of API Keys. List API keys, along with their associated rights. - * - * @return ListApiKeysResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get the full list of API Keys. + * List API keys, along with their associated rights. + * @return ListApiKeysResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListApiKeysResponse listApiKeys() throws ApiException { ApiResponse localVarResp = listApiKeysWithHttpInfo(); return localVarResp.getData(); } /** - * Get the full list of API Keys. List API keys, along with their associated rights. - * - * @return ApiResponse<ListApiKeysResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get the full list of API Keys. + * List API keys, along with their associated rights. + * @return ApiResponse<ListApiKeysResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listApiKeysWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listApiKeysValidateBeforeCall(null); @@ -2979,22 +3240,21 @@ public ApiResponse listApiKeysWithHttpInfo() } /** - * Get the full list of API Keys. (asynchronously) List API keys, along with their associated - * rights. - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get the full list of API Keys. (asynchronously) + * List API keys, along with their associated rights. + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listApiKeysAsync( final ApiCallback _callback ) throws ApiException { @@ -3005,21 +3265,20 @@ public okhttp3.Call listApiKeysAsync( } /** - * Build call for listClusters - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listClusters + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listClustersCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -3040,7 +3299,6 @@ public okhttp3.Call listClustersCall(final ApiCallback _callback) } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3069,44 +3327,40 @@ private okhttp3.Call listClustersValidateBeforeCall( } /** - * List clusters List the clusters available in a multi-clusters setup for a single appID. Upon - * success, the response is 200 OK and contains the following clusters. - * - * @return ListClustersResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List clusters + * List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters. + * @return ListClustersResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListClustersResponse listClusters() throws ApiException { ApiResponse localVarResp = listClustersWithHttpInfo(); return localVarResp.getData(); } /** - * List clusters List the clusters available in a multi-clusters setup for a single appID. Upon - * success, the response is 200 OK and contains the following clusters. - * - * @return ApiResponse<ListClustersResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List clusters + * List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters. + * @return ApiResponse<ListClustersResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listClustersWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listClustersValidateBeforeCall(null); @@ -3116,22 +3370,21 @@ public ApiResponse listClustersWithHttpInfo() } /** - * List clusters (asynchronously) List the clusters available in a multi-clusters setup for a - * single appID. Upon success, the response is 200 OK and contains the following clusters. - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List clusters (asynchronously) + * List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters. + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listClustersAsync( final ApiCallback _callback ) throws ApiException { @@ -3143,24 +3396,21 @@ public okhttp3.Call listClustersAsync( } /** - * Build call for listIndices - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listIndices + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listIndicesCall( Integer page, final ApiCallback _callback @@ -3187,7 +3437,6 @@ public okhttp3.Call listIndicesCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3217,24 +3466,21 @@ private okhttp3.Call listIndicesValidateBeforeCall( } /** - * List existing indexes. List existing indexes from an application. - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @return ListIndicesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List existing indexes. + * List existing indexes from an application. + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @return ListIndicesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListIndicesResponse listIndices(Integer page) throws ApiException { ApiResponse localVarResp = listIndicesWithHttpInfo( page @@ -3243,24 +3489,21 @@ public ListIndicesResponse listIndices(Integer page) throws ApiException { } /** - * List existing indexes. List existing indexes from an application. - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @return ApiResponse<ListIndicesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List existing indexes. + * List existing indexes from an application. + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @return ApiResponse<ListIndicesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listIndicesWithHttpInfo(Integer page) throws ApiException { okhttp3.Call localVarCall = listIndicesValidateBeforeCall(page, null); @@ -3269,24 +3512,22 @@ public ApiResponse listIndicesWithHttpInfo(Integer page) } /** - * List existing indexes. (asynchronously) List existing indexes from an application. - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List existing indexes. (asynchronously) + * List existing indexes from an application. + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listIndicesAsync( Integer page, final ApiCallback _callback @@ -3298,25 +3539,22 @@ public okhttp3.Call listIndicesAsync( } /** - * Build call for listUserIds - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listUserIds + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listUserIdsCall( Integer page, Integer hitsPerPage, @@ -3350,7 +3588,6 @@ public okhttp3.Call listUserIdsCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3381,28 +3618,22 @@ private okhttp3.Call listUserIdsValidateBeforeCall( } /** - * List userIDs List the userIDs assigned to a multi-clusters appID. The data returned will - * usually be a few seconds behind real time, because userID usage may take up to a few seconds to - * propagate to the different clusters. Upon success, the response is 200 OK and contains the - * following userIDs data. - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return ListUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List userIDs + * List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data. + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return ListUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListUserIdsResponse listUserIds(Integer page, Integer hitsPerPage) throws ApiException { ApiResponse localVarResp = listUserIdsWithHttpInfo( @@ -3413,28 +3644,22 @@ public ListUserIdsResponse listUserIds(Integer page, Integer hitsPerPage) } /** - * List userIDs List the userIDs assigned to a multi-clusters appID. The data returned will - * usually be a few seconds behind real time, because userID usage may take up to a few seconds to - * propagate to the different clusters. Upon success, the response is 200 OK and contains the - * following userIDs data. - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return ApiResponse<ListUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List userIDs + * List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data. + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return ApiResponse<ListUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listUserIdsWithHttpInfo( Integer page, Integer hitsPerPage @@ -3449,28 +3674,23 @@ public ApiResponse listUserIdsWithHttpInfo( } /** - * List userIDs (asynchronously) List the userIDs assigned to a multi-clusters appID. The data - * returned will usually be a few seconds behind real time, because userID usage may take up to a - * few seconds to propagate to the different clusters. Upon success, the response is 200 OK and - * contains the following userIDs data. - * - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List userIDs (asynchronously) + * List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data. + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listUserIdsAsync( Integer page, Integer hitsPerPage, @@ -3487,22 +3707,21 @@ public okhttp3.Call listUserIdsAsync( } /** - * Build call for multipleQueries - * - * @param multipleQueriesObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for multipleQueries + * @param multipleQueriesObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call multipleQueriesCall( MultipleQueriesObject multipleQueriesObject, final ApiCallback _callback @@ -3552,8 +3771,7 @@ private okhttp3.Call multipleQueriesValidateBeforeCall( // verify the required parameter 'multipleQueriesObject' is set if (multipleQueriesObject == null) { throw new ApiException( - "Missing the required parameter 'multipleQueriesObject' when calling" + - " multipleQueries(Async)" + "Missing the required parameter 'multipleQueriesObject' when calling multipleQueries(Async)" ); } @@ -3565,22 +3783,21 @@ private okhttp3.Call multipleQueriesValidateBeforeCall( } /** - * Get search results for the given requests. - * - * @param multipleQueriesObject (required) - * @return MultipleQueriesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Get search results for the given requests. + * @param multipleQueriesObject (required) + * @return MultipleQueriesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public MultipleQueriesResponse multipleQueries( MultipleQueriesObject multipleQueriesObject ) throws ApiException { @@ -3591,22 +3808,21 @@ public MultipleQueriesResponse multipleQueries( } /** - * Get search results for the given requests. - * - * @param multipleQueriesObject (required) - * @return ApiResponse<MultipleQueriesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Get search results for the given requests. + * @param multipleQueriesObject (required) + * @return ApiResponse<MultipleQueriesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse multipleQueriesWithHttpInfo( MultipleQueriesObject multipleQueriesObject ) throws ApiException { @@ -3620,22 +3836,22 @@ public ApiResponse multipleQueriesWithHttpInfo( } /** - * (asynchronously) Get search results for the given requests. - * - * @param multipleQueriesObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Get search results for the given requests. + * @param multipleQueriesObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call multipleQueriesAsync( MultipleQueriesObject multipleQueriesObject, final ApiCallback _callback @@ -3651,23 +3867,22 @@ public okhttp3.Call multipleQueriesAsync( } /** - * Build call for operationIndex - * - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for operationIndex + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call operationIndexCall( String indexName, OperationIndexObject operationIndexObject, @@ -3730,8 +3945,7 @@ private okhttp3.Call operationIndexValidateBeforeCall( // verify the required parameter 'operationIndexObject' is set if (operationIndexObject == null) { throw new ApiException( - "Missing the required parameter 'operationIndexObject' when calling" + - " operationIndex(Async)" + "Missing the required parameter 'operationIndexObject' when calling operationIndex(Async)" ); } @@ -3744,23 +3958,22 @@ private okhttp3.Call operationIndexValidateBeforeCall( } /** - * Copy/move index. Peforms a copy or a move operation on a index. - * - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @return OperationIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Copy/move index. + * Peforms a copy or a move operation on a index. + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @return OperationIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public OperationIndexResponse operationIndex( String indexName, OperationIndexObject operationIndexObject @@ -3773,23 +3986,22 @@ public OperationIndexResponse operationIndex( } /** - * Copy/move index. Peforms a copy or a move operation on a index. - * - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @return ApiResponse<OperationIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Copy/move index. + * Peforms a copy or a move operation on a index. + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @return ApiResponse<OperationIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse operationIndexWithHttpInfo( String indexName, OperationIndexObject operationIndexObject @@ -3805,23 +4017,23 @@ public ApiResponse operationIndexWithHttpInfo( } /** - * Copy/move index. (asynchronously) Peforms a copy or a move operation on a index. - * - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Copy/move index. (asynchronously) + * Peforms a copy or a move operation on a index. + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call operationIndexAsync( String indexName, OperationIndexObject operationIndexObject, @@ -3839,22 +4051,21 @@ public okhttp3.Call operationIndexAsync( } /** - * Build call for removeUserId - * - * @param userID userID to assign. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for removeUserId + * @param userID userID to assign. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call removeUserIdCall( Object userID, final ApiCallback _callback @@ -3881,7 +4092,6 @@ public okhttp3.Call removeUserIdCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3918,23 +4128,21 @@ private okhttp3.Call removeUserIdValidateBeforeCall( } /** - * Remove userID Remove a userID and its associated data from the multi-clusters. Upon success, - * the response is 200 OK and a task is created to remove the userID data and mapping. - * - * @param userID userID to assign. (required) - * @return RemoveUserIdResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Remove userID + * Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping. + * @param userID userID to assign. (required) + * @return RemoveUserIdResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public RemoveUserIdResponse removeUserId(Object userID) throws ApiException { ApiResponse localVarResp = removeUserIdWithHttpInfo( userID @@ -3943,23 +4151,21 @@ public RemoveUserIdResponse removeUserId(Object userID) throws ApiException { } /** - * Remove userID Remove a userID and its associated data from the multi-clusters. Upon success, - * the response is 200 OK and a task is created to remove the userID data and mapping. - * - * @param userID userID to assign. (required) - * @return ApiResponse<RemoveUserIdResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Remove userID + * Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping. + * @param userID userID to assign. (required) + * @return ApiResponse<RemoveUserIdResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse removeUserIdWithHttpInfo( Object userID ) throws ApiException { @@ -3970,24 +4176,22 @@ public ApiResponse removeUserIdWithHttpInfo( } /** - * Remove userID (asynchronously) Remove a userID and its associated data from the multi-clusters. - * Upon success, the response is 200 OK and a task is created to remove the userID data and - * mapping. - * - * @param userID userID to assign. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Remove userID (asynchronously) + * Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping. + * @param userID userID to assign. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call removeUserIdAsync( Object userID, final ApiCallback _callback @@ -4003,22 +4207,158 @@ public okhttp3.Call removeUserIdAsync( } /** - * Build call for restoreApiKey - * - * @param key API Key string. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for replaceSources + * @param source The sources to allow (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call replaceSourcesCall( + List source, + final ApiCallback _callback + ) throws ApiException { + Object localVarPostBody = source; + + // create path and map variables + String localVarPath = "/1/security/sources"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { "application/json" }; + final String localVarAccept = this.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { "application/json" }; + final String localVarContentType = + this.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "apiKey", "appId" }; + return this.buildCall( + localVarPath, + "PUT", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback + ); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceSourcesValidateBeforeCall( + List source, + final ApiCallback _callback + ) throws ApiException { + // verify the required parameter 'source' is set + if (source == null) { + throw new ApiException( + "Missing the required parameter 'source' when calling replaceSources(Async)" + ); + } + + okhttp3.Call localVarCall = replaceSourcesCall(source, _callback); + return localVarCall; + } + + /** + * + * Replace all allowed sources. + * @param source The sources to allow (required) + * @return ReplaceSourceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ReplaceSourceResponse replaceSources(List source) + throws ApiException { + ApiResponse localVarResp = replaceSourcesWithHttpInfo( + source + ); + return localVarResp.getData(); + } + + /** + * + * Replace all allowed sources. + * @param source The sources to allow (required) + * @return ApiResponse<ReplaceSourceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse replaceSourcesWithHttpInfo( + List source + ) throws ApiException { + okhttp3.Call localVarCall = replaceSourcesValidateBeforeCall(source, null); + Type localVarReturnType = new TypeToken() {} + .getType(); + return this.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Replace all allowed sources. + * @param source The sources to allow (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call replaceSourcesAsync( + List source, + final ApiCallback _callback + ) throws ApiException { + okhttp3.Call localVarCall = replaceSourcesValidateBeforeCall( + source, + _callback + ); + Type localVarReturnType = new TypeToken() {} + .getType(); + this.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for restoreApiKey + * @param key API Key string. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call restoreApiKeyCall( String key, final ApiCallback _callback @@ -4045,7 +4385,6 @@ public okhttp3.Call restoreApiKeyCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -4082,22 +4421,21 @@ private okhttp3.Call restoreApiKeyValidateBeforeCall( } /** - * Restore an API key. Restore a deleted API key, along with its associated rights. - * - * @param key API Key string. (required) - * @return AddApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Restore an API key. + * Restore a deleted API key, along with its associated rights. + * @param key API Key string. (required) + * @return AddApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public AddApiKeyResponse restoreApiKey(String key) throws ApiException { ApiResponse localVarResp = restoreApiKeyWithHttpInfo( key @@ -4106,22 +4444,21 @@ public AddApiKeyResponse restoreApiKey(String key) throws ApiException { } /** - * Restore an API key. Restore a deleted API key, along with its associated rights. - * - * @param key API Key string. (required) - * @return ApiResponse<AddApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Restore an API key. + * Restore a deleted API key, along with its associated rights. + * @param key API Key string. (required) + * @return ApiResponse<AddApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse restoreApiKeyWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = restoreApiKeyValidateBeforeCall(key, null); @@ -4130,23 +4467,22 @@ public ApiResponse restoreApiKeyWithHttpInfo(String key) } /** - * Restore an API key. (asynchronously) Restore a deleted API key, along with its associated - * rights. - * - * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Restore an API key. (asynchronously) + * Restore a deleted API key, along with its associated rights. + * @param key API Key string. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call restoreApiKeyAsync( String key, final ApiCallback _callback @@ -4158,23 +4494,22 @@ public okhttp3.Call restoreApiKeyAsync( } /** - * Build call for saveObject - * - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for saveObject + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveObjectCall( String indexName, Map requestBody, @@ -4250,23 +4585,22 @@ private okhttp3.Call saveObjectValidateBeforeCall( } /** - * Add an object to the index, automatically assigning it an object ID. - * - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @return SaveObjectResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Add an object to the index, automatically assigning it an object ID. + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @return SaveObjectResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SaveObjectResponse saveObject( String indexName, Map requestBody @@ -4279,23 +4613,22 @@ public SaveObjectResponse saveObject( } /** - * Add an object to the index, automatically assigning it an object ID. - * - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @return ApiResponse<SaveObjectResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Add an object to the index, automatically assigning it an object ID. + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @return ApiResponse<SaveObjectResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse saveObjectWithHttpInfo( String indexName, Map requestBody @@ -4310,23 +4643,23 @@ public ApiResponse saveObjectWithHttpInfo( } /** - * (asynchronously) Add an object to the index, automatically assigning it an object ID. - * - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Add an object to the index, automatically assigning it an object ID. + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveObjectAsync( String indexName, Map requestBody, @@ -4343,26 +4676,24 @@ public okhttp3.Call saveObjectAsync( } /** - * Build call for saveSynonym - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for saveSynonym + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymCall( String indexName, String objectID, @@ -4461,27 +4792,24 @@ private okhttp3.Call saveSynonymValidateBeforeCall( } /** - * Save synonym. Create a new synonym object or update the existing synonym object with the given - * object ID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return SaveSynonymResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save synonym. + * Create a new synonym object or update the existing synonym object with the given object ID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return SaveSynonymResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SaveSynonymResponse saveSynonym( String indexName, String objectID, @@ -4498,27 +4826,24 @@ public SaveSynonymResponse saveSynonym( } /** - * Save synonym. Create a new synonym object or update the existing synonym object with the given - * object ID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return ApiResponse<SaveSynonymResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save synonym. + * Create a new synonym object or update the existing synonym object with the given object ID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return ApiResponse<SaveSynonymResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse saveSynonymWithHttpInfo( String indexName, String objectID, @@ -4537,27 +4862,25 @@ public ApiResponse saveSynonymWithHttpInfo( } /** - * Save synonym. (asynchronously) Create a new synonym object or update the existing synonym - * object with the given object ID. - * - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save synonym. (asynchronously) + * Create a new synonym object or update the existing synonym object with the given object ID. + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymAsync( String indexName, String objectID, @@ -4578,27 +4901,24 @@ public okhttp3.Call saveSynonymAsync( } /** - * Build call for saveSynonyms - * - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this - * request. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for saveSynonyms + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymsCall( String indexName, List synonymHit, @@ -4692,28 +5012,24 @@ private okhttp3.Call saveSynonymsValidateBeforeCall( } /** - * Save a batch of synonyms. Create/update multiple synonym objects at once, potentially replacing - * the entire list of synonyms if replaceExistingSynonyms is true. - * - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this - * request. (optional) - * @return SaveSynonymsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save a batch of synonyms. + * Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) + * @return SaveSynonymsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SaveSynonymsResponse saveSynonyms( String indexName, List synonymHit, @@ -4730,28 +5046,24 @@ public SaveSynonymsResponse saveSynonyms( } /** - * Save a batch of synonyms. Create/update multiple synonym objects at once, potentially replacing - * the entire list of synonyms if replaceExistingSynonyms is true. - * - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this - * request. (optional) - * @return ApiResponse<SaveSynonymsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save a batch of synonyms. + * Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) + * @return ApiResponse<SaveSynonymsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse saveSynonymsWithHttpInfo( String indexName, List synonymHit, @@ -4771,28 +5083,25 @@ public ApiResponse saveSynonymsWithHttpInfo( } /** - * Save a batch of synonyms. (asynchronously) Create/update multiple synonym objects at once, - * potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. - * - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this - * request. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save a batch of synonyms. (asynchronously) + * Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymsAsync( String indexName, List synonymHit, @@ -4814,23 +5123,22 @@ public okhttp3.Call saveSynonymsAsync( } /** - * Build call for search - * - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for search + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchCall( String indexName, SearchParams searchParams, @@ -4902,23 +5210,22 @@ private okhttp3.Call searchValidateBeforeCall( } /** - * Get search results. - * - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @return SearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Get search results. + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @return SearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SearchResponse search(String indexName, SearchParams searchParams) throws ApiException { ApiResponse localVarResp = searchWithHttpInfo( @@ -4929,23 +5236,22 @@ public SearchResponse search(String indexName, SearchParams searchParams) } /** - * Get search results. - * - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @return ApiResponse<SearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Get search results. + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @return ApiResponse<SearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse searchWithHttpInfo( String indexName, SearchParams searchParams @@ -4960,23 +5266,23 @@ public ApiResponse searchWithHttpInfo( } /** - * (asynchronously) Get search results. - * - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Get search results. + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchAsync( String indexName, SearchParams searchParams, @@ -4993,28 +5299,25 @@ public okhttp3.Call searchAsync( } /** - * Build call for searchSynonyms - * - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for searchSynonyms + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchSynonymsCall( String indexName, String query, @@ -5063,7 +5366,6 @@ public okhttp3.Call searchSynonymsCall( } final String[] localVarContentTypes = {}; - final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -5111,29 +5413,25 @@ private okhttp3.Call searchSynonymsValidateBeforeCall( } /** - * Get all synonyms that match a query. Search or browse all synonyms, optionally filtering them - * by type. - * - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return SearchSynonymsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get all synonyms that match a query. + * Search or browse all synonyms, optionally filtering them by type. + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return SearchSynonymsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SearchSynonymsResponse searchSynonyms( String indexName, String query, @@ -5152,29 +5450,25 @@ public SearchSynonymsResponse searchSynonyms( } /** - * Get all synonyms that match a query. Search or browse all synonyms, optionally filtering them - * by type. - * - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return ApiResponse<SearchSynonymsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get all synonyms that match a query. + * Search or browse all synonyms, optionally filtering them by type. + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return ApiResponse<SearchSynonymsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse searchSynonymsWithHttpInfo( String indexName, String query, @@ -5196,29 +5490,26 @@ public ApiResponse searchSynonymsWithHttpInfo( } /** - * Get all synonyms that match a query. (asynchronously) Search or browse all synonyms, optionally - * filtering them by type. - * - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the - * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). - * (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get all synonyms that match a query. (asynchronously) + * Search or browse all synonyms, optionally filtering them by type. + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchSynonymsAsync( String indexName, String query, @@ -5242,22 +5533,21 @@ public okhttp3.Call searchSynonymsAsync( } /** - * Build call for searchUserIds - * - * @param searchUserIdsObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for searchUserIds + * @param searchUserIdsObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchUserIdsCall( SearchUserIdsObject searchUserIdsObject, final ApiCallback _callback @@ -5319,28 +5609,21 @@ private okhttp3.Call searchUserIdsValidateBeforeCall( } /** - * Search userID Search for userIDs. The data returned will usually be a few seconds behind real - * time, because userID usage may take up to a few seconds propagate to the different clusters. To - * keep updates moving quickly, the index of userIDs isn't built synchronously with the - * mapping. Instead, the index is built once every 12h, at the same time as the update of userID - * usage. For example, when you perform a modification like adding or moving a userID, the search - * will report an outdated value until the next rebuild of the mapping, which takes place every - * 12h. Upon success, the response is 200 OK and contains the following userIDs data. - * - * @param searchUserIdsObject (required) - * @return SearchUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Search userID + * Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn't built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data. + * @param searchUserIdsObject (required) + * @return SearchUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SearchUserIdsResponse searchUserIds( SearchUserIdsObject searchUserIdsObject ) throws ApiException { @@ -5351,28 +5634,21 @@ public SearchUserIdsResponse searchUserIds( } /** - * Search userID Search for userIDs. The data returned will usually be a few seconds behind real - * time, because userID usage may take up to a few seconds propagate to the different clusters. To - * keep updates moving quickly, the index of userIDs isn't built synchronously with the - * mapping. Instead, the index is built once every 12h, at the same time as the update of userID - * usage. For example, when you perform a modification like adding or moving a userID, the search - * will report an outdated value until the next rebuild of the mapping, which takes place every - * 12h. Upon success, the response is 200 OK and contains the following userIDs data. - * - * @param searchUserIdsObject (required) - * @return ApiResponse<SearchUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Search userID + * Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn't built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data. + * @param searchUserIdsObject (required) + * @return ApiResponse<SearchUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse searchUserIdsWithHttpInfo( SearchUserIdsObject searchUserIdsObject ) throws ApiException { @@ -5386,29 +5662,22 @@ public ApiResponse searchUserIdsWithHttpInfo( } /** - * Search userID (asynchronously) Search for userIDs. The data returned will usually be a few - * seconds behind real time, because userID usage may take up to a few seconds propagate to the - * different clusters. To keep updates moving quickly, the index of userIDs isn't built - * synchronously with the mapping. Instead, the index is built once every 12h, at the same time as - * the update of userID usage. For example, when you perform a modification like adding or moving - * a userID, the search will report an outdated value until the next rebuild of the mapping, which - * takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs - * data. - * - * @param searchUserIdsObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Search userID (asynchronously) + * Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn't built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data. + * @param searchUserIdsObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchUserIdsAsync( SearchUserIdsObject searchUserIdsObject, final ApiCallback _callback @@ -5424,25 +5693,23 @@ public okhttp3.Call searchUserIdsAsync( } /** - * Build call for setSettings - * - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for setSettings + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call setSettingsCall( String indexName, IndexSettings indexSettings, @@ -5527,26 +5794,23 @@ private okhttp3.Call setSettingsValidateBeforeCall( } /** - * Update settings of a given indexName. Only specified settings are overridden; unspecified - * settings are left unchanged. Specifying null for a setting resets it to its default value. - * - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return SetSettingsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Update settings of a given indexName. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value. + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return SetSettingsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SetSettingsResponse setSettings( String indexName, IndexSettings indexSettings, @@ -5561,26 +5825,23 @@ public SetSettingsResponse setSettings( } /** - * Update settings of a given indexName. Only specified settings are overridden; unspecified - * settings are left unchanged. Specifying null for a setting resets it to its default value. - * - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @return ApiResponse<SetSettingsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * + * Update settings of a given indexName. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value. + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @return ApiResponse<SetSettingsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse setSettingsWithHttpInfo( String indexName, IndexSettings indexSettings, @@ -5597,27 +5858,24 @@ public ApiResponse setSettingsWithHttpInfo( } /** - * (asynchronously) Update settings of a given indexName. Only specified settings are overridden; - * unspecified settings are left unchanged. Specifying null for a setting resets it to its default - * value. - * - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given - * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) + * Update settings of a given indexName. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value. + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call setSettingsAsync( String indexName, IndexSettings indexSettings, @@ -5636,23 +5894,22 @@ public okhttp3.Call setSettingsAsync( } /** - * Build call for updateApiKey - * - * @param key API Key string. (required) - * @param apiKey (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for updateApiKey + * @param key API Key string. (required) + * @param apiKey (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call updateApiKeyCall( String key, ApiKey apiKey, @@ -5724,23 +5981,22 @@ private okhttp3.Call updateApiKeyValidateBeforeCall( } /** - * Update an API key. Replace every permission of an existing API key. - * - * @param key API Key string. (required) - * @param apiKey (required) - * @return UpdateApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update an API key. + * Replace every permission of an existing API key. + * @param key API Key string. (required) + * @param apiKey (required) + * @return UpdateApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public UpdateApiKeyResponse updateApiKey(String key, ApiKey apiKey) throws ApiException { ApiResponse localVarResp = updateApiKeyWithHttpInfo( @@ -5751,23 +6007,22 @@ public UpdateApiKeyResponse updateApiKey(String key, ApiKey apiKey) } /** - * Update an API key. Replace every permission of an existing API key. - * - * @param key API Key string. (required) - * @param apiKey (required) - * @return ApiResponse<UpdateApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update an API key. + * Replace every permission of an existing API key. + * @param key API Key string. (required) + * @param apiKey (required) + * @return ApiResponse<UpdateApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse updateApiKeyWithHttpInfo( String key, ApiKey apiKey @@ -5783,23 +6038,23 @@ public ApiResponse updateApiKeyWithHttpInfo( } /** - * Update an API key. (asynchronously) Replace every permission of an existing API key. - * - * @param key API Key string. (required) - * @param apiKey (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update an API key. (asynchronously) + * Replace every permission of an existing API key. + * @param key API Key string. (required) + * @param apiKey (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call updateApiKeyAsync( String key, ApiKey apiKey, diff --git a/clients/algoliasearch-client-javascript/client-search/model/appendSourceResponse.ts b/clients/algoliasearch-client-javascript/client-search/model/appendSourceResponse.ts new file mode 100644 index 00000000000..698eb57260d --- /dev/null +++ b/clients/algoliasearch-client-javascript/client-search/model/appendSourceResponse.ts @@ -0,0 +1,6 @@ +export type AppendSourceResponse = { + /** + * Date of creation (ISO-8601 format). + */ + createdAt: Date; +}; diff --git a/clients/algoliasearch-client-javascript/client-search/model/deleteSourceResponse.ts b/clients/algoliasearch-client-javascript/client-search/model/deleteSourceResponse.ts new file mode 100644 index 00000000000..80250726190 --- /dev/null +++ b/clients/algoliasearch-client-javascript/client-search/model/deleteSourceResponse.ts @@ -0,0 +1,6 @@ +export type DeleteSourceResponse = { + /** + * Date of deletion (ISO-8601 format). + */ + deletedAt: Date; +}; diff --git a/clients/algoliasearch-client-javascript/client-search/model/models.ts b/clients/algoliasearch-client-javascript/client-search/model/models.ts index e763aed2a72..cb84373b1a5 100644 --- a/clients/algoliasearch-client-javascript/client-search/model/models.ts +++ b/clients/algoliasearch-client-javascript/client-search/model/models.ts @@ -3,6 +3,7 @@ import type { RequestOptions } from '../utils/types'; export * from './addApiKeyResponse'; export * from './apiKey'; +export * from './appendSourceResponse'; export * from './assignUserIdObject'; export * from './assignUserIdResponse'; export * from './baseIndexSettings'; @@ -17,6 +18,7 @@ export * from './clearAllSynonymsResponse'; export * from './createdAtObject'; export * from './deleteApiKeyResponse'; export * from './deleteIndexResponse'; +export * from './deleteSourceResponse'; export * from './deleteSynonymResponse'; export * from './errorBase'; export * from './getLogsResponse'; @@ -44,6 +46,7 @@ export * from './rankingInfo'; export * from './rankingInfoMatchedGeoLocation'; export * from './record'; export * from './removeUserIdResponse'; +export * from './replaceSourceResponse'; export * from './saveObjectResponse'; export * from './saveSynonymResponse'; export * from './saveSynonymsResponse'; @@ -58,6 +61,7 @@ export * from './searchUserIdsResponseHighlightResult'; export * from './searchUserIdsResponseHits'; export * from './setSettingsResponse'; export * from './snippetResult'; +export * from './source'; export * from './synonymHit'; export * from './synonymHitHighlightResult'; export * from './updateApiKeyResponse'; diff --git a/clients/algoliasearch-client-javascript/client-search/model/replaceSourceResponse.ts b/clients/algoliasearch-client-javascript/client-search/model/replaceSourceResponse.ts new file mode 100644 index 00000000000..7a9b6609652 --- /dev/null +++ b/clients/algoliasearch-client-javascript/client-search/model/replaceSourceResponse.ts @@ -0,0 +1,6 @@ +export type ReplaceSourceResponse = { + /** + * Date of last update (ISO-8601 format). + */ + updatedAt: Date; +}; diff --git a/clients/algoliasearch-client-javascript/client-search/model/source.ts b/clients/algoliasearch-client-javascript/client-search/model/source.ts new file mode 100644 index 00000000000..79813c184a1 --- /dev/null +++ b/clients/algoliasearch-client-javascript/client-search/model/source.ts @@ -0,0 +1,13 @@ +/** + * The source. + */ +export type Source = { + /** + * The IP range of the source. + */ + source: string; + /** + * The description of the source. + */ + description?: string; +}; diff --git a/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts b/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts index 1f53782079a..b36f78531dc 100644 --- a/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts +++ b/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts @@ -1,5 +1,6 @@ import type { AddApiKeyResponse } from '../model/addApiKeyResponse'; import type { ApiKey } from '../model/apiKey'; +import type { AppendSourceResponse } from '../model/appendSourceResponse'; import type { AssignUserIdObject } from '../model/assignUserIdObject'; import type { AssignUserIdResponse } from '../model/assignUserIdResponse'; import type { BatchAssignUserIdsObject } from '../model/batchAssignUserIdsObject'; @@ -9,6 +10,7 @@ import type { BatchResponse } from '../model/batchResponse'; import type { ClearAllSynonymsResponse } from '../model/clearAllSynonymsResponse'; import type { DeleteApiKeyResponse } from '../model/deleteApiKeyResponse'; import type { DeleteIndexResponse } from '../model/deleteIndexResponse'; +import type { DeleteSourceResponse } from '../model/deleteSourceResponse'; import type { DeleteSynonymResponse } from '../model/deleteSynonymResponse'; import type { GetLogsResponse } from '../model/getLogsResponse'; import type { GetTaskResponse } from '../model/getTaskResponse'; @@ -26,6 +28,7 @@ import type { MultipleQueriesResponse } from '../model/multipleQueriesResponse'; import type { OperationIndexObject } from '../model/operationIndexObject'; import type { OperationIndexResponse } from '../model/operationIndexResponse'; import type { RemoveUserIdResponse } from '../model/removeUserIdResponse'; +import type { ReplaceSourceResponse } from '../model/replaceSourceResponse'; import type { SaveObjectResponse } from '../model/saveObjectResponse'; import type { SaveSynonymResponse } from '../model/saveSynonymResponse'; import type { SaveSynonymsResponse } from '../model/saveSynonymsResponse'; @@ -36,6 +39,7 @@ import type { SearchSynonymsResponse } from '../model/searchSynonymsResponse'; import type { SearchUserIdsObject } from '../model/searchUserIdsObject'; import type { SearchUserIdsResponse } from '../model/searchUserIdsResponse'; import type { SetSettingsResponse } from '../model/setSettingsResponse'; +import type { Source } from '../model/source'; import type { SynonymHit } from '../model/synonymHit'; import type { UpdateApiKeyResponse } from '../model/updateApiKeyResponse'; import type { UserId } from '../model/userId'; @@ -164,6 +168,35 @@ export class SearchApi { return this.sendRequest(request, requestOptions); } + /** + * Add a single source to the list of allowed sources. + * + * @param source - The sources to allow. + */ + appendSource(source: Source): Promise { + const path = '/1/security/sources/append'; + const headers: Headers = { Accept: 'application/json' }; + const queryParameters: Record = {}; + + if (source === null || source === undefined) { + throw new Error( + 'Required parameter source was null or undefined when calling appendSource.' + ); + } + + const request: Request = { + method: 'POST', + path, + data: source, + }; + + const requestOptions: RequestOptions = { + headers, + queryParameters, + }; + + return this.sendRequest(request, requestOptions); + } /** * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable. * @@ -398,6 +431,37 @@ export class SearchApi { return this.sendRequest(request, requestOptions); } + /** + * Remove a single source from the list of allowed sources. + * + * @param source - The IP range of the source. + */ + deleteSource(source: string): Promise { + const path = '/1/security/sources/{source}'.replace( + '{source}', + encodeURIComponent(String(source)) + ); + const headers: Headers = { Accept: 'application/json' }; + const queryParameters: Record = {}; + + if (source === null || source === undefined) { + throw new Error( + 'Required parameter source was null or undefined when calling deleteSource.' + ); + } + + const request: Request = { + method: 'DELETE', + path, + }; + + const requestOptions: RequestOptions = { + headers, + queryParameters, + }; + + return this.sendRequest(request, requestOptions); + } /** * Delete a single synonyms set, identified by the given objectID. * @@ -554,6 +618,26 @@ export class SearchApi { return this.sendRequest(request, requestOptions); } + /** + * List all allowed sources. + */ + getSources(): Promise { + const path = '/1/security/sources'; + const headers: Headers = { Accept: 'application/json' }; + const queryParameters: Record = {}; + + const request: Request = { + method: 'GET', + path, + }; + + const requestOptions: RequestOptions = { + headers, + queryParameters, + }; + + return this.sendRequest(request, requestOptions); + } /** * Fetch a synonym object identified by its objectID. * @@ -924,6 +1008,35 @@ export class SearchApi { return this.sendRequest(request, requestOptions); } + /** + * Replace all allowed sources. + * + * @param source - The sources to allow. + */ + replaceSources(source: Source[]): Promise { + const path = '/1/security/sources'; + const headers: Headers = { Accept: 'application/json' }; + const queryParameters: Record = {}; + + if (source === null || source === undefined) { + throw new Error( + 'Required parameter source was null or undefined when calling replaceSources.' + ); + } + + const request: Request = { + method: 'PUT', + path, + data: source, + }; + + const requestOptions: RequestOptions = { + headers, + queryParameters, + }; + + return this.sendRequest(request, requestOptions); + } /** * Restore a deleted API key, along with its associated rights. * From dfbc662f07e6ca893139b611508482d713ad5d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 17 Dec 2021 11:43:21 +0100 Subject: [PATCH 10/12] fix: generate java client --- .../com/algolia/ApiCallback.java | 1 - .../com/algolia/ApiClient.java | 113 +- .../com/algolia/GzipRequestInterceptor.java | 2 +- .../algoliasearch-core/com/algolia/JSON.java | 33 +- .../com/algolia/ServerConfiguration.java | 7 +- .../com/algolia/ServerVariable.java | 7 +- .../com/algolia/StringUtil.java | 9 +- .../com/algolia/model/AddApiKeyResponse.java | 21 +- .../com/algolia/model/ApiKey.java | 66 +- .../algolia/model/AppendSourceResponse.java | 18 +- .../com/algolia/model/AssignUserIdObject.java | 16 +- .../algolia/model/AssignUserIdResponse.java | 18 +- .../com/algolia/model/BaseIndexSettings.java | 69 +- .../com/algolia/model/BaseSearchParams.java | 157 +- .../com/algolia/model/BaseSearchResponse.java | 125 +- .../model/BaseSearchResponseFacetsStats.java | 27 +- .../model/BatchAssignUserIdsObject.java | 19 +- .../model/BatchAssignUserIdsResponse.java | 18 +- .../com/algolia/model/BatchObject.java | 17 +- .../com/algolia/model/BatchResponse.java | 21 +- .../model/ClearAllSynonymsResponse.java | 21 +- .../com/algolia/model/CreatedAtObject.java | 18 +- .../algolia/model/DeleteApiKeyResponse.java | 18 +- .../algolia/model/DeleteIndexResponse.java | 21 +- .../algolia/model/DeleteSourceResponse.java | 18 +- .../algolia/model/DeleteSynonymResponse.java | 21 +- .../com/algolia/model/ErrorBase.java | 17 +- .../com/algolia/model/GetLogsResponse.java | 19 +- .../model/GetLogsResponseInnerQueries.java | 24 +- .../algolia/model/GetLogsResponseLogs.java | 61 +- .../com/algolia/model/GetTaskResponse.java | 17 +- .../algolia/model/GetTopUserIdsResponse.java | 17 +- .../model/HasPendingMappingsResponse.java | 18 +- .../com/algolia/model/HighlightResult.java | 24 +- .../com/algolia/model/Index.java | 60 +- .../com/algolia/model/IndexSettings.java | 294 +- .../model/IndexSettingsAsSearchParams.java | 240 +- .../com/algolia/model/KeyObject.java | 73 +- .../algolia/model/ListApiKeysResponse.java | 19 +- .../algolia/model/ListClustersResponse.java | 16 +- .../algolia/model/ListIndicesResponse.java | 22 +- .../algolia/model/ListUserIdsResponse.java | 17 +- .../com/algolia/model/MultipleQueries.java | 32 +- .../algolia/model/MultipleQueriesObject.java | 21 +- .../model/MultipleQueriesResponse.java | 19 +- .../com/algolia/model/Operation.java | 21 +- .../algolia/model/OperationIndexObject.java | 33 +- .../algolia/model/OperationIndexResponse.java | 21 +- .../com/algolia/model/RankingInfo.java | 62 +- .../model/RankingInfoMatchedGeoLocation.java | 24 +- .../com/algolia/model/Record.java | 32 +- .../algolia/model/RemoveUserIdResponse.java | 18 +- .../algolia/model/ReplaceSourceResponse.java | 18 +- .../com/algolia/model/SaveObjectResponse.java | 24 +- .../algolia/model/SaveSynonymResponse.java | 24 +- .../algolia/model/SaveSynonymsResponse.java | 21 +- .../com/algolia/model/SearchHits.java | 19 +- .../com/algolia/model/SearchParams.java | 384 +- .../com/algolia/model/SearchResponse.java | 130 +- .../algolia/model/SearchSynonymsResponse.java | 23 +- .../algolia/model/SearchUserIdsObject.java | 31 +- .../algolia/model/SearchUserIdsResponse.java | 29 +- .../SearchUserIdsResponseHighlightResult.java | 22 +- .../model/SearchUserIdsResponseHits.java | 35 +- .../algolia/model/SetSettingsResponse.java | 21 +- .../com/algolia/model/SnippetResult.java | 20 +- .../com/algolia/model/Source.java | 19 +- .../com/algolia/model/SynonymHit.java | 40 +- .../model/SynonymHitHighlightResult.java | 20 +- .../algolia/model/UpdateApiKeyResponse.java | 21 +- .../com/algolia/model/UserId.java | 25 +- .../com/algolia/search/SearchApi.java | 4759 +++++++++-------- 72 files changed, 3967 insertions(+), 3820 deletions(-) diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java index aa42730dca9..6b149c2b325 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiCallback.java @@ -1,6 +1,5 @@ package com.algolia; -import java.io.IOException; import java.util.List; import java.util.Map; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java index 4d6da2e5a0b..6bca7ae6f29 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ApiClient.java @@ -5,35 +5,26 @@ import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.lang.reflect.Type; -import java.net.URI; import java.net.URLConnection; import java.net.URLEncoder; -import java.nio.file.Files; -import java.nio.file.Paths; import java.security.GeneralSecurityException; import java.security.KeyStore; import java.security.SecureRandom; import java.security.cert.Certificate; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; -import java.security.cert.X509Certificate; import java.text.DateFormat; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; -import java.util.regex.Matcher; -import java.util.regex.Pattern; import javax.net.ssl.*; import okhttp3.*; import okhttp3.internal.http.HttpMethod; import okhttp3.internal.tls.OkHostnameVerifier; import okhttp3.logging.HttpLoggingInterceptor; import okhttp3.logging.HttpLoggingInterceptor.Level; -import okio.BufferedSink; -import okio.Okio; public class ApiClient { @@ -123,9 +114,9 @@ public boolean isVerifyingSsl() { } /** - * Configure whether to verify certificate and hostname when making https requests. - * Default to true. - * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. + * Configure whether to verify certificate and hostname when making https requests. Default to + * true. NOTE: Do NOT set to false in production code, otherwise you would face multiple types of + * cryptographic attacks. * * @param verifyingSsl True to verify TLS/SSL connection * @return ApiClient @@ -146,8 +137,8 @@ public InputStream getSslCaCert() { } /** - * Configure the CA certificate to be trusted when making https requests. - * Use null to reset to default. + * Configure the CA certificate to be trusted when making https requests. Use null to reset to + * default. * * @param sslCaCert input stream for SSL CA cert * @return ApiClient @@ -163,8 +154,7 @@ public KeyManager[] getKeyManagers() { } /** - * Configure client keys to use for authorization in an SSL session. - * Use null to reset to default. + * Configure client keys to use for authorization in an SSL session. Use null to reset to default. * * @param managers The KeyManagers to use * @return ApiClient @@ -272,9 +262,8 @@ public int getConnectTimeout() { } /** - * Sets the connect timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * Sets the connect timeout (in milliseconds). A value of 0 means no timeout, otherwise values + * must be between 1 and {@link Integer#MAX_VALUE}. * * @param connectionTimeout connection timeout in milliseconds * @return Api client @@ -298,9 +287,8 @@ public int getReadTimeout() { } /** - * Sets the read timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * Sets the read timeout (in milliseconds). A value of 0 means no timeout, otherwise values must + * be between 1 and {@link Integer#MAX_VALUE}. * * @param readTimeout read timeout in milliseconds * @return Api client @@ -324,9 +312,8 @@ public int getWriteTimeout() { } /** - * Sets the write timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * Sets the write timeout (in milliseconds). A value of 0 means no timeout, otherwise values must + * be between 1 and {@link Integer#MAX_VALUE}. * * @param writeTimeout connection timeout in milliseconds * @return Api client @@ -354,7 +341,7 @@ public String parameterToString(Object param) { param instanceof OffsetDateTime || param instanceof LocalDate ) { - //Serialize to json string and remove the " enclosing characters + // Serialize to json string and remove the " enclosing characters String jsonStr = json.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { @@ -374,7 +361,7 @@ public String parameterToString(Object param) { /** * Formats the specified query parameter to a list containing a single {@code Pair} object. * - * Note that {@code value} must not be a collection. + *

Note that {@code value} must not be a collection. * * @param name The name of the parameter. * @param value The value of the parameter. @@ -400,7 +387,7 @@ public List parameterToPair(String name, Object value) { /** * Formats the specified collection query parameters to a list of {@code Pair} objects. * - * Note that the values of each of the returned Pair objects are percent-encoded. + *

Note that the values of each of the returned Pair objects are percent-encoded. * * @param collectionFormat The collection format of the parameter. * @param name The name of the parameter. @@ -489,8 +476,7 @@ public String collectionPathParameterToString( } /** - * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif + * Sanitize filename by removing path. e.g. ../../sun.gif becomes sun.gif * * @param filename The filename to be sanitized * @return The sanitized filename @@ -500,13 +486,9 @@ public String sanitizeFilename(String filename) { } /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * "* / *" is also default to JSON + * Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; + * charset=UTF8 APPLICATION/JSON application/vnd.company+json "* / *" is also default to JSON + * * @param mime MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ @@ -517,13 +499,12 @@ public boolean isJsonMime(String mime) { } /** - * Select the Accept header's value from the given accepts array: - * if JSON exists in the given array, use it; - * otherwise use all of them (joining into a string) + * Select the Accept header's value from the given accepts array: if JSON exists in the given + * array, use it; otherwise use all of them (joining into a string) * * @param accepts The accepts array to select from - * @return The Accept header to use. If the given array is empty, - * null will be returned (not to set the Accept header explicitly). + * @return The Accept header to use. If the given array is empty, null will be returned (not to + * set the Accept header explicitly). */ public String selectHeaderAccept(String[] accepts) { if (accepts.length == 0) { @@ -538,13 +519,12 @@ public String selectHeaderAccept(String[] accepts) { } /** - * Select the Content-Type header's value from the given array: - * if JSON exists in the given array, use it; - * otherwise use the first one of the array. + * Select the Content-Type header's value from the given array: if JSON exists in the given array, + * use it; otherwise use the first one of the array. * * @param contentTypes The Content-Type array to select from - * @return The Content-Type header to use. If the given array is empty, - * or matches "any", JSON will be used. + * @return The Content-Type header to use. If the given array is empty, or matches "any", JSON + * will be used. */ public String selectHeaderContentType(String[] contentTypes) { if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) { @@ -573,15 +553,15 @@ public String escapeString(String str) { } /** - * Deserialize response body to Java object, according to the return type and - * the Content-Type response header. + * Deserialize response body to Java object, according to the return type and the Content-Type + * response header. * * @param Type * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws ApiException If fail to deserialize response body, i.e. cannot read response body - * or the Content-Type of the response is not supported. + * @throws ApiException If fail to deserialize response body, i.e. cannot read response body or + * the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") public T deserialize(Response response, Type returnType) @@ -635,8 +615,8 @@ public T deserialize(Response response, Type returnType) } /** - * Serialize the given Java object into request body according to the object's - * class and the request Content-Type. + * Serialize the given Java object into request body according to the object's class and the + * request Content-Type. * * @param obj The Java object * @param contentType The request Content-Type @@ -684,9 +664,8 @@ public ApiResponse execute(Call call) throws ApiException { * @param returnType The return type used to deserialize HTTP response body * @param The return type corresponding to (same with) returnType * @param call Call - * @return ApiResponse object containing response status, headers and - * data, which is a Java object deserialized from response body and would be null - * when returnType is null. + * @return ApiResponse object containing response status, headers and data, which is a Java object + * deserialized from response body and would be null when returnType is null. * @throws ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) @@ -775,8 +754,8 @@ public void onResponse(Call call, Response response) * @param response Response * @param returnType Return type * @return Type - * @throws ApiException If the response has an unsuccessful status code or - * fail to deserialize the response body + * @throws ApiException If the response has an unsuccessful status code or fail to deserialize the + * response body */ public T handleResponse(Response response, Type returnType) throws ApiException { @@ -827,7 +806,8 @@ public T handleResponse(Response response, Type returnType) * Build HTTP call with the given options. * * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and + * "DELETE" * @param queryParams The query parameters * @param collectionQueryParams The collection query parameters * @param body The request body object @@ -871,7 +851,8 @@ public Call buildCall( * Build an HTTP request with the given options. * * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and + * "DELETE" * @param queryParams The query parameters * @param collectionQueryParams The collection query parameters * @param body The request body object @@ -1086,8 +1067,8 @@ public RequestBody buildRequestBodyFormEncoding( } /** - * Build a multipart (file uploading) request body with the given form parameters, - * which could contain text fields and file fields. + * Build a multipart (file uploading) request body with the given form parameters, which could + * contain text fields and file fields. * * @param formParams Form parameters in the form of Map * @return RequestBody @@ -1138,8 +1119,8 @@ public String guessContentTypeFromFile(File file) { } /** - * Get network interceptor to add it to the httpClient to track download progress for - * async requests. + * Get network interceptor to add it to the httpClient to track download progress for async + * requests. */ private Interceptor getProgressInterceptor() { return new Interceptor() { @@ -1160,8 +1141,8 @@ public Response intercept(Interceptor.Chain chain) throws IOException { } /** - * Apply SSL related settings to httpClient according to the current values of - * verifyingSsl and sslCaCert. + * Apply SSL related settings to httpClient according to the current values of verifyingSsl and + * sslCaCert. */ private void applySslSettings() { try { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java index 45b7bf54ad1..3a054245399 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/GzipRequestInterceptor.java @@ -10,7 +10,7 @@ /** * Encodes request bodies using gzip. * - * Taken from https://github.com/square/okhttp/issues/350 + *

Taken from https://github.com/square/okhttp/issues/350 */ class GzipRequestInterceptor implements Interceptor { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java index fd92dc22563..fff9b8547c2 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java @@ -10,7 +10,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.gsonfire.GsonFireBuilder; -import io.gsonfire.TypeSelector; import java.io.IOException; import java.io.StringReader; import java.lang.reflect.Type; @@ -21,8 +20,6 @@ import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; import java.util.Date; -import java.util.HashMap; -import java.util.Locale; import java.util.Map; import okio.ByteString; @@ -57,7 +54,8 @@ private static String getDiscriminatorValue( } /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. + * Returns the Java class that implements the OpenAPI schema for the specified discriminator + * value. * * @param classByDiscriminatorValue The map of discriminator values to Java classes. * @param discriminatorValue The value of the OpenAPI discriminator in the input data. @@ -125,8 +123,8 @@ public String serialize(Object obj) { /** * Deserialize the given JSON string to Java object. * - * @param Type - * @param body The JSON string + * @param Type + * @param body The JSON string * @param returnType The type to deserialize into * @return The deserialized Java object */ @@ -135,7 +133,8 @@ public T deserialize(String body, Type returnType) { try { if (isLenientOnJson) { JsonReader jsonReader = new JsonReader(new StringReader(body)); - // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + // see + // https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) jsonReader.setLenient(true); return gson.fromJson(jsonReader, returnType); } else { @@ -152,9 +151,7 @@ public T deserialize(String body, Type returnType) { } } - /** - * Gson TypeAdapter for Byte Array type - */ + /** Gson TypeAdapter for Byte Array type */ public class ByteArrayAdapter extends TypeAdapter { @Override @@ -180,9 +177,7 @@ public byte[] read(JsonReader in) throws IOException { } } - /** - * Gson TypeAdapter for JSR310 OffsetDateTime type - */ + /** Gson TypeAdapter for JSR310 OffsetDateTime type */ public static class OffsetDateTimeTypeAdapter extends TypeAdapter { @@ -225,9 +220,7 @@ public OffsetDateTime read(JsonReader in) throws IOException { } } - /** - * Gson TypeAdapter for JSR310 LocalDate type - */ + /** Gson TypeAdapter for JSR310 LocalDate type */ public class LocalDateTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; @@ -277,9 +270,8 @@ public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { } /** - * Gson TypeAdapter for java.sql.Date type - * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used - * (more efficient than SimpleDateFormat). + * Gson TypeAdapter for java.sql.Date type If the dateFormat is null, a simple "yyyy-MM-dd" format + * will be used (more efficient than SimpleDateFormat). */ public static class SqlDateTypeAdapter extends TypeAdapter { @@ -333,8 +325,7 @@ public java.sql.Date read(JsonReader in) throws IOException { } /** - * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, ISO8601Utils will be used. + * Gson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be used. */ public static class DateTypeAdapter extends TypeAdapter { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java index 6dbe7a0216d..2079f056c98 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerConfiguration.java @@ -2,9 +2,7 @@ import java.util.Map; -/** - * Representing a Server configuration. - */ +/** Representing a Server configuration. */ public class ServerConfiguration { public String URL; @@ -14,7 +12,8 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. * @param description A description of the host designated by the URL. - * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. + * @param variables A map between a variable name and its value. The value is used for + * substitution in the server's URL template. */ public ServerConfiguration( String URL, diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java index 52b3a21d57e..c0e8b2aa675 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/ServerVariable.java @@ -2,9 +2,7 @@ import java.util.HashSet; -/** - * Representing a Server Variable for server URL template substitution. - */ +/** Representing a Server Variable for server URL template substitution. */ public class ServerVariable { public String description; @@ -14,7 +12,8 @@ public class ServerVariable { /** * @param description A description for the server variable. * @param defaultValue The default value to use for substitution. - * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. + * @param enumValues An enumeration of string values to be used if the substitution options are + * from a limited set. */ public ServerVariable( String description, diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java index 3f0a8a25da0..af841ec05cd 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/StringUtil.java @@ -27,11 +27,10 @@ public static boolean containsIgnoreCase(String[] array, String value) { /** * Join an array of strings with the given separator. * - * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. + *

Note: This might be replaced by utility method from commons-lang or guava someday if one of + * those libraries is added as dependency. * - * - * @param array The array of strings + * @param array The array of strings * @param separator The separator * @return the resulting string */ @@ -52,7 +51,7 @@ public static String join(String[] array, String separator) { /** * Join a list of strings with the given separator. * - * @param list The list of strings + * @param list The list of strings * @param separator The separator * @return the resulting string */ diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java index f8d527963e0..0d7222491fb 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * AddApiKeyResponse - */ - +/** AddApiKeyResponse */ public class AddApiKeyResponse { public static final String SERIALIZED_NAME_KEY = "key"; @@ -35,8 +25,9 @@ public AddApiKeyResponse key(String key) { /** * Key string. + * * @return key - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Key string.") public String getKey() { @@ -54,8 +45,9 @@ public AddApiKeyResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -103,8 +95,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java index 2cc060400d9..d6669327f12 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java @@ -9,19 +9,14 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * Api Key object. - */ +/** Api Key object. */ @ApiModel(description = "Api Key object.") public class ApiKey { - /** - * Gets or Sets acl - */ + /** Gets or Sets acl */ @JsonAdapter(AclEnum.Adapter.class) public enum AclEnum { ADDOBJECT("addObject"), @@ -147,8 +142,9 @@ public ApiKey addAclItem(AclEnum aclItem) { /** * Set of permissions associated with the key. + * * @return acl - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -168,12 +164,15 @@ public ApiKey description(String description) { } /** - * A comment used to identify a key more easily in the dashboard. It is not interpreted by the API. + * A comment used to identify a key more easily in the dashboard. It is not interpreted by the + * API. + * * @return description - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by the API." + value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by" + + " the API." ) public String getDescription() { return description; @@ -197,12 +196,15 @@ public ApiKey addIndexesItem(String indexesItem) { } /** - * Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed. + * Restrict this new API key to a list of indices or index patterns. If the list is empty, all + * indices are allowed. + * * @return indexes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed." + value = "Restrict this new API key to a list of indices or index patterns. If the list is empty," + + " all indices are allowed." ) public List getIndexes() { return indexes; @@ -219,11 +221,13 @@ public ApiKey maxHitsPerQuery(Integer maxHitsPerQuery) { /** * Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. + * * @return maxHitsPerQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced." + value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is" + + " enforced." ) public Integer getMaxHitsPerQuery() { return maxHitsPerQuery; @@ -240,8 +244,9 @@ public ApiKey maxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { /** * Maximum number of API calls per hour allowed from a given IP address or a user token. + * * @return maxQueriesPerIPPerHour - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of API calls per hour allowed from a given IP address or a user token." @@ -260,12 +265,15 @@ public ApiKey queryParameters(String queryParameters) { } /** - * URL-encoded query string. Force some query parameters to be applied for each query made with this API key. + * URL-encoded query string. Force some query parameters to be applied for each query made with + * this API key. + * * @return queryParameters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "URL-encoded query string. Force some query parameters to be applied for each query made with this API key." + value = "URL-encoded query string. Force some query parameters to be applied for each query made" + + " with this API key." ) public String getQueryParameters() { return queryParameters; @@ -290,11 +298,13 @@ public ApiKey addReferersItem(String referersItem) { /** * Restrict this new API key to specific referers. If empty or blank, defaults to all referers. + * * @return referers - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to specific referers. If empty or blank, defaults to all referers." + value = "Restrict this new API key to specific referers. If empty or blank, defaults to all" + + " referers." ) public List getReferers() { return referers; @@ -310,12 +320,15 @@ public ApiKey validity(Integer validity) { } /** - * Validity limit for this key in seconds. The key will automatically be removed after this period of time. + * Validity limit for this key in seconds. The key will automatically be removed after this period + * of time. + * * @return validity - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Validity limit for this key in seconds. The key will automatically be removed after this period of time." + value = "Validity limit for this key in seconds. The key will automatically be removed after this" + + " period of time." ) public Integer getValidity() { return validity; @@ -392,8 +405,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java index 5cb4d2bd98e..cbd8b08f6a4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * AppendSourceResponse - */ - +/** AppendSourceResponse */ public class AppendSourceResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -30,8 +20,9 @@ public AppendSourceResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java index 08202add408..3e0fdc73325 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdObject.java @@ -1,19 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * Assign userID object. - */ +/** Assign userID object. */ @ApiModel(description = "Assign userID object.") public class AssignUserIdObject { @@ -29,8 +21,9 @@ public AssignUserIdObject cluster(String cluster) { /** * Name of the cluster. + * * @return cluster - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "c11-test", @@ -72,8 +65,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java index c94dc25bf43..f18853c2eb4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * AssignUserIdResponse - */ - +/** AssignUserIdResponse */ public class AssignUserIdResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -30,8 +20,9 @@ public AssignUserIdResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java index 56b6ed8c3d4..5ac1b4dfa23 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java @@ -1,24 +1,14 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -/** - * BaseIndexSettings - */ - +/** BaseIndexSettings */ public class BaseIndexSettings { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @@ -104,8 +94,9 @@ public BaseIndexSettings addReplicasItem(String replicasItem) { /** * Creates replicas, exact copies of an index. + * * @return replicas - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Creates replicas, exact copies of an index.") public List getReplicas() { @@ -123,8 +114,9 @@ public BaseIndexSettings paginationLimitedTo(Integer paginationLimitedTo) { /** * Set the maximum number of hits accessible via pagination. + * * @return paginationLimitedTo - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Set the maximum number of hits accessible via pagination." @@ -156,8 +148,9 @@ public BaseIndexSettings addDisableTypoToleranceOnWordsItem( /** * A list of words for which you want to turn off typo tolerance. + * * @return disableTypoToleranceOnWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words for which you want to turn off typo tolerance." @@ -191,8 +184,9 @@ public BaseIndexSettings addAttributesToTransliterateItem( /** * Specify on which attributes to apply transliteration. + * * @return attributesToTransliterate - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Specify on which attributes to apply transliteration." @@ -226,8 +220,9 @@ public BaseIndexSettings addCamelCaseAttributesItem( /** * List of attributes on which to do a decomposition of camel case words. + * * @return camelCaseAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which to do a decomposition of camel case words." @@ -259,12 +254,15 @@ public BaseIndexSettings putDecompoundedAttributesItem( } /** - * Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding. + * Specify on which attributes in your index Algolia should apply word segmentation, also known as + * decompounding. + * * @return decompoundedAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding." + value = "Specify on which attributes in your index Algolia should apply word segmentation, also" + + " known as decompounding." ) public Map getDecompoundedAttributes() { return decompoundedAttributes; @@ -290,12 +288,15 @@ public BaseIndexSettings addIndexLanguagesItem(String indexLanguagesItem) { } /** - * Sets the languages at the index level for language-specific processing such as tokenization and normalization. + * Sets the languages at the index level for language-specific processing such as tokenization and + * normalization. + * * @return indexLanguages - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages at the index level for language-specific processing such as tokenization and normalization." + value = "Sets the languages at the index level for language-specific processing such as" + + " tokenization and normalization." ) public List getIndexLanguages() { return indexLanguages; @@ -311,12 +312,15 @@ public BaseIndexSettings filterPromotes(Boolean filterPromotes) { } /** - * Whether promoted results should match the filters of the current search, except for geographic filters. + * Whether promoted results should match the filters of the current search, except for geographic + * filters. + * * @return filterPromotes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether promoted results should match the filters of the current search, except for geographic filters." + value = "Whether promoted results should match the filters of the current search, except for" + + " geographic filters." ) public Boolean getFilterPromotes() { return filterPromotes; @@ -345,8 +349,9 @@ public BaseIndexSettings addDisablePrefixOnAttributesItem( /** * List of attributes on which you want to disable prefix matching. + * * @return disablePrefixOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable prefix matching." @@ -370,8 +375,9 @@ public BaseIndexSettings allowCompressionOfIntegerArray( /** * Enables compression of large integer arrays. + * * @return allowCompressionOfIntegerArray - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables compression of large integer arrays.") public Boolean getAllowCompressionOfIntegerArray() { @@ -403,8 +409,9 @@ public BaseIndexSettings addNumericAttributesForFilteringItem( /** * List of numeric attributes that can be used as numerical filters. + * * @return numericAttributesForFiltering - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of numeric attributes that can be used as numerical filters." @@ -434,8 +441,9 @@ public BaseIndexSettings putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. + * * @return userData - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -564,8 +572,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java index afeb82028a1..504405ca146 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java @@ -1,14 +1,7 @@ package com.algolia.model; -import com.algolia.model.OneOfintegerstring; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; @@ -16,10 +9,7 @@ import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; -/** - * BaseSearchParams - */ - +/** BaseSearchParams */ public class BaseSearchParams { public static final String SERIALIZED_NAME_QUERY = "query"; @@ -208,8 +198,9 @@ public BaseSearchParams query(String query) { /** * The text to search in the index. + * * @return query - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -226,12 +217,15 @@ public BaseSearchParams similarQuery(String similarQuery) { } /** - * Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results. + * Overrides the query parameter and performs a more generic search that can be used to find + * \"similar\" results. + * * @return similarQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results." + value = "Overrides the query parameter and performs a more generic search that can be used to" + + " find \"similar\" results." ) public String getSimilarQuery() { return similarQuery; @@ -248,8 +242,9 @@ public BaseSearchParams filters(String filters) { /** * Filter the query with numeric, facet and/or tag filters. + * * @return filters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Filter the query with numeric, facet and/or tag filters." @@ -277,8 +272,9 @@ public BaseSearchParams addFacetFiltersItem(String facetFiltersItem) { /** * Filter hits by facet value. + * * @return facetFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by facet value.") public List getFacetFilters() { @@ -303,12 +299,15 @@ public BaseSearchParams addOptionalFiltersItem(String optionalFiltersItem) { } /** - * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter. + * Create filters for ranking purposes, where records that match the filter are ranked higher, or + * lower in the case of a negative optional filter. + * * @return optionalFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter." + value = "Create filters for ranking purposes, where records that match the filter are ranked" + + " higher, or lower in the case of a negative optional filter." ) public List getOptionalFilters() { return optionalFilters; @@ -333,8 +332,9 @@ public BaseSearchParams addNumericFiltersItem(String numericFiltersItem) { /** * Filter on numeric attributes. + * * @return numericFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Filter on numeric attributes.") public List getNumericFilters() { @@ -360,8 +360,9 @@ public BaseSearchParams addTagFiltersItem(String tagFiltersItem) { /** * Filter hits by tags. + * * @return tagFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by tags.") public List getTagFilters() { @@ -379,8 +380,9 @@ public BaseSearchParams sumOrFiltersScores(Boolean sumOrFiltersScores) { /** * Determines how to calculate the total score for filtering. + * * @return sumOrFiltersScores - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Determines how to calculate the total score for filtering." @@ -408,8 +410,9 @@ public BaseSearchParams addFacetsItem(String facetsItem) { /** * Retrieve facets and their facet values. + * * @return facets - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve facets and their facet values.") public List getFacets() { @@ -427,8 +430,9 @@ public BaseSearchParams maxValuesPerFacet(Integer maxValuesPerFacet) { /** * Maximum number of facet values to return for each facet during a regular search. + * * @return maxValuesPerFacet - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet values to return for each facet during a regular search." @@ -448,8 +452,9 @@ public BaseSearchParams facetingAfterDistinct(Boolean facetingAfterDistinct) { /** * Force faceting to be applied after de-duplication (via the Distinct setting). + * * @return facetingAfterDistinct - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Force faceting to be applied after de-duplication (via the Distinct setting)." @@ -469,8 +474,9 @@ public BaseSearchParams sortFacetValuesBy(String sortFacetValuesBy) { /** * Controls how facet values are fetched. + * * @return sortFacetValuesBy - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how facet values are fetched.") public String getSortFacetValuesBy() { @@ -488,8 +494,9 @@ public BaseSearchParams page(Integer page) { /** * Specify the page to retrieve. + * * @return page - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the page to retrieve.") public Integer getPage() { @@ -507,8 +514,9 @@ public BaseSearchParams offset(Integer offset) { /** * Specify the offset of the first hit to return. + * * @return offset - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the offset of the first hit to return.") public Integer getOffset() { @@ -525,11 +533,10 @@ public BaseSearchParams length(Integer length) { } /** - * Set the number of hits to retrieve (used only with offset). - * minimum: 1 - * maximum: 1000 + * Set the number of hits to retrieve (used only with offset). minimum: 1 maximum: 1000 + * * @return length - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Set the number of hits to retrieve (used only with offset)." @@ -549,11 +556,13 @@ public BaseSearchParams aroundLatLng(String aroundLatLng) { /** * Search for entries around a central geolocation, enabling a geo search within a circular area. + * * @return aroundLatLng - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a central geolocation, enabling a geo search within a circular area." + value = "Search for entries around a central geolocation, enabling a geo search within a circular" + + " area." ) public String getAroundLatLng() { return aroundLatLng; @@ -569,12 +578,15 @@ public BaseSearchParams aroundLatLngViaIP(Boolean aroundLatLngViaIP) { } /** - * Search for entries around a given location automatically computed from the requester’s IP address. + * Search for entries around a given location automatically computed from the requester’s IP + * address. + * * @return aroundLatLngViaIP - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a given location automatically computed from the requester’s IP address." + value = "Search for entries around a given location automatically computed from the requester’s" + + " IP address." ) public Boolean getAroundLatLngViaIP() { return aroundLatLngViaIP; @@ -591,8 +603,9 @@ public BaseSearchParams aroundRadius(OneOfintegerstring aroundRadius) { /** * Define the maximum radius for a geo search (in meters). + * * @return aroundRadius - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Define the maximum radius for a geo search (in meters)." @@ -612,11 +625,13 @@ public BaseSearchParams aroundPrecision(Integer aroundPrecision) { /** * Precision of geo search (in meters), to add grouping by geo location to the ranking formula. + * * @return aroundPrecision - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Precision of geo search (in meters), to add grouping by geo location to the ranking formula." + value = "Precision of geo search (in meters), to add grouping by geo location to the ranking" + + " formula." ) public Integer getAroundPrecision() { return aroundPrecision; @@ -632,10 +647,10 @@ public BaseSearchParams minimumAroundRadius(Integer minimumAroundRadius) { } /** - * Minimum radius (in meters) used for a geo search when aroundRadius is not set. - * minimum: 1 + * Minimum radius (in meters) used for a geo search when aroundRadius is not set. minimum: 1 + * * @return minimumAroundRadius - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Minimum radius (in meters) used for a geo search when aroundRadius is not set." @@ -667,8 +682,9 @@ public BaseSearchParams addInsideBoundingBoxItem( /** * Search inside a rectangular area (in geo coordinates). + * * @return insideBoundingBox - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Search inside a rectangular area (in geo coordinates)." @@ -696,8 +712,9 @@ public BaseSearchParams addInsidePolygonItem(BigDecimal insidePolygonItem) { /** * Search inside a polygon (in geo coordinates). + * * @return insidePolygon - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Search inside a polygon (in geo coordinates).") public List getInsidePolygon() { @@ -722,12 +739,21 @@ public BaseSearchParams addNaturalLanguagesItem(String naturalLanguagesItem) { } /** - * This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search. + * This parameter changes the default values of certain parameters and settings that work best for + * a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, + * analyticsTags and ruleContexts. These parameters and settings work well together when the query + * is formatted in natural language instead of keywords, for example when your user performs a + * voice search. + * * @return naturalLanguages - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search." + value = "This parameter changes the default values of certain parameters and settings that work" + + " best for a natural language query, such as ignorePlurals, removeStopWords," + + " removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and" + + " settings work well together when the query is formatted in natural language" + + " instead of keywords, for example when your user performs a voice search." ) public List getNaturalLanguages() { return naturalLanguages; @@ -752,8 +778,9 @@ public BaseSearchParams addRuleContextsItem(String ruleContextsItem) { /** * Enables contextual rules. + * * @return ruleContexts - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables contextual rules.") public List getRuleContexts() { @@ -771,8 +798,9 @@ public BaseSearchParams personalizationImpact(Integer personalizationImpact) { /** * Define the impact of the Personalization feature. + * * @return personalizationImpact - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Define the impact of the Personalization feature.") public Integer getPersonalizationImpact() { @@ -790,8 +818,9 @@ public BaseSearchParams userToken(String userToken) { /** * Associates a certain user token with the current search. + * * @return userToken - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Associates a certain user token with the current search." @@ -811,8 +840,9 @@ public BaseSearchParams getRankingInfo(Boolean getRankingInfo) { /** * Retrieve detailed ranking information. + * * @return getRankingInfo - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve detailed ranking information.") public Boolean getGetRankingInfo() { @@ -830,8 +860,9 @@ public BaseSearchParams clickAnalytics(Boolean clickAnalytics) { /** * Enable the Click Analytics feature. + * * @return clickAnalytics - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Click Analytics feature.") public Boolean getClickAnalytics() { @@ -849,8 +880,9 @@ public BaseSearchParams analytics(Boolean analytics) { /** * Whether the current query will be taken into account in the Analytics. + * * @return analytics - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the current query will be taken into account in the Analytics." @@ -878,8 +910,9 @@ public BaseSearchParams addAnalyticsTagsItem(String analyticsTagsItem) { /** * List of tags to apply to the query for analytics purposes. + * * @return analyticsTags - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of tags to apply to the query for analytics purposes." @@ -899,8 +932,9 @@ public BaseSearchParams percentileComputation(Boolean percentileComputation) { /** * Whether to include or exclude a query from the processing-time percentile computation. + * * @return percentileComputation - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to include or exclude a query from the processing-time percentile computation." @@ -920,8 +954,9 @@ public BaseSearchParams enableABTest(Boolean enableABTest) { /** * Whether this search should participate in running AB tests. + * * @return enableABTest - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether this search should participate in running AB tests." @@ -941,8 +976,9 @@ public BaseSearchParams enableReRanking(Boolean enableReRanking) { /** * Whether this search should use AI Re-Ranking. + * * @return enableReRanking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Whether this search should use AI Re-Ranking.") public Boolean getEnableReRanking() { @@ -1214,8 +1250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java index 461b2ef07f3..65bd5dfd3f9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java @@ -1,24 +1,12 @@ package com.algolia.model; -import com.algolia.model.BaseSearchResponseFacetsStats; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Objects; -/** - * BaseSearchResponse - */ - +/** BaseSearchResponse */ public class BaseSearchResponse { public static final String SERIALIZED_NAME_AB_TEST_I_D = "abTestID"; @@ -153,12 +141,15 @@ public BaseSearchResponse abTestID(Integer abTestID) { } /** - * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID. + * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test + * ID. + * * @return abTestID - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID." + value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing" + + " A/B test ID." ) public Integer getAbTestID() { return abTestID; @@ -174,12 +165,15 @@ public BaseSearchResponse abTestVariantID(Integer abTestVariantID) { } /** - * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used. + * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant + * ID of the index used. + * * @return abTestVariantID - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used." + value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the" + + " variant ID of the index used." ) public Integer getAbTestVariantID() { return abTestVariantID; @@ -196,8 +190,9 @@ public BaseSearchResponse aroundLatLng(String aroundLatLng) { /** * The computed geo location. + * * @return aroundLatLng - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The computed geo location.") public String getAroundLatLng() { @@ -214,12 +209,15 @@ public BaseSearchResponse automaticRadius(String automaticRadius) { } /** - * The automatically computed radius. For legacy reasons, this parameter is a string and not an integer. + * The automatically computed radius. For legacy reasons, this parameter is a string and not an + * integer. + * * @return automaticRadius - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The automatically computed radius. For legacy reasons, this parameter is a string and not an integer." + value = "The automatically computed radius. For legacy reasons, this parameter is a string and" + + " not an integer." ) public String getAutomaticRadius() { return automaticRadius; @@ -238,8 +236,9 @@ public BaseSearchResponse exhaustiveFacetsCount( /** * Whether the facet count is exhaustive or approximate. + * * @return exhaustiveFacetsCount - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the facet count is exhaustive or approximate." @@ -259,8 +258,9 @@ public BaseSearchResponse exhaustiveNbHits(Boolean exhaustiveNbHits) { /** * Indicate if the nbHits count was exhaustive or approximate + * * @return exhaustiveNbHits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -280,13 +280,16 @@ public BaseSearchResponse exhaustiveTypo(Boolean exhaustiveTypo) { } /** - * Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled) + * Indicate if the typo-tolerence search was exhaustive or approximate (only included when + * typo-tolerance is enabled) + * * @return exhaustiveTypo - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled)" + value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when" + + " typo-tolerance is enabled)" ) public Boolean getExhaustiveTypo() { return exhaustiveTypo; @@ -314,8 +317,9 @@ public BaseSearchResponse putFacetsItem( /** * A mapping of each facet name to the corresponding facet counts. + * * @return facets - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "{\"category\":{\"food\":1,\"tech\":42}}", @@ -349,8 +353,9 @@ public BaseSearchResponse putFacetsStatsItem( /** * Statistics for numerical facets. + * * @return facetsStats - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Statistics for numerical facets.") public Map getFacetsStats() { @@ -370,8 +375,9 @@ public BaseSearchResponse hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. + * * @return hitsPerPage - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -389,8 +395,9 @@ public BaseSearchResponse index(String index) { /** * Index name used for the query. + * * @return index - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "indexName", @@ -410,13 +417,16 @@ public BaseSearchResponse indexUsed(String indexUsed) { } /** - * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query. + * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the + * index used by the query. + * * @return indexUsed - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "indexNameAlt", - value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query." + value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t" + + " always the index used by the query." ) public String getIndexUsed() { return indexUsed; @@ -433,8 +443,9 @@ public BaseSearchResponse message(String message) { /** * Used to return warnings about the query. + * * @return message - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Used to return warnings about the query.") public String getMessage() { @@ -452,8 +463,9 @@ public BaseSearchResponse nbHits(Integer nbHits) { /** * Number of hits that the search query matched. + * * @return nbHits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -475,8 +487,9 @@ public BaseSearchResponse nbPages(Integer nbPages) { /** * Number of pages available for the current query + * * @return nbPages - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "1", @@ -498,8 +511,9 @@ public BaseSearchResponse nbSortedHits(Integer nbSortedHits) { /** * The number of hits selected and sorted by the relevant sort algorithm + * * @return nbSortedHits - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "20", @@ -520,8 +534,9 @@ public BaseSearchResponse page(Integer page) { /** * Specify the page to retrieve. + * * @return page - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Specify the page to retrieve.") public Integer getPage() { @@ -539,8 +554,9 @@ public BaseSearchResponse params(String params) { /** * A url-encoded string of all search parameters. + * * @return params - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "query=a&hitsPerPage=20", @@ -562,8 +578,9 @@ public BaseSearchResponse parsedQuery(String parsedQuery) { /** * The query string that will be searched, after normalization. + * * @return parsedQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The query string that will be searched, after normalization." @@ -583,8 +600,9 @@ public BaseSearchResponse processingTimeMS(Integer processingTimeMS) { /** * Time the server took to process the request, in milliseconds. + * * @return processingTimeMS - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -606,8 +624,9 @@ public BaseSearchResponse query(String query) { /** * The text to search in the index. + * * @return query - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -624,12 +643,15 @@ public BaseSearchResponse queryAfterRemoval(String queryAfterRemoval) { } /** - * A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. + * A markup text indicating which parts of the original query have been removed in order to + * retrieve a non-empty result set. + * * @return queryAfterRemoval - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set." + value = "A markup text indicating which parts of the original query have been removed in order to" + + " retrieve a non-empty result set." ) public String getQueryAfterRemoval() { return queryAfterRemoval; @@ -646,8 +668,9 @@ public BaseSearchResponse serverUsed(String serverUsed) { /** * Actual host name of the server that processed the request. + * * @return serverUsed - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Actual host name of the server that processed the request." @@ -675,8 +698,9 @@ public BaseSearchResponse putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. + * * @return userData - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -847,8 +871,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java index 0658e5b3d82..390f261989d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java @@ -1,20 +1,10 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * BaseSearchResponseFacetsStats - */ - +/** BaseSearchResponseFacetsStats */ public class BaseSearchResponseFacetsStats { public static final String SERIALIZED_NAME_MIN = "min"; @@ -44,8 +34,9 @@ public BaseSearchResponseFacetsStats min(Integer min) { /** * The minimum value in the result set. + * * @return min - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The minimum value in the result set.") public Integer getMin() { @@ -63,8 +54,9 @@ public BaseSearchResponseFacetsStats max(Integer max) { /** * The maximum value in the result set. + * * @return max - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum value in the result set.") public Integer getMax() { @@ -82,8 +74,9 @@ public BaseSearchResponseFacetsStats avg(Integer avg) { /** * The average facet value in the result set. + * * @return avg - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The average facet value in the result set.") public Integer getAvg() { @@ -101,8 +94,9 @@ public BaseSearchResponseFacetsStats sum(Integer sum) { /** * The sum of all values in the result set. + * * @return sum - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The sum of all values in the result set.") public Integer getSum() { @@ -148,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java index 195df0d0390..867b2e25eb7 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsObject.java @@ -1,21 +1,13 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * Assign userID object. - */ +/** Assign userID object. */ @ApiModel(description = "Assign userID object.") public class BatchAssignUserIdsObject { @@ -36,8 +28,9 @@ public BatchAssignUserIdsObject cluster(String cluster) { /** * Name of the cluster. + * * @return cluster - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "c11-test", @@ -64,8 +57,9 @@ public BatchAssignUserIdsObject addUsersItem(String usersItem) { /** * userIDs to assign. Note you cannot move users with this method. + * * @return users - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -110,8 +104,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java index 4c28f13ed15..beff188d922 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * BatchAssignUserIdsResponse - */ - +/** BatchAssignUserIdsResponse */ public class BatchAssignUserIdsResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -30,8 +20,9 @@ public BatchAssignUserIdsResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java index 2d512e0a5c8..e3f053211a0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchObject.java @@ -1,22 +1,13 @@ package com.algolia.model; -import com.algolia.model.Operation; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * The `batch` requests. - */ +/** The `batch` requests. */ @ApiModel(description = "The `batch` requests.") public class BatchObject { @@ -40,8 +31,9 @@ public BatchObject addRequestsItem(Operation requestsItem) { /** * Get requests + * * @return requests - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getRequests() { @@ -79,8 +71,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java index f9aa706506f..9d8a55c551a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java @@ -1,22 +1,12 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * BatchResponse - */ - +/** BatchResponse */ public class BatchResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -36,8 +26,9 @@ public BatchResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -63,8 +54,9 @@ public BatchResponse addObjectIDsItem(String objectIDsItem) { /** * List of objectID. + * * @return objectIDs - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "List of objectID.") public List getObjectIDs() { @@ -109,8 +101,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java index 7dda9fbc1b9..f3f206367c6 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * ClearAllSynonymsResponse - */ - +/** ClearAllSynonymsResponse */ public class ClearAllSynonymsResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -35,8 +25,9 @@ public ClearAllSynonymsResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -57,8 +48,9 @@ public ClearAllSynonymsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -106,8 +98,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java index 8ead0ef9515..0953db21b16 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * CreatedAtObject - */ - +/** CreatedAtObject */ public class CreatedAtObject { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -30,8 +20,9 @@ public CreatedAtObject createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java index cfd41af045d..c17e344833d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * DeleteApiKeyResponse - */ - +/** DeleteApiKeyResponse */ public class DeleteApiKeyResponse { public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; @@ -30,8 +20,9 @@ public DeleteApiKeyResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). + * * @return deletedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java index 3a0c876fbc0..3f8c11a7fbb 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteIndexResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * DeleteIndexResponse - */ - +/** DeleteIndexResponse */ public class DeleteIndexResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -35,8 +25,9 @@ public DeleteIndexResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -54,8 +45,9 @@ public DeleteIndexResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). + * * @return deletedAt - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Date of deletion (ISO-8601 format).") public OffsetDateTime getDeletedAt() { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java index 43098d70a89..18ccd3412c2 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * DeleteSourceResponse - */ - +/** DeleteSourceResponse */ public class DeleteSourceResponse { public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; @@ -30,8 +20,9 @@ public DeleteSourceResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). + * * @return deletedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java index b1609671b0a..f087b817349 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSynonymResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * DeleteSynonymResponse - */ - +/** DeleteSynonymResponse */ public class DeleteSynonymResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -35,8 +25,9 @@ public DeleteSynonymResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -57,8 +48,9 @@ public DeleteSynonymResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). + * * @return deletedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -106,8 +98,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java index 5b906770bd1..95ad6123009 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java @@ -1,21 +1,12 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** - * Error. - */ +/** Error. */ @ApiModel(description = "Error.") public class ErrorBase extends HashMap { @@ -31,8 +22,9 @@ public ErrorBase message(String message) { /** * Get message + * * @return message - **/ + */ @javax.annotation.Nullable @ApiModelProperty(example = "Invalid Application-Id or API-Key", value = "") public String getMessage() { @@ -71,8 +63,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java index 9a4bf14fdc4..e3792bb9d3c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java @@ -1,23 +1,12 @@ package com.algolia.model; -import com.algolia.model.GetLogsResponseLogs; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * GetLogsResponse - */ - +/** GetLogsResponse */ public class GetLogsResponse { public static final String SERIALIZED_NAME_LOGS = "logs"; @@ -37,8 +26,9 @@ public GetLogsResponse addLogsItem(GetLogsResponseLogs logsItem) { /** * Get logs + * * @return logs - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getLogs() { @@ -76,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java index 7540165b024..83e28e53667 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java @@ -1,20 +1,10 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * GetLogsResponseInnerQueries - */ - +/** GetLogsResponseInnerQueries */ public class GetLogsResponseInnerQueries { public static final String SERIALIZED_NAME_INDEX_NAME = "index_name"; @@ -39,8 +29,9 @@ public GetLogsResponseInnerQueries indexName(String indexName) { /** * Index targeted by the query. + * * @return indexName - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Index targeted by the query.") public String getIndexName() { @@ -58,8 +49,9 @@ public GetLogsResponseInnerQueries userToken(String userToken) { /** * User identifier. + * * @return userToken - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "User identifier.") public String getUserToken() { @@ -77,8 +69,9 @@ public GetLogsResponseInnerQueries queryId(String queryId) { /** * QueryID for the given query. + * * @return queryId - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "QueryID for the given query.") public String getQueryId() { @@ -128,8 +121,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java index b1bbcc74cc3..4edffb2515f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java @@ -1,23 +1,12 @@ package com.algolia.model; -import com.algolia.model.GetLogsResponseInnerQueries; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * GetLogsResponseLogs - */ - +/** GetLogsResponseLogs */ public class GetLogsResponseLogs { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @@ -103,8 +92,9 @@ public GetLogsResponseLogs timestamp(String timestamp) { /** * Timestamp in ISO-8601 format. + * * @return timestamp - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Timestamp in ISO-8601 format.") public String getTimestamp() { @@ -122,8 +112,9 @@ public GetLogsResponseLogs method(String method) { /** * HTTP method of the perfomed request. + * * @return method - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -144,8 +135,9 @@ public GetLogsResponseLogs answerCode(String answerCode) { /** * HTTP response code. + * * @return answerCode - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "HTTP response code.") public String getAnswerCode() { @@ -163,8 +155,9 @@ public GetLogsResponseLogs queryBody(String queryBody) { /** * Request body. Truncated after 1000 characters. + * * @return queryBody - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -185,8 +178,9 @@ public GetLogsResponseLogs answer(String answer) { /** * Answer body. Truncated after 1000 characters. + * * @return answer - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -207,8 +201,9 @@ public GetLogsResponseLogs url(String url) { /** * Request URL. + * * @return url - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Request URL.") public String getUrl() { @@ -226,8 +221,9 @@ public GetLogsResponseLogs ip(String ip) { /** * IP of the client which perfomed the request. + * * @return ip - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -248,8 +244,9 @@ public GetLogsResponseLogs queryHeaders(String queryHeaders) { /** * Request Headers (API Key is obfuscated). + * * @return queryHeaders - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -270,8 +267,9 @@ public GetLogsResponseLogs sha1(String sha1) { /** * SHA1 signature of the log entry. + * * @return sha1 - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "SHA1 signature of the log entry.") public String getSha1() { @@ -289,8 +287,9 @@ public GetLogsResponseLogs nbApiCalls(String nbApiCalls) { /** * Number of API calls. + * * @return nbApiCalls - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Number of API calls.") public String getNbApiCalls() { @@ -308,8 +307,9 @@ public GetLogsResponseLogs processingTimeMs(String processingTimeMs) { /** * Processing time for the query. It doesn't include network time. + * * @return processingTimeMs - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -330,8 +330,9 @@ public GetLogsResponseLogs index(String index) { /** * Index targeted by the query. + * * @return index - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Index targeted by the query.") public String getIndex() { @@ -349,8 +350,9 @@ public GetLogsResponseLogs queryParams(String queryParams) { /** * Query parameters sent with the request. + * * @return queryParams - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Query parameters sent with the request.") public String getQueryParams() { @@ -368,8 +370,9 @@ public GetLogsResponseLogs queryNbHits(String queryNbHits) { /** * Number of hits returned for the query. + * * @return queryNbHits - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Number of hits returned for the query.") public String getQueryNbHits() { @@ -399,8 +402,9 @@ public GetLogsResponseLogs addInnerQueriesItem( /** * Array of all performed queries for the given request. + * * @return innerQueries - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Array of all performed queries for the given request." @@ -516,8 +520,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java index c8f4da866ac..4335d762688 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java @@ -5,21 +5,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * GetTaskResponse - */ - +/** GetTaskResponse */ public class GetTaskResponse { - /** - * Gets or Sets status - */ + /** Gets or Sets status */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { PUBLISHED("published"), @@ -80,8 +73,9 @@ public GetTaskResponse status(StatusEnum status) { /** * Get status + * * @return status - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public StatusEnum getStatus() { @@ -119,8 +113,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java index cf4a3182766..eb85a7a0f4f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java @@ -1,23 +1,14 @@ package com.algolia.model; -import com.algolia.model.UserId; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Objects; -/** - * Array of userIDs and clusters. - */ +/** Array of userIDs and clusters. */ @ApiModel(description = "Array of userIDs and clusters.") public class GetTopUserIdsResponse { @@ -42,8 +33,9 @@ public GetTopUserIdsResponse addTopUsersItem( /** * Mapping of cluster names to top users. + * * @return topUsers - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -84,8 +76,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java index d58cc91d13e..fa849127169 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HasPendingMappingsResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * HasPendingMappingsResponse - */ - +/** HasPendingMappingsResponse */ public class HasPendingMappingsResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -30,8 +20,9 @@ public HasPendingMappingsResponse createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java index 1eb9e46f490..606dc0a201d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java @@ -9,13 +9,10 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * Highlighted attributes. - */ +/** Highlighted attributes. */ @ApiModel(description = "Highlighted attributes.") public class HighlightResult { @@ -24,9 +21,7 @@ public class HighlightResult { @SerializedName(SERIALIZED_NAME_VALUE) private String value; - /** - * Indicates how well the attribute matched the search query. - */ + /** Indicates how well the attribute matched the search query. */ @JsonAdapter(MatchLevelEnum.Adapter.class) public enum MatchLevelEnum { NONE("none"), @@ -101,8 +96,9 @@ public HighlightResult value(String value) { /** * Markup text with occurrences highlighted. + * * @return value - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "George Clooney", @@ -123,8 +119,9 @@ public HighlightResult matchLevel(MatchLevelEnum matchLevel) { /** * Indicates how well the attribute matched the search query. + * * @return matchLevel - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Indicates how well the attribute matched the search query." @@ -152,8 +149,9 @@ public HighlightResult addMatchedWordsItem(String matchedWordsItem) { /** * List of words from the query that matched the object. + * * @return matchedWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of words from the query that matched the object." @@ -173,8 +171,9 @@ public HighlightResult fullyHighlighted(Boolean fullyHighlighted) { /** * Whether the entire attribute value is highlighted. + * * @return fullyHighlighted - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the entire attribute value is highlighted." @@ -231,8 +230,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java index 5f35cd4e2e1..9f28608505e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Index.java @@ -1,23 +1,13 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * Index - */ - +/** Index */ public class Index { public static final String SERIALIZED_NAME_NAME = "name"; @@ -84,8 +74,9 @@ public Index name(String name) { /** * Index name. + * * @return name - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Index name.") public String getName() { @@ -103,8 +94,9 @@ public Index createdAt(OffsetDateTime createdAt) { /** * Index creation date. An empty string means that the index has no records. + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -125,8 +117,9 @@ public Index updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -147,8 +140,9 @@ public Index entries(Integer entries) { /** * Number of records contained in the index. + * * @return entries - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -169,8 +163,9 @@ public Index dataSize(Integer dataSize) { /** * Number of bytes of the index in minified format. + * * @return dataSize - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -191,8 +186,9 @@ public Index fileSize(Integer fileSize) { /** * Number of bytes of the index binary file. + * * @return fileSize - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -213,8 +209,9 @@ public Index lastBuildTimeS(Integer lastBuildTimeS) { /** * Last build time + * * @return lastBuildTimeS - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Last build time") public Integer getLastBuildTimeS() { @@ -232,8 +229,9 @@ public Index numberOfPendingTask(Integer numberOfPendingTask) { /** * Number of pending indexing operations. This value is deprecated and should not be used. + * * @return numberOfPendingTask - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Number of pending indexing operations. This value is deprecated and should not be used." @@ -252,13 +250,16 @@ public Index pendingTask(Boolean pendingTask) { } /** - * A boolean which says whether the index has pending tasks. This value is deprecated and should not be used. + * A boolean which says whether the index has pending tasks. This value is deprecated and should + * not be used. + * * @return pendingTask - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "A boolean which says whether the index has pending tasks. This value is deprecated and should not be used." + value = "A boolean which says whether the index has pending tasks. This value is deprecated and" + + " should not be used." ) public Boolean getPendingTask() { return pendingTask; @@ -275,8 +276,9 @@ public Index primary(String primary) { /** * Only present if the index is a replica. Contains the name of the related primary index. + * * @return primary - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Only present if the index is a replica. Contains the name of the related primary index." @@ -303,12 +305,15 @@ public Index addReplicasItem(String replicasItem) { } /** - * Only present if the index is a primary index with replicas. Contains the names of all linked replicas. + * Only present if the index is a primary index with replicas. Contains the names of all linked + * replicas. + * * @return replicas - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Only present if the index is a primary index with replicas. Contains the names of all linked replicas." + value = "Only present if the index is a primary index with replicas. Contains the names of all" + + " linked replicas." ) public List getReplicas() { return replicas; @@ -394,8 +399,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java index 82a3508275d..5b043ad11c5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java @@ -1,7 +1,5 @@ package com.algolia.model; -import com.algolia.model.BaseIndexSettings; -import com.algolia.model.IndexSettingsAsSearchParams; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -11,15 +9,12 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -/** - * The Algolia index settings. - */ +/** The Algolia index settings. */ @ApiModel(description = "The Algolia index settings.") public class IndexSettings { @@ -190,9 +185,7 @@ public class IndexSettings { @SerializedName(SERIALIZED_NAME_MIN_WORD_SIZEFOR2_TYPOS) private Integer minWordSizefor2Typos = 8; - /** - * Controls whether typo tolerance is enabled and how it is applied. - */ + /** Controls whether typo tolerance is enabled and how it is applied. */ @JsonAdapter(TypoToleranceEnum.Adapter.class) public enum TypoToleranceEnum { TRUE("true"), @@ -308,9 +301,7 @@ public TypoToleranceEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ENABLE_PERSONALIZATION) private Boolean enablePersonalization = false; - /** - * Controls if and how query words are interpreted as prefixes. - */ + /** Controls if and how query words are interpreted as prefixes. */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { PREFIXLAST("prefixLast"), @@ -367,9 +358,7 @@ public QueryTypeEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_QUERY_TYPE) private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; - /** - * Selects a strategy to remove words from the query when it doesn’t match any hits. - */ + /** Selects a strategy to remove words from the query when it doesn’t match any hits. */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), @@ -447,9 +436,7 @@ public RemoveWordsIfNoResultsEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DISABLE_EXACT_ON_ATTRIBUTES) private List disableExactOnAttributes = null; - /** - * Controls how the exact ranking criterion is computed when the query contains only one word. - */ + /** Controls how the exact ranking criterion is computed when the query contains only one word. */ @JsonAdapter(ExactOnSingleWordQueryEnum.Adapter.class) public enum ExactOnSingleWordQueryEnum { ATTRIBUTE("attribute"), @@ -509,9 +496,7 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) private ExactOnSingleWordQueryEnum exactOnSingleWordQuery = ExactOnSingleWordQueryEnum.ATTRIBUTE; - /** - * Gets or Sets alternativesAsExact - */ + /** Gets or Sets alternativesAsExact */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { IGNOREPLURALS("ignorePlurals"), @@ -569,9 +554,7 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ALTERNATIVES_AS_EXACT) private List alternativesAsExact = null; - /** - * Gets or Sets advancedSyntaxFeatures - */ + /** Gets or Sets advancedSyntaxFeatures */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { EXACTPHRASE("exactPhrase"), @@ -686,8 +669,9 @@ public IndexSettings addReplicasItem(String replicasItem) { /** * Creates replicas, exact copies of an index. + * * @return replicas - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Creates replicas, exact copies of an index.") public List getReplicas() { @@ -705,8 +689,9 @@ public IndexSettings paginationLimitedTo(Integer paginationLimitedTo) { /** * Set the maximum number of hits accessible via pagination. + * * @return paginationLimitedTo - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Set the maximum number of hits accessible via pagination." @@ -738,8 +723,9 @@ public IndexSettings addDisableTypoToleranceOnWordsItem( /** * A list of words for which you want to turn off typo tolerance. + * * @return disableTypoToleranceOnWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words for which you want to turn off typo tolerance." @@ -773,8 +759,9 @@ public IndexSettings addAttributesToTransliterateItem( /** * Specify on which attributes to apply transliteration. + * * @return attributesToTransliterate - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Specify on which attributes to apply transliteration." @@ -806,8 +793,9 @@ public IndexSettings addCamelCaseAttributesItem( /** * List of attributes on which to do a decomposition of camel case words. + * * @return camelCaseAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which to do a decomposition of camel case words." @@ -839,12 +827,15 @@ public IndexSettings putDecompoundedAttributesItem( } /** - * Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding. + * Specify on which attributes in your index Algolia should apply word segmentation, also known as + * decompounding. + * * @return decompoundedAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding." + value = "Specify on which attributes in your index Algolia should apply word segmentation, also" + + " known as decompounding." ) public Map getDecompoundedAttributes() { return decompoundedAttributes; @@ -870,12 +861,15 @@ public IndexSettings addIndexLanguagesItem(String indexLanguagesItem) { } /** - * Sets the languages at the index level for language-specific processing such as tokenization and normalization. + * Sets the languages at the index level for language-specific processing such as tokenization and + * normalization. + * * @return indexLanguages - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages at the index level for language-specific processing such as tokenization and normalization." + value = "Sets the languages at the index level for language-specific processing such as" + + " tokenization and normalization." ) public List getIndexLanguages() { return indexLanguages; @@ -891,12 +885,15 @@ public IndexSettings filterPromotes(Boolean filterPromotes) { } /** - * Whether promoted results should match the filters of the current search, except for geographic filters. + * Whether promoted results should match the filters of the current search, except for geographic + * filters. + * * @return filterPromotes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether promoted results should match the filters of the current search, except for geographic filters." + value = "Whether promoted results should match the filters of the current search, except for" + + " geographic filters." ) public Boolean getFilterPromotes() { return filterPromotes; @@ -925,8 +922,9 @@ public IndexSettings addDisablePrefixOnAttributesItem( /** * List of attributes on which you want to disable prefix matching. + * * @return disablePrefixOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable prefix matching." @@ -950,8 +948,9 @@ public IndexSettings allowCompressionOfIntegerArray( /** * Enables compression of large integer arrays. + * * @return allowCompressionOfIntegerArray - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables compression of large integer arrays.") public Boolean getAllowCompressionOfIntegerArray() { @@ -983,8 +982,9 @@ public IndexSettings addNumericAttributesForFilteringItem( /** * List of numeric attributes that can be used as numerical filters. + * * @return numericAttributesForFiltering - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of numeric attributes that can be used as numerical filters." @@ -1014,8 +1014,9 @@ public IndexSettings putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. + * * @return userData - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -1043,8 +1044,9 @@ public IndexSettings addSearchableAttributesItem( /** * The complete list of attributes used for searching. + * * @return searchableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes used for searching." @@ -1076,8 +1078,9 @@ public IndexSettings addAttributesForFacetingItem( /** * The complete list of attributes that will be used for faceting. + * * @return attributesForFaceting - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes that will be used for faceting." @@ -1109,8 +1112,9 @@ public IndexSettings addUnretrievableAttributesItem( /** * List of attributes that can’t be retrieved at query time. + * * @return unretrievableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes that can’t be retrieved at query time." @@ -1140,8 +1144,9 @@ public IndexSettings addAttributesToRetrieveItem( /** * This parameter controls which attributes to retrieve and which not to retrieve. + * * @return attributesToRetrieve - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "This parameter controls which attributes to retrieve and which not to retrieve." @@ -1173,8 +1178,9 @@ public IndexSettings addRestrictSearchableAttributesItem( /** * Restricts a given query to look in only a subset of your searchable attributes. + * * @return restrictSearchableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Restricts a given query to look in only a subset of your searchable attributes." @@ -1204,8 +1210,9 @@ public IndexSettings addRankingItem(String rankingItem) { /** * Controls how Algolia should sort your results. + * * @return ranking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how Algolia should sort your results.") public List getRanking() { @@ -1231,8 +1238,9 @@ public IndexSettings addCustomRankingItem(String customRankingItem) { /** * Specifies the custom ranking criterion. + * * @return customRanking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the custom ranking criterion.") public List getCustomRanking() { @@ -1249,12 +1257,15 @@ public IndexSettings relevancyStrictness(Integer relevancyStrictness) { } /** - * Controls the relevancy threshold below which less relevant results aren’t included in the results. + * Controls the relevancy threshold below which less relevant results aren’t included in the + * results. + * * @return relevancyStrictness - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls the relevancy threshold below which less relevant results aren’t included in the results." + value = "Controls the relevancy threshold below which less relevant results aren’t included in" + + " the results." ) public Integer getRelevancyStrictness() { return relevancyStrictness; @@ -1283,8 +1294,9 @@ public IndexSettings addAttributesToHighlightItem( /** * List of attributes to highlight. + * * @return attributesToHighlight - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "List of attributes to highlight.") public List getAttributesToHighlight() { @@ -1312,8 +1324,9 @@ public IndexSettings addAttributesToSnippetItem( /** * List of attributes to snippet, with an optional maximum number of words to snippet. + * * @return attributesToSnippet - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes to snippet, with an optional maximum number of words to snippet." @@ -1333,11 +1346,13 @@ public IndexSettings highlightPreTag(String highlightPreTag) { /** * The HTML string to insert before the highlighted parts in all highlight and snippet results. + * * @return highlightPreTag - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert before the highlighted parts in all highlight and snippet results." + value = "The HTML string to insert before the highlighted parts in all highlight and snippet" + + " results." ) public String getHighlightPreTag() { return highlightPreTag; @@ -1354,11 +1369,13 @@ public IndexSettings highlightPostTag(String highlightPostTag) { /** * The HTML string to insert after the highlighted parts in all highlight and snippet results. + * * @return highlightPostTag - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert after the highlighted parts in all highlight and snippet results." + value = "The HTML string to insert after the highlighted parts in all highlight and snippet" + + " results." ) public String getHighlightPostTag() { return highlightPostTag; @@ -1375,8 +1392,9 @@ public IndexSettings snippetEllipsisText(String snippetEllipsisText) { /** * String used as an ellipsis indicator when a snippet is truncated. + * * @return snippetEllipsisText - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "String used as an ellipsis indicator when a snippet is truncated." @@ -1398,8 +1416,9 @@ public IndexSettings restrictHighlightAndSnippetArrays( /** * Restrict highlighting and snippeting to items that matched the query. + * * @return restrictHighlightAndSnippetArrays - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Restrict highlighting and snippeting to items that matched the query." @@ -1421,8 +1440,9 @@ public IndexSettings hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. + * * @return hitsPerPage - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -1439,12 +1459,15 @@ public IndexSettings minWordSizefor1Typo(Integer minWordSizefor1Typo) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 1 typo. + * Minimum number of characters a word in the query string must contain to accept matches with 1 + * typo. + * * @return minWordSizefor1Typo - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches with 1 typo." + value = "Minimum number of characters a word in the query string must contain to accept matches" + + " with 1 typo." ) public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; @@ -1460,12 +1483,15 @@ public IndexSettings minWordSizefor2Typos(Integer minWordSizefor2Typos) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 2 typos. + * Minimum number of characters a word in the query string must contain to accept matches with 2 + * typos. + * * @return minWordSizefor2Typos - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches with 2 typos." + value = "Minimum number of characters a word in the query string must contain to accept matches" + + " with 2 typos." ) public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; @@ -1482,8 +1508,9 @@ public IndexSettings typoTolerance(TypoToleranceEnum typoTolerance) { /** * Controls whether typo tolerance is enabled and how it is applied. + * * @return typoTolerance - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Controls whether typo tolerance is enabled and how it is applied." @@ -1505,8 +1532,9 @@ public IndexSettings allowTyposOnNumericTokens( /** * Whether to allow typos on numbers (“numeric tokens”) in the query string. + * * @return allowTyposOnNumericTokens - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to allow typos on numbers (“numeric tokens”) in the query string." @@ -1540,8 +1568,9 @@ public IndexSettings addDisableTypoToleranceOnAttributesItem( /** * List of attributes on which you want to disable typo tolerance. + * * @return disableTypoToleranceOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable typo tolerance." @@ -1563,8 +1592,9 @@ public IndexSettings separatorsToIndex(String separatorsToIndex) { /** * Control which separators are indexed. + * * @return separatorsToIndex - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Control which separators are indexed.") public String getSeparatorsToIndex() { @@ -1582,8 +1612,9 @@ public IndexSettings ignorePlurals(String ignorePlurals) { /** * Treats singular, plurals, and other forms of declensions as matching terms. + * * @return ignorePlurals - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Treats singular, plurals, and other forms of declensions as matching terms." @@ -1603,8 +1634,9 @@ public IndexSettings removeStopWords(String removeStopWords) { /** * Removes stop (common) words from the query before executing it. + * * @return removeStopWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Removes stop (common) words from the query before executing it." @@ -1626,8 +1658,9 @@ public IndexSettings keepDiacriticsOnCharacters( /** * List of characters that the engine shouldn’t automatically normalize. + * * @return keepDiacriticsOnCharacters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of characters that the engine shouldn’t automatically normalize." @@ -1654,12 +1687,15 @@ public IndexSettings addQueryLanguagesItem(String queryLanguagesItem) { } /** - * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection. + * Sets the languages to be used by language-specific settings and functionalities such as + * ignorePlurals, removeStopWords, and CJK word-detection. + * * @return queryLanguages - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection." + value = "Sets the languages to be used by language-specific settings and functionalities such as" + + " ignorePlurals, removeStopWords, and CJK word-detection." ) public List getQueryLanguages() { return queryLanguages; @@ -1676,8 +1712,9 @@ public IndexSettings decompoundQuery(Boolean decompoundQuery) { /** * Splits compound words into their composing atoms in the query. + * * @return decompoundQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Splits compound words into their composing atoms in the query." @@ -1697,8 +1734,9 @@ public IndexSettings enableRules(Boolean enableRules) { /** * Whether Rules should be globally enabled. + * * @return enableRules - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Whether Rules should be globally enabled.") public Boolean getEnableRules() { @@ -1716,8 +1754,9 @@ public IndexSettings enablePersonalization(Boolean enablePersonalization) { /** * Enable the Personalization feature. + * * @return enablePersonalization - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Personalization feature.") public Boolean getEnablePersonalization() { @@ -1735,8 +1774,9 @@ public IndexSettings queryType(QueryTypeEnum queryType) { /** * Controls if and how query words are interpreted as prefixes. + * * @return queryType - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Controls if and how query words are interpreted as prefixes." @@ -1758,8 +1798,9 @@ public IndexSettings removeWordsIfNoResults( /** * Selects a strategy to remove words from the query when it doesn’t match any hits. + * * @return removeWordsIfNoResults - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Selects a strategy to remove words from the query when it doesn’t match any hits." @@ -1781,8 +1822,9 @@ public IndexSettings advancedSyntax(Boolean advancedSyntax) { /** * Enables the advanced query syntax. + * * @return advancedSyntax - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables the advanced query syntax.") public Boolean getAdvancedSyntax() { @@ -1808,8 +1850,9 @@ public IndexSettings addOptionalWordsItem(String optionalWordsItem) { /** * A list of words that should be considered as optional when found in the query. + * * @return optionalWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words that should be considered as optional when found in the query." @@ -1841,8 +1884,9 @@ public IndexSettings addDisableExactOnAttributesItem( /** * List of attributes on which you want to disable the exact ranking criterion. + * * @return disableExactOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable the exact ranking criterion." @@ -1866,11 +1910,13 @@ public IndexSettings exactOnSingleWordQuery( /** * Controls how the exact ranking criterion is computed when the query contains only one word. + * * @return exactOnSingleWordQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls how the exact ranking criterion is computed when the query contains only one word." + value = "Controls how the exact ranking criterion is computed when the query contains only one" + + " word." ) public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; @@ -1901,11 +1947,13 @@ public IndexSettings addAlternativesAsExactItem( /** * List of alternatives that should be considered an exact match by the exact ranking criterion. + * * @return alternativesAsExact - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "List of alternatives that should be considered an exact match by the exact ranking criterion." + value = "List of alternatives that should be considered an exact match by the exact ranking" + + " criterion." ) public List getAlternativesAsExact() { return alternativesAsExact; @@ -1935,12 +1983,15 @@ public IndexSettings addAdvancedSyntaxFeaturesItem( } /** - * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled. + * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is + * enabled. + * * @return advancedSyntaxFeatures - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled." + value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is" + + " enabled." ) public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; @@ -1958,11 +2009,10 @@ public IndexSettings distinct(Integer distinct) { } /** - * Enables de-duplication or grouping of results. - * minimum: 0 - * maximum: 4 + * Enables de-duplication or grouping of results. minimum: 0 maximum: 4 + * * @return distinct - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables de-duplication or grouping of results.") public Integer getDistinct() { @@ -1980,8 +2030,9 @@ public IndexSettings synonyms(Boolean synonyms) { /** * Whether to take into account an index’s synonyms for a particular search. + * * @return synonyms - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to take into account an index’s synonyms for a particular search." @@ -2002,12 +2053,15 @@ public IndexSettings replaceSynonymsInHighlight( } /** - * Whether to highlight and snippet the original word that matches the synonym or the synonym itself. + * Whether to highlight and snippet the original word that matches the synonym or the synonym + * itself. + * * @return replaceSynonymsInHighlight - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether to highlight and snippet the original word that matches the synonym or the synonym itself." + value = "Whether to highlight and snippet the original word that matches the synonym or the" + + " synonym itself." ) public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; @@ -2025,11 +2079,10 @@ public IndexSettings minProximity(Integer minProximity) { } /** - * Precision of the proximity ranking criterion. - * minimum: 1 - * maximum: 7 + * Precision of the proximity ranking criterion. minimum: 1 maximum: 7 + * * @return minProximity - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Precision of the proximity ranking criterion.") public Integer getMinProximity() { @@ -2054,12 +2107,15 @@ public IndexSettings addResponseFieldsItem(String responseFieldsItem) { } /** - * Choose which fields to return in the API response. This parameters applies to search and browse queries. + * Choose which fields to return in the API response. This parameters applies to search and browse + * queries. + * * @return responseFields - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Choose which fields to return in the API response. This parameters applies to search and browse queries." + value = "Choose which fields to return in the API response. This parameters applies to search and" + + " browse queries." ) public List getResponseFields() { return responseFields; @@ -2076,8 +2132,9 @@ public IndexSettings maxFacetHits(Integer maxFacetHits) { /** * Maximum number of facet hits to return during a search for facet values. + * * @return maxFacetHits - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet hits to return during a search for facet values." @@ -2099,12 +2156,15 @@ public IndexSettings attributeCriteriaComputedByMinProximity( } /** - * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage. + * When attribute is ranked above proximity in your ranking formula, proximity is used to select + * which searchable attribute is matched in the attribute ranking stage. + * * @return attributeCriteriaComputedByMinProximity - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage." + value = "When attribute is ranked above proximity in your ranking formula, proximity is used to" + + " select which searchable attribute is matched in the attribute ranking stage." ) public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; @@ -2123,12 +2183,15 @@ public IndexSettings renderingContent(Object renderingContent) { } /** - * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules. + * Content defining how the search interface should be rendered. Can be set via the settings for a + * default value and can be overridden via rules. + * * @return renderingContent - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules." + value = "Content defining how the search interface should be rendered. Can be set via the" + + " settings for a default value and can be overridden via rules." ) public Object getRenderingContent() { return renderingContent; @@ -2580,8 +2643,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java index e7f52143788..88e9177b84f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java @@ -5,18 +5,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * IndexSettingsAsSearchParams - */ - +/** IndexSettingsAsSearchParams */ public class IndexSettingsAsSearchParams { public static final String SERIALIZED_NAME_SEARCHABLE_ATTRIBUTES = @@ -118,9 +113,7 @@ public class IndexSettingsAsSearchParams { @SerializedName(SERIALIZED_NAME_MIN_WORD_SIZEFOR2_TYPOS) private Integer minWordSizefor2Typos = 8; - /** - * Controls whether typo tolerance is enabled and how it is applied. - */ + /** Controls whether typo tolerance is enabled and how it is applied. */ @JsonAdapter(TypoToleranceEnum.Adapter.class) public enum TypoToleranceEnum { TRUE("true"), @@ -236,9 +229,7 @@ public TypoToleranceEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ENABLE_PERSONALIZATION) private Boolean enablePersonalization = false; - /** - * Controls if and how query words are interpreted as prefixes. - */ + /** Controls if and how query words are interpreted as prefixes. */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { PREFIXLAST("prefixLast"), @@ -295,9 +286,7 @@ public QueryTypeEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_QUERY_TYPE) private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; - /** - * Selects a strategy to remove words from the query when it doesn’t match any hits. - */ + /** Selects a strategy to remove words from the query when it doesn’t match any hits. */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), @@ -375,9 +364,7 @@ public RemoveWordsIfNoResultsEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DISABLE_EXACT_ON_ATTRIBUTES) private List disableExactOnAttributes = null; - /** - * Controls how the exact ranking criterion is computed when the query contains only one word. - */ + /** Controls how the exact ranking criterion is computed when the query contains only one word. */ @JsonAdapter(ExactOnSingleWordQueryEnum.Adapter.class) public enum ExactOnSingleWordQueryEnum { ATTRIBUTE("attribute"), @@ -437,9 +424,7 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) private ExactOnSingleWordQueryEnum exactOnSingleWordQuery = ExactOnSingleWordQueryEnum.ATTRIBUTE; - /** - * Gets or Sets alternativesAsExact - */ + /** Gets or Sets alternativesAsExact */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { IGNOREPLURALS("ignorePlurals"), @@ -497,9 +482,7 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ALTERNATIVES_AS_EXACT) private List alternativesAsExact = null; - /** - * Gets or Sets advancedSyntaxFeatures - */ + /** Gets or Sets advancedSyntaxFeatures */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { EXACTPHRASE("exactPhrase"), @@ -618,8 +601,9 @@ public IndexSettingsAsSearchParams addSearchableAttributesItem( /** * The complete list of attributes used for searching. + * * @return searchableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes used for searching." @@ -651,8 +635,9 @@ public IndexSettingsAsSearchParams addAttributesForFacetingItem( /** * The complete list of attributes that will be used for faceting. + * * @return attributesForFaceting - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes that will be used for faceting." @@ -684,8 +669,9 @@ public IndexSettingsAsSearchParams addUnretrievableAttributesItem( /** * List of attributes that can’t be retrieved at query time. + * * @return unretrievableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes that can’t be retrieved at query time." @@ -717,8 +703,9 @@ public IndexSettingsAsSearchParams addAttributesToRetrieveItem( /** * This parameter controls which attributes to retrieve and which not to retrieve. + * * @return attributesToRetrieve - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "This parameter controls which attributes to retrieve and which not to retrieve." @@ -750,8 +737,9 @@ public IndexSettingsAsSearchParams addRestrictSearchableAttributesItem( /** * Restricts a given query to look in only a subset of your searchable attributes. + * * @return restrictSearchableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Restricts a given query to look in only a subset of your searchable attributes." @@ -781,8 +769,9 @@ public IndexSettingsAsSearchParams addRankingItem(String rankingItem) { /** * Controls how Algolia should sort your results. + * * @return ranking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how Algolia should sort your results.") public List getRanking() { @@ -810,8 +799,9 @@ public IndexSettingsAsSearchParams addCustomRankingItem( /** * Specifies the custom ranking criterion. + * * @return customRanking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the custom ranking criterion.") public List getCustomRanking() { @@ -830,12 +820,15 @@ public IndexSettingsAsSearchParams relevancyStrictness( } /** - * Controls the relevancy threshold below which less relevant results aren’t included in the results. + * Controls the relevancy threshold below which less relevant results aren’t included in the + * results. + * * @return relevancyStrictness - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls the relevancy threshold below which less relevant results aren’t included in the results." + value = "Controls the relevancy threshold below which less relevant results aren’t included in" + + " the results." ) public Integer getRelevancyStrictness() { return relevancyStrictness; @@ -864,8 +857,9 @@ public IndexSettingsAsSearchParams addAttributesToHighlightItem( /** * List of attributes to highlight. + * * @return attributesToHighlight - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "List of attributes to highlight.") public List getAttributesToHighlight() { @@ -895,8 +889,9 @@ public IndexSettingsAsSearchParams addAttributesToSnippetItem( /** * List of attributes to snippet, with an optional maximum number of words to snippet. + * * @return attributesToSnippet - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes to snippet, with an optional maximum number of words to snippet." @@ -916,11 +911,13 @@ public IndexSettingsAsSearchParams highlightPreTag(String highlightPreTag) { /** * The HTML string to insert before the highlighted parts in all highlight and snippet results. + * * @return highlightPreTag - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert before the highlighted parts in all highlight and snippet results." + value = "The HTML string to insert before the highlighted parts in all highlight and snippet" + + " results." ) public String getHighlightPreTag() { return highlightPreTag; @@ -937,11 +934,13 @@ public IndexSettingsAsSearchParams highlightPostTag(String highlightPostTag) { /** * The HTML string to insert after the highlighted parts in all highlight and snippet results. + * * @return highlightPostTag - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert after the highlighted parts in all highlight and snippet results." + value = "The HTML string to insert after the highlighted parts in all highlight and snippet" + + " results." ) public String getHighlightPostTag() { return highlightPostTag; @@ -960,8 +959,9 @@ public IndexSettingsAsSearchParams snippetEllipsisText( /** * String used as an ellipsis indicator when a snippet is truncated. + * * @return snippetEllipsisText - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "String used as an ellipsis indicator when a snippet is truncated." @@ -983,8 +983,9 @@ public IndexSettingsAsSearchParams restrictHighlightAndSnippetArrays( /** * Restrict highlighting and snippeting to items that matched the query. + * * @return restrictHighlightAndSnippetArrays - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Restrict highlighting and snippeting to items that matched the query." @@ -1006,8 +1007,9 @@ public IndexSettingsAsSearchParams hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. + * * @return hitsPerPage - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -1026,12 +1028,15 @@ public IndexSettingsAsSearchParams minWordSizefor1Typo( } /** - * Minimum number of characters a word in the query string must contain to accept matches with 1 typo. + * Minimum number of characters a word in the query string must contain to accept matches with 1 + * typo. + * * @return minWordSizefor1Typo - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches with 1 typo." + value = "Minimum number of characters a word in the query string must contain to accept matches" + + " with 1 typo." ) public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; @@ -1049,12 +1054,15 @@ public IndexSettingsAsSearchParams minWordSizefor2Typos( } /** - * Minimum number of characters a word in the query string must contain to accept matches with 2 typos. + * Minimum number of characters a word in the query string must contain to accept matches with 2 + * typos. + * * @return minWordSizefor2Typos - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches with 2 typos." + value = "Minimum number of characters a word in the query string must contain to accept matches" + + " with 2 typos." ) public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; @@ -1073,8 +1081,9 @@ public IndexSettingsAsSearchParams typoTolerance( /** * Controls whether typo tolerance is enabled and how it is applied. + * * @return typoTolerance - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Controls whether typo tolerance is enabled and how it is applied." @@ -1096,8 +1105,9 @@ public IndexSettingsAsSearchParams allowTyposOnNumericTokens( /** * Whether to allow typos on numbers (“numeric tokens”) in the query string. + * * @return allowTyposOnNumericTokens - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to allow typos on numbers (“numeric tokens”) in the query string." @@ -1131,8 +1141,9 @@ public IndexSettingsAsSearchParams addDisableTypoToleranceOnAttributesItem( /** * List of attributes on which you want to disable typo tolerance. + * * @return disableTypoToleranceOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable typo tolerance." @@ -1156,8 +1167,9 @@ public IndexSettingsAsSearchParams separatorsToIndex( /** * Control which separators are indexed. + * * @return separatorsToIndex - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Control which separators are indexed.") public String getSeparatorsToIndex() { @@ -1175,8 +1187,9 @@ public IndexSettingsAsSearchParams ignorePlurals(String ignorePlurals) { /** * Treats singular, plurals, and other forms of declensions as matching terms. + * * @return ignorePlurals - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Treats singular, plurals, and other forms of declensions as matching terms." @@ -1196,8 +1209,9 @@ public IndexSettingsAsSearchParams removeStopWords(String removeStopWords) { /** * Removes stop (common) words from the query before executing it. + * * @return removeStopWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Removes stop (common) words from the query before executing it." @@ -1219,8 +1233,9 @@ public IndexSettingsAsSearchParams keepDiacriticsOnCharacters( /** * List of characters that the engine shouldn’t automatically normalize. + * * @return keepDiacriticsOnCharacters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of characters that the engine shouldn’t automatically normalize." @@ -1251,12 +1266,15 @@ public IndexSettingsAsSearchParams addQueryLanguagesItem( } /** - * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection. + * Sets the languages to be used by language-specific settings and functionalities such as + * ignorePlurals, removeStopWords, and CJK word-detection. + * * @return queryLanguages - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection." + value = "Sets the languages to be used by language-specific settings and functionalities such as" + + " ignorePlurals, removeStopWords, and CJK word-detection." ) public List getQueryLanguages() { return queryLanguages; @@ -1273,8 +1291,9 @@ public IndexSettingsAsSearchParams decompoundQuery(Boolean decompoundQuery) { /** * Splits compound words into their composing atoms in the query. + * * @return decompoundQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Splits compound words into their composing atoms in the query." @@ -1294,8 +1313,9 @@ public IndexSettingsAsSearchParams enableRules(Boolean enableRules) { /** * Whether Rules should be globally enabled. + * * @return enableRules - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Whether Rules should be globally enabled.") public Boolean getEnableRules() { @@ -1315,8 +1335,9 @@ public IndexSettingsAsSearchParams enablePersonalization( /** * Enable the Personalization feature. + * * @return enablePersonalization - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Personalization feature.") public Boolean getEnablePersonalization() { @@ -1334,8 +1355,9 @@ public IndexSettingsAsSearchParams queryType(QueryTypeEnum queryType) { /** * Controls if and how query words are interpreted as prefixes. + * * @return queryType - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Controls if and how query words are interpreted as prefixes." @@ -1357,8 +1379,9 @@ public IndexSettingsAsSearchParams removeWordsIfNoResults( /** * Selects a strategy to remove words from the query when it doesn’t match any hits. + * * @return removeWordsIfNoResults - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Selects a strategy to remove words from the query when it doesn’t match any hits." @@ -1380,8 +1403,9 @@ public IndexSettingsAsSearchParams advancedSyntax(Boolean advancedSyntax) { /** * Enables the advanced query syntax. + * * @return advancedSyntax - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables the advanced query syntax.") public Boolean getAdvancedSyntax() { @@ -1409,8 +1433,9 @@ public IndexSettingsAsSearchParams addOptionalWordsItem( /** * A list of words that should be considered as optional when found in the query. + * * @return optionalWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words that should be considered as optional when found in the query." @@ -1442,8 +1467,9 @@ public IndexSettingsAsSearchParams addDisableExactOnAttributesItem( /** * List of attributes on which you want to disable the exact ranking criterion. + * * @return disableExactOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable the exact ranking criterion." @@ -1467,11 +1493,13 @@ public IndexSettingsAsSearchParams exactOnSingleWordQuery( /** * Controls how the exact ranking criterion is computed when the query contains only one word. + * * @return exactOnSingleWordQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls how the exact ranking criterion is computed when the query contains only one word." + value = "Controls how the exact ranking criterion is computed when the query contains only one" + + " word." ) public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; @@ -1502,11 +1530,13 @@ public IndexSettingsAsSearchParams addAlternativesAsExactItem( /** * List of alternatives that should be considered an exact match by the exact ranking criterion. + * * @return alternativesAsExact - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "List of alternatives that should be considered an exact match by the exact ranking criterion." + value = "List of alternatives that should be considered an exact match by the exact ranking" + + " criterion." ) public List getAlternativesAsExact() { return alternativesAsExact; @@ -1536,12 +1566,15 @@ public IndexSettingsAsSearchParams addAdvancedSyntaxFeaturesItem( } /** - * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled. + * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is + * enabled. + * * @return advancedSyntaxFeatures - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled." + value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is" + + " enabled." ) public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; @@ -1559,11 +1592,10 @@ public IndexSettingsAsSearchParams distinct(Integer distinct) { } /** - * Enables de-duplication or grouping of results. - * minimum: 0 - * maximum: 4 + * Enables de-duplication or grouping of results. minimum: 0 maximum: 4 + * * @return distinct - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables de-duplication or grouping of results.") public Integer getDistinct() { @@ -1581,8 +1613,9 @@ public IndexSettingsAsSearchParams synonyms(Boolean synonyms) { /** * Whether to take into account an index’s synonyms for a particular search. + * * @return synonyms - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to take into account an index’s synonyms for a particular search." @@ -1603,12 +1636,15 @@ public IndexSettingsAsSearchParams replaceSynonymsInHighlight( } /** - * Whether to highlight and snippet the original word that matches the synonym or the synonym itself. + * Whether to highlight and snippet the original word that matches the synonym or the synonym + * itself. + * * @return replaceSynonymsInHighlight - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether to highlight and snippet the original word that matches the synonym or the synonym itself." + value = "Whether to highlight and snippet the original word that matches the synonym or the" + + " synonym itself." ) public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; @@ -1626,11 +1662,10 @@ public IndexSettingsAsSearchParams minProximity(Integer minProximity) { } /** - * Precision of the proximity ranking criterion. - * minimum: 1 - * maximum: 7 + * Precision of the proximity ranking criterion. minimum: 1 maximum: 7 + * * @return minProximity - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Precision of the proximity ranking criterion.") public Integer getMinProximity() { @@ -1659,12 +1694,15 @@ public IndexSettingsAsSearchParams addResponseFieldsItem( } /** - * Choose which fields to return in the API response. This parameters applies to search and browse queries. + * Choose which fields to return in the API response. This parameters applies to search and browse + * queries. + * * @return responseFields - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Choose which fields to return in the API response. This parameters applies to search and browse queries." + value = "Choose which fields to return in the API response. This parameters applies to search and" + + " browse queries." ) public List getResponseFields() { return responseFields; @@ -1681,8 +1719,9 @@ public IndexSettingsAsSearchParams maxFacetHits(Integer maxFacetHits) { /** * Maximum number of facet hits to return during a search for facet values. + * * @return maxFacetHits - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet hits to return during a search for facet values." @@ -1704,12 +1743,15 @@ public IndexSettingsAsSearchParams attributeCriteriaComputedByMinProximity( } /** - * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage. + * When attribute is ranked above proximity in your ranking formula, proximity is used to select + * which searchable attribute is matched in the attribute ranking stage. + * * @return attributeCriteriaComputedByMinProximity - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage." + value = "When attribute is ranked above proximity in your ranking formula, proximity is used to" + + " select which searchable attribute is matched in the attribute ranking stage." ) public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; @@ -1728,12 +1770,15 @@ public IndexSettingsAsSearchParams renderingContent(Object renderingContent) { } /** - * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules. + * Content defining how the search interface should be rendered. Can be set via the settings for a + * default value and can be overridden via rules. + * * @return renderingContent - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules." + value = "Content defining how the search interface should be rendered. Can be set via the" + + " settings for a default value and can be overridden via rules." ) public Object getRenderingContent() { return renderingContent; @@ -2146,8 +2191,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java index 5eb87bda20b..465c39dc574 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/KeyObject.java @@ -1,30 +1,21 @@ package com.algolia.model; -import com.algolia.model.ApiKey; -import com.algolia.model.CreatedAtObject; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * KeyObject - */ - +/** KeyObject */ public class KeyObject { - /** - * Gets or Sets acl - */ + /** Gets or Sets acl */ @JsonAdapter(AclEnum.Adapter.class) public enum AclEnum { ADDOBJECT("addObject"), @@ -155,8 +146,9 @@ public KeyObject addAclItem(AclEnum aclItem) { /** * Set of permissions associated with the key. + * * @return acl - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -176,12 +168,15 @@ public KeyObject description(String description) { } /** - * A comment used to identify a key more easily in the dashboard. It is not interpreted by the API. + * A comment used to identify a key more easily in the dashboard. It is not interpreted by the + * API. + * * @return description - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by the API." + value = "A comment used to identify a key more easily in the dashboard. It is not interpreted by" + + " the API." ) public String getDescription() { return description; @@ -205,12 +200,15 @@ public KeyObject addIndexesItem(String indexesItem) { } /** - * Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed. + * Restrict this new API key to a list of indices or index patterns. If the list is empty, all + * indices are allowed. + * * @return indexes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed." + value = "Restrict this new API key to a list of indices or index patterns. If the list is empty," + + " all indices are allowed." ) public List getIndexes() { return indexes; @@ -227,11 +225,13 @@ public KeyObject maxHitsPerQuery(Integer maxHitsPerQuery) { /** * Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. + * * @return maxHitsPerQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced." + value = "Maximum number of hits this API key can retrieve in one query. If zero, no limit is" + + " enforced." ) public Integer getMaxHitsPerQuery() { return maxHitsPerQuery; @@ -248,8 +248,9 @@ public KeyObject maxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { /** * Maximum number of API calls per hour allowed from a given IP address or a user token. + * * @return maxQueriesPerIPPerHour - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of API calls per hour allowed from a given IP address or a user token." @@ -268,12 +269,15 @@ public KeyObject queryParameters(String queryParameters) { } /** - * URL-encoded query string. Force some query parameters to be applied for each query made with this API key. + * URL-encoded query string. Force some query parameters to be applied for each query made with + * this API key. + * * @return queryParameters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "URL-encoded query string. Force some query parameters to be applied for each query made with this API key." + value = "URL-encoded query string. Force some query parameters to be applied for each query made" + + " with this API key." ) public String getQueryParameters() { return queryParameters; @@ -298,11 +302,13 @@ public KeyObject addReferersItem(String referersItem) { /** * Restrict this new API key to specific referers. If empty or blank, defaults to all referers. + * * @return referers - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Restrict this new API key to specific referers. If empty or blank, defaults to all referers." + value = "Restrict this new API key to specific referers. If empty or blank, defaults to all" + + " referers." ) public List getReferers() { return referers; @@ -318,12 +324,15 @@ public KeyObject validity(Integer validity) { } /** - * Validity limit for this key in seconds. The key will automatically be removed after this period of time. + * Validity limit for this key in seconds. The key will automatically be removed after this period + * of time. + * * @return validity - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Validity limit for this key in seconds. The key will automatically be removed after this period of time." + value = "Validity limit for this key in seconds. The key will automatically be removed after this" + + " period of time." ) public Integer getValidity() { return validity; @@ -340,8 +349,9 @@ public KeyObject createdAt(OffsetDateTime createdAt) { /** * Date of creation (ISO-8601 format). + * * @return createdAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -428,8 +438,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java index d5bb7484855..c13fa9b9f20 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java @@ -1,23 +1,12 @@ package com.algolia.model; -import com.algolia.model.KeyObject; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * ListApiKeysResponse - */ - +/** ListApiKeysResponse */ public class ListApiKeysResponse { public static final String SERIALIZED_NAME_KEYS = "keys"; @@ -37,8 +26,9 @@ public ListApiKeysResponse addKeysItem(KeyObject keysItem) { /** * List of api keys. + * * @return keys - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "List of api keys.") public List getKeys() { @@ -76,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java index 6bccdbb84e3..5794a2f7955 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java @@ -1,21 +1,13 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * Array of clusters. - */ +/** Array of clusters. */ @ApiModel(description = "Array of clusters.") public class ListClustersResponse { @@ -36,8 +28,9 @@ public ListClustersResponse addTopUsersItem(String topUsersItem) { /** * Mapping of cluster names to top users. + * * @return topUsers - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -78,8 +71,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java index 739b5930570..201e4d3634d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java @@ -1,23 +1,12 @@ package com.algolia.model; -import com.algolia.model.Index; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * ListIndicesResponse - */ - +/** ListIndicesResponse */ public class ListIndicesResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -45,8 +34,9 @@ public ListIndicesResponse addItemsItem(Index itemsItem) { /** * List of the fetched indices. + * * @return items - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "List of the fetched indices.") public List getItems() { @@ -64,8 +54,9 @@ public ListIndicesResponse nbPages(Integer nbPages) { /** * Number of pages. + * * @return nbPages - **/ + */ @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "Number of pages.") public Integer getNbPages() { @@ -107,8 +98,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java index c1470a5e4dd..0ba70e52e29 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java @@ -1,22 +1,13 @@ package com.algolia.model; -import com.algolia.model.UserId; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * UserIDs data. - */ +/** UserIDs data. */ @ApiModel(description = "UserIDs data.") public class ListUserIdsResponse { @@ -37,8 +28,9 @@ public ListUserIdsResponse addUserIDsItem(UserId userIDsItem) { /** * List of userIDs. + * * @return userIDs - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "List of userIDs.") public List getUserIDs() { @@ -76,8 +68,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java index f8bf4c3152c..f7cd5d23f09 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java @@ -5,16 +5,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * MultipleQueries - */ - +/** MultipleQueries */ public class MultipleQueries { public static final String SERIALIZED_NAME_INDEX_NAME = "indexName"; @@ -27,9 +22,7 @@ public class MultipleQueries { @SerializedName(SERIALIZED_NAME_QUERY) private String query = ""; - /** - * Perform a search query with `default`, will search for facet values if `facet` is given. - */ + /** Perform a search query with `default`, will search for facet values if `facet` is given. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { DEFAULT("default"), @@ -100,8 +93,9 @@ public MultipleQueries indexName(String indexName) { /** * The Algolia index name. + * * @return indexName - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "products", @@ -123,8 +117,9 @@ public MultipleQueries query(String query) { /** * The text to search in the index. + * * @return query - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The text to search in the index.") public String getQuery() { @@ -142,11 +137,13 @@ public MultipleQueries type(TypeEnum type) { /** * Perform a search query with `default`, will search for facet values if `facet` is given. + * * @return type - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Perform a search query with `default`, will search for facet values if `facet` is given." + value = "Perform a search query with `default`, will search for facet values if `facet` is" + + " given." ) public TypeEnum getType() { return type; @@ -163,8 +160,9 @@ public MultipleQueries facet(String facet) { /** * The `facet` name. + * * @return facet - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The `facet` name.") public String getFacet() { @@ -182,8 +180,9 @@ public MultipleQueries params(String params) { /** * A query string of search parameters. + * * @return params - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "A query string of search parameters.") public String getParams() { @@ -234,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java index 1a59201ef64..f799ac1ac0f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesObject.java @@ -1,23 +1,17 @@ package com.algolia.model; -import com.algolia.model.MultipleQueries; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * MultipleQueriesObject - */ - +/** MultipleQueriesObject */ public class MultipleQueriesObject { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @@ -25,9 +19,7 @@ public class MultipleQueriesObject { @SerializedName(SERIALIZED_NAME_REQUESTS) private List requests = new ArrayList<>(); - /** - * Gets or Sets strategy - */ + /** Gets or Sets strategy */ @JsonAdapter(StrategyEnum.Adapter.class) public enum StrategyEnum { NONE("none"), @@ -93,8 +85,9 @@ public MultipleQueriesObject addRequestsItem(MultipleQueries requestsItem) { /** * Get requests + * * @return requests - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getRequests() { @@ -112,8 +105,9 @@ public MultipleQueriesObject strategy(StrategyEnum strategy) { /** * Get strategy + * * @return strategy - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public StrategyEnum getStrategy() { @@ -155,8 +149,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java index 6b012247f13..c9818f862b3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java @@ -1,23 +1,12 @@ package com.algolia.model; -import com.algolia.model.SearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * MultipleQueriesResponse - */ - +/** MultipleQueriesResponse */ public class MultipleQueriesResponse { public static final String SERIALIZED_NAME_RESULTS = "results"; @@ -40,8 +29,9 @@ public MultipleQueriesResponse addResultsItem(SearchResponse resultsItem) { /** * Get results + * * @return results - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getResults() { @@ -79,8 +69,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java index a1bb4263c45..269dc3d26d9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java @@ -5,24 +5,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Objects; -/** - * Operation - */ - +/** Operation */ public class Operation { - /** - * type of operation. - */ + /** type of operation. */ @JsonAdapter(ActionEnum.Adapter.class) public enum ActionEnum { ADDOBJECT("addObject"), @@ -98,8 +90,9 @@ public Operation action(ActionEnum action) { /** * type of operation. + * * @return action - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "type of operation.") public ActionEnum getAction() { @@ -125,8 +118,9 @@ public Operation putBodyItem(String key, Object bodyItem) { /** * arguments to the operation (depends on the type of the operation). + * * @return body - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "arguments to the operation (depends on the type of the operation)." @@ -170,8 +164,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java index 2fe028d0003..c7bc64aa54d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexObject.java @@ -5,23 +5,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * OperationIndexObject - */ - +/** OperationIndexObject */ public class OperationIndexObject { - /** - * Type of operation to perform (move or copy). - */ + /** Type of operation to perform (move or copy). */ @JsonAdapter(OperationEnum.Adapter.class) public enum OperationEnum { MOVE("move"), @@ -81,9 +74,7 @@ public OperationEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DESTINATION) private String destination; - /** - * Gets or Sets scope - */ + /** Gets or Sets scope */ @JsonAdapter(ScopeEnum.Adapter.class) public enum ScopeEnum { SETTINGS("settings"), @@ -146,8 +137,9 @@ public OperationIndexObject operation(OperationEnum operation) { /** * Type of operation to perform (move or copy). + * * @return operation - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -168,8 +160,9 @@ public OperationIndexObject destination(String destination) { /** * The Algolia index name. + * * @return destination - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "products", @@ -198,12 +191,15 @@ public OperationIndexObject addScopeItem(ScopeEnum scopeItem) { } /** - * Scope of the data to copy. When absent, a full copy is performed. When present, only the selected scopes are copied. + * Scope of the data to copy. When absent, a full copy is performed. When present, only the + * selected scopes are copied. + * * @return scope - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Scope of the data to copy. When absent, a full copy is performed. When present, only the selected scopes are copied." + value = "Scope of the data to copy. When absent, a full copy is performed. When present, only the" + + " selected scopes are copied." ) public List getScope() { return scope; @@ -252,8 +248,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java index 252b1afcfe3..0a4b6bb2528 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * OperationIndexResponse - */ - +/** OperationIndexResponse */ public class OperationIndexResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -35,8 +25,9 @@ public OperationIndexResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -54,8 +45,9 @@ public OperationIndexResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Date of last update (ISO-8601 format).") public OffsetDateTime getUpdatedAt() { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java index ac23c187db1..ca84786ff7f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java @@ -1,24 +1,12 @@ package com.algolia.model; -import com.algolia.model.RankingInfoMatchedGeoLocation; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Objects; -/** - * RankingInfo - */ - +/** RankingInfo */ public class RankingInfo { public static final String SERIALIZED_NAME_FILTERS = "filters"; @@ -86,8 +74,9 @@ public RankingInfo filters(Integer filters) { /** * This field is reserved for advanced usage. + * * @return filters - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "This field is reserved for advanced usage.") public Integer getFilters() { @@ -105,8 +94,9 @@ public RankingInfo firstMatchedWord(Integer firstMatchedWord) { /** * Position of the most important matched attribute in the attributes to index list. + * * @return firstMatchedWord - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Position of the most important matched attribute in the attributes to index list." @@ -125,12 +115,15 @@ public RankingInfo geoDistance(Integer geoDistance) { } /** - * Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters). + * Distance between the geo location in the search query and the best matching geo location in the + * record, divided by the geo precision (in meters). + * * @return geoDistance - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters)." + value = "Distance between the geo location in the search query and the best matching geo location" + + " in the record, divided by the geo precision (in meters)." ) public Integer getGeoDistance() { return geoDistance; @@ -147,8 +140,9 @@ public RankingInfo geoPrecision(Integer geoPrecision) { /** * Precision used when computing the geo distance, in meters. + * * @return geoPrecision - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Precision used when computing the geo distance, in meters." @@ -181,8 +175,9 @@ public RankingInfo putMatchedGeoLocationItem( /** * Get matchedGeoLocation + * * @return matchedGeoLocation - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public Map getMatchedGeoLocation() { @@ -202,8 +197,9 @@ public RankingInfo nbExactWords(Integer nbExactWords) { /** * Number of exactly matched words. + * * @return nbExactWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Number of exactly matched words.") public Integer getNbExactWords() { @@ -221,8 +217,9 @@ public RankingInfo nbTypos(Integer nbTypos) { /** * Number of typos encountered when matching the record. + * * @return nbTypos - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Number of typos encountered when matching the record." @@ -242,8 +239,9 @@ public RankingInfo promoted(Boolean promoted) { /** * Present and set to true if a Rule promoted the hit. + * * @return promoted - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Present and set to true if a Rule promoted the hit." @@ -262,12 +260,15 @@ public RankingInfo proximityDistance(Integer proximityDistance) { } /** - * When the query contains more than one word, the sum of the distances between matched words (in meters). + * When the query contains more than one word, the sum of the distances between matched words (in + * meters). + * * @return proximityDistance - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "When the query contains more than one word, the sum of the distances between matched words (in meters)." + value = "When the query contains more than one word, the sum of the distances between matched" + + " words (in meters)." ) public Integer getProximityDistance() { return proximityDistance; @@ -284,8 +285,9 @@ public RankingInfo userScore(Integer userScore) { /** * Custom ranking for the object, expressed as a single integer value. + * * @return userScore - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Custom ranking for the object, expressed as a single integer value." @@ -305,8 +307,9 @@ public RankingInfo word(Integer word) { /** * Number of matched words, including prefixes and typos. + * * @return word - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Number of matched words, including prefixes and typos." @@ -401,8 +404,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java index 9f3d772d029..9007f515dc4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java @@ -1,20 +1,10 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * RankingInfoMatchedGeoLocation - */ - +/** RankingInfoMatchedGeoLocation */ public class RankingInfoMatchedGeoLocation { public static final String SERIALIZED_NAME_LAT = "lat"; @@ -39,8 +29,9 @@ public RankingInfoMatchedGeoLocation lat(Double lat) { /** * Latitude of the matched location. + * * @return lat - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Latitude of the matched location.") public Double getLat() { @@ -58,8 +49,9 @@ public RankingInfoMatchedGeoLocation lng(Double lng) { /** * Longitude of the matched location. + * * @return lng - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Longitude of the matched location.") public Double getLng() { @@ -77,8 +69,9 @@ public RankingInfoMatchedGeoLocation distance(Integer distance) { /** * Distance between the matched location and the search location (in meters). + * * @return distance - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Distance between the matched location and the search location (in meters)." @@ -124,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java index cb40e9ec033..c077f4165f5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Record.java @@ -1,24 +1,12 @@ package com.algolia.model; -import com.algolia.model.HighlightResult; -import com.algolia.model.RankingInfo; -import com.algolia.model.SnippetResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.HashMap; -import java.util.Map; import java.util.Objects; -/** - * A single record. - */ +/** A single record. */ @ApiModel(description = "A single record.") public class Record extends HashMap { @@ -56,8 +44,9 @@ public Record objectID(String objectID) { /** * Unique identifier of the object. + * * @return objectID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Unique identifier of the object.") public String getObjectID() { @@ -75,8 +64,9 @@ public Record highlightResult(HighlightResult highlightResult) { /** * Get highlightResult + * * @return highlightResult - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public HighlightResult getHighlightResult() { @@ -94,8 +84,9 @@ public Record snippetResult(SnippetResult snippetResult) { /** * Get snippetResult + * * @return snippetResult - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public SnippetResult getSnippetResult() { @@ -113,8 +104,9 @@ public Record rankingInfo(RankingInfo rankingInfo) { /** * Get rankingInfo + * * @return rankingInfo - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public RankingInfo getRankingInfo() { @@ -132,8 +124,9 @@ public Record distinctSeqID(Integer distinctSeqID) { /** * Get distinctSeqID + * * @return distinctSeqID - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public Integer getDistinctSeqID() { @@ -202,8 +195,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java index 25b04fb457b..ada941fafaa 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * RemoveUserIdResponse - */ - +/** RemoveUserIdResponse */ public class RemoveUserIdResponse { public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; @@ -30,8 +20,9 @@ public RemoveUserIdResponse deletedAt(OffsetDateTime deletedAt) { /** * Date of deletion (ISO-8601 format). + * * @return deletedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java index d0286e423b9..5b1d6d9e798 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * ReplaceSourceResponse - */ - +/** ReplaceSourceResponse */ public class ReplaceSourceResponse { public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; @@ -30,8 +20,9 @@ public ReplaceSourceResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -75,8 +66,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java index 3208f2244a2..176038ae909 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java @@ -1,20 +1,10 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * SaveObjectResponse - */ - +/** SaveObjectResponse */ public class SaveObjectResponse { public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @@ -39,8 +29,9 @@ public SaveObjectResponse createdAt(String createdAt) { /** * Get createdAt + * * @return createdAt - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public String getCreatedAt() { @@ -58,8 +49,9 @@ public SaveObjectResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -77,8 +69,9 @@ public SaveObjectResponse objectID(String objectID) { /** * Unique identifier of the object. + * * @return objectID - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Unique identifier of the object.") public String getObjectID() { @@ -125,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java index ac8827cf7ad..47a5c4d96e9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * SaveSynonymResponse - */ - +/** SaveSynonymResponse */ public class SaveSynonymResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -40,8 +30,9 @@ public SaveSynonymResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -62,8 +53,9 @@ public SaveSynonymResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -84,8 +76,9 @@ public SaveSynonymResponse id(String id) { /** * objectID of the inserted object. + * * @return id - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "objectID of the inserted object.") public String getId() { @@ -132,8 +125,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java index 91fa20fb589..f6b8e6da208 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymsResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * SaveSynonymsResponse - */ - +/** SaveSynonymsResponse */ public class SaveSynonymsResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -35,8 +25,9 @@ public SaveSynonymsResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -57,8 +48,9 @@ public SaveSynonymsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -106,8 +98,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java index cfde66c968e..0901da6c69c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java @@ -1,23 +1,12 @@ package com.algolia.model; -import com.algolia.model.Record; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * SearchHits - */ - +/** SearchHits */ public class SearchHits { public static final String SERIALIZED_NAME_HITS = "hits"; @@ -40,8 +29,9 @@ public SearchHits addHitsItem(Record hitsItem) { /** * Get hits + * * @return hits - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getHits() { @@ -79,8 +69,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java index 8b70d9e4a30..81b9a491f54 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java @@ -1,14 +1,10 @@ package com.algolia.model; -import com.algolia.model.BaseSearchParams; -import com.algolia.model.IndexSettingsAsSearchParams; -import com.algolia.model.OneOfintegerstring; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; @@ -18,10 +14,7 @@ import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; -/** - * SearchParams - */ - +/** SearchParams */ public class SearchParams { public static final String SERIALIZED_NAME_QUERY = "query"; @@ -302,9 +295,7 @@ public class SearchParams { @SerializedName(SERIALIZED_NAME_MIN_WORD_SIZEFOR2_TYPOS) private Integer minWordSizefor2Typos = 8; - /** - * Controls whether typo tolerance is enabled and how it is applied. - */ + /** Controls whether typo tolerance is enabled and how it is applied. */ @JsonAdapter(TypoToleranceEnum.Adapter.class) public enum TypoToleranceEnum { TRUE("true"), @@ -420,9 +411,7 @@ public TypoToleranceEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ENABLE_PERSONALIZATION) private Boolean enablePersonalization = false; - /** - * Controls if and how query words are interpreted as prefixes. - */ + /** Controls if and how query words are interpreted as prefixes. */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { PREFIXLAST("prefixLast"), @@ -479,9 +468,7 @@ public QueryTypeEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_QUERY_TYPE) private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; - /** - * Selects a strategy to remove words from the query when it doesn’t match any hits. - */ + /** Selects a strategy to remove words from the query when it doesn’t match any hits. */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), @@ -559,9 +546,7 @@ public RemoveWordsIfNoResultsEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_DISABLE_EXACT_ON_ATTRIBUTES) private List disableExactOnAttributes = null; - /** - * Controls how the exact ranking criterion is computed when the query contains only one word. - */ + /** Controls how the exact ranking criterion is computed when the query contains only one word. */ @JsonAdapter(ExactOnSingleWordQueryEnum.Adapter.class) public enum ExactOnSingleWordQueryEnum { ATTRIBUTE("attribute"), @@ -621,9 +606,7 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) private ExactOnSingleWordQueryEnum exactOnSingleWordQuery = ExactOnSingleWordQueryEnum.ATTRIBUTE; - /** - * Gets or Sets alternativesAsExact - */ + /** Gets or Sets alternativesAsExact */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { IGNOREPLURALS("ignorePlurals"), @@ -681,9 +664,7 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) @SerializedName(SERIALIZED_NAME_ALTERNATIVES_AS_EXACT) private List alternativesAsExact = null; - /** - * Gets or Sets advancedSyntaxFeatures - */ + /** Gets or Sets advancedSyntaxFeatures */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { EXACTPHRASE("exactPhrase"), @@ -790,8 +771,9 @@ public SearchParams query(String query) { /** * The text to search in the index. + * * @return query - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -808,12 +790,15 @@ public SearchParams similarQuery(String similarQuery) { } /** - * Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results. + * Overrides the query parameter and performs a more generic search that can be used to find + * \"similar\" results. + * * @return similarQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results." + value = "Overrides the query parameter and performs a more generic search that can be used to" + + " find \"similar\" results." ) public String getSimilarQuery() { return similarQuery; @@ -830,8 +815,9 @@ public SearchParams filters(String filters) { /** * Filter the query with numeric, facet and/or tag filters. + * * @return filters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Filter the query with numeric, facet and/or tag filters." @@ -859,8 +845,9 @@ public SearchParams addFacetFiltersItem(String facetFiltersItem) { /** * Filter hits by facet value. + * * @return facetFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by facet value.") public List getFacetFilters() { @@ -885,12 +872,15 @@ public SearchParams addOptionalFiltersItem(String optionalFiltersItem) { } /** - * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter. + * Create filters for ranking purposes, where records that match the filter are ranked higher, or + * lower in the case of a negative optional filter. + * * @return optionalFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter." + value = "Create filters for ranking purposes, where records that match the filter are ranked" + + " higher, or lower in the case of a negative optional filter." ) public List getOptionalFilters() { return optionalFilters; @@ -915,8 +905,9 @@ public SearchParams addNumericFiltersItem(String numericFiltersItem) { /** * Filter on numeric attributes. + * * @return numericFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Filter on numeric attributes.") public List getNumericFilters() { @@ -942,8 +933,9 @@ public SearchParams addTagFiltersItem(String tagFiltersItem) { /** * Filter hits by tags. + * * @return tagFilters - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Filter hits by tags.") public List getTagFilters() { @@ -961,8 +953,9 @@ public SearchParams sumOrFiltersScores(Boolean sumOrFiltersScores) { /** * Determines how to calculate the total score for filtering. + * * @return sumOrFiltersScores - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Determines how to calculate the total score for filtering." @@ -990,8 +983,9 @@ public SearchParams addFacetsItem(String facetsItem) { /** * Retrieve facets and their facet values. + * * @return facets - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve facets and their facet values.") public List getFacets() { @@ -1009,8 +1003,9 @@ public SearchParams maxValuesPerFacet(Integer maxValuesPerFacet) { /** * Maximum number of facet values to return for each facet during a regular search. + * * @return maxValuesPerFacet - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet values to return for each facet during a regular search." @@ -1030,8 +1025,9 @@ public SearchParams facetingAfterDistinct(Boolean facetingAfterDistinct) { /** * Force faceting to be applied after de-duplication (via the Distinct setting). + * * @return facetingAfterDistinct - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Force faceting to be applied after de-duplication (via the Distinct setting)." @@ -1051,8 +1047,9 @@ public SearchParams sortFacetValuesBy(String sortFacetValuesBy) { /** * Controls how facet values are fetched. + * * @return sortFacetValuesBy - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how facet values are fetched.") public String getSortFacetValuesBy() { @@ -1070,8 +1067,9 @@ public SearchParams page(Integer page) { /** * Specify the page to retrieve. + * * @return page - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the page to retrieve.") public Integer getPage() { @@ -1089,8 +1087,9 @@ public SearchParams offset(Integer offset) { /** * Specify the offset of the first hit to return. + * * @return offset - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the offset of the first hit to return.") public Integer getOffset() { @@ -1107,11 +1106,10 @@ public SearchParams length(Integer length) { } /** - * Set the number of hits to retrieve (used only with offset). - * minimum: 1 - * maximum: 1000 + * Set the number of hits to retrieve (used only with offset). minimum: 1 maximum: 1000 + * * @return length - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Set the number of hits to retrieve (used only with offset)." @@ -1131,11 +1129,13 @@ public SearchParams aroundLatLng(String aroundLatLng) { /** * Search for entries around a central geolocation, enabling a geo search within a circular area. + * * @return aroundLatLng - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a central geolocation, enabling a geo search within a circular area." + value = "Search for entries around a central geolocation, enabling a geo search within a circular" + + " area." ) public String getAroundLatLng() { return aroundLatLng; @@ -1151,12 +1151,15 @@ public SearchParams aroundLatLngViaIP(Boolean aroundLatLngViaIP) { } /** - * Search for entries around a given location automatically computed from the requester’s IP address. + * Search for entries around a given location automatically computed from the requester’s IP + * address. + * * @return aroundLatLngViaIP - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Search for entries around a given location automatically computed from the requester’s IP address." + value = "Search for entries around a given location automatically computed from the requester’s" + + " IP address." ) public Boolean getAroundLatLngViaIP() { return aroundLatLngViaIP; @@ -1173,8 +1176,9 @@ public SearchParams aroundRadius(OneOfintegerstring aroundRadius) { /** * Define the maximum radius for a geo search (in meters). + * * @return aroundRadius - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Define the maximum radius for a geo search (in meters)." @@ -1194,11 +1198,13 @@ public SearchParams aroundPrecision(Integer aroundPrecision) { /** * Precision of geo search (in meters), to add grouping by geo location to the ranking formula. + * * @return aroundPrecision - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Precision of geo search (in meters), to add grouping by geo location to the ranking formula." + value = "Precision of geo search (in meters), to add grouping by geo location to the ranking" + + " formula." ) public Integer getAroundPrecision() { return aroundPrecision; @@ -1214,10 +1220,10 @@ public SearchParams minimumAroundRadius(Integer minimumAroundRadius) { } /** - * Minimum radius (in meters) used for a geo search when aroundRadius is not set. - * minimum: 1 + * Minimum radius (in meters) used for a geo search when aroundRadius is not set. minimum: 1 + * * @return minimumAroundRadius - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Minimum radius (in meters) used for a geo search when aroundRadius is not set." @@ -1247,8 +1253,9 @@ public SearchParams addInsideBoundingBoxItem( /** * Search inside a rectangular area (in geo coordinates). + * * @return insideBoundingBox - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Search inside a rectangular area (in geo coordinates)." @@ -1276,8 +1283,9 @@ public SearchParams addInsidePolygonItem(BigDecimal insidePolygonItem) { /** * Search inside a polygon (in geo coordinates). + * * @return insidePolygon - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Search inside a polygon (in geo coordinates).") public List getInsidePolygon() { @@ -1302,12 +1310,21 @@ public SearchParams addNaturalLanguagesItem(String naturalLanguagesItem) { } /** - * This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search. + * This parameter changes the default values of certain parameters and settings that work best for + * a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, + * analyticsTags and ruleContexts. These parameters and settings work well together when the query + * is formatted in natural language instead of keywords, for example when your user performs a + * voice search. + * * @return naturalLanguages - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search." + value = "This parameter changes the default values of certain parameters and settings that work" + + " best for a natural language query, such as ignorePlurals, removeStopWords," + + " removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and" + + " settings work well together when the query is formatted in natural language" + + " instead of keywords, for example when your user performs a voice search." ) public List getNaturalLanguages() { return naturalLanguages; @@ -1332,8 +1349,9 @@ public SearchParams addRuleContextsItem(String ruleContextsItem) { /** * Enables contextual rules. + * * @return ruleContexts - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables contextual rules.") public List getRuleContexts() { @@ -1351,8 +1369,9 @@ public SearchParams personalizationImpact(Integer personalizationImpact) { /** * Define the impact of the Personalization feature. + * * @return personalizationImpact - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Define the impact of the Personalization feature.") public Integer getPersonalizationImpact() { @@ -1370,8 +1389,9 @@ public SearchParams userToken(String userToken) { /** * Associates a certain user token with the current search. + * * @return userToken - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Associates a certain user token with the current search." @@ -1391,8 +1411,9 @@ public SearchParams getRankingInfo(Boolean getRankingInfo) { /** * Retrieve detailed ranking information. + * * @return getRankingInfo - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Retrieve detailed ranking information.") public Boolean getGetRankingInfo() { @@ -1410,8 +1431,9 @@ public SearchParams clickAnalytics(Boolean clickAnalytics) { /** * Enable the Click Analytics feature. + * * @return clickAnalytics - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Click Analytics feature.") public Boolean getClickAnalytics() { @@ -1429,8 +1451,9 @@ public SearchParams analytics(Boolean analytics) { /** * Whether the current query will be taken into account in the Analytics. + * * @return analytics - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the current query will be taken into account in the Analytics." @@ -1458,8 +1481,9 @@ public SearchParams addAnalyticsTagsItem(String analyticsTagsItem) { /** * List of tags to apply to the query for analytics purposes. + * * @return analyticsTags - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of tags to apply to the query for analytics purposes." @@ -1479,8 +1503,9 @@ public SearchParams percentileComputation(Boolean percentileComputation) { /** * Whether to include or exclude a query from the processing-time percentile computation. + * * @return percentileComputation - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to include or exclude a query from the processing-time percentile computation." @@ -1500,8 +1525,9 @@ public SearchParams enableABTest(Boolean enableABTest) { /** * Whether this search should participate in running AB tests. + * * @return enableABTest - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether this search should participate in running AB tests." @@ -1521,8 +1547,9 @@ public SearchParams enableReRanking(Boolean enableReRanking) { /** * Whether this search should use AI Re-Ranking. + * * @return enableReRanking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Whether this search should use AI Re-Ranking.") public Boolean getEnableReRanking() { @@ -1550,8 +1577,9 @@ public SearchParams addSearchableAttributesItem( /** * The complete list of attributes used for searching. + * * @return searchableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes used for searching." @@ -1583,8 +1611,9 @@ public SearchParams addAttributesForFacetingItem( /** * The complete list of attributes that will be used for faceting. + * * @return attributesForFaceting - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The complete list of attributes that will be used for faceting." @@ -1616,8 +1645,9 @@ public SearchParams addUnretrievableAttributesItem( /** * List of attributes that can’t be retrieved at query time. + * * @return unretrievableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes that can’t be retrieved at query time." @@ -1647,8 +1677,9 @@ public SearchParams addAttributesToRetrieveItem( /** * This parameter controls which attributes to retrieve and which not to retrieve. + * * @return attributesToRetrieve - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "This parameter controls which attributes to retrieve and which not to retrieve." @@ -1680,8 +1711,9 @@ public SearchParams addRestrictSearchableAttributesItem( /** * Restricts a given query to look in only a subset of your searchable attributes. + * * @return restrictSearchableAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Restricts a given query to look in only a subset of your searchable attributes." @@ -1711,8 +1743,9 @@ public SearchParams addRankingItem(String rankingItem) { /** * Controls how Algolia should sort your results. + * * @return ranking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Controls how Algolia should sort your results.") public List getRanking() { @@ -1738,8 +1771,9 @@ public SearchParams addCustomRankingItem(String customRankingItem) { /** * Specifies the custom ranking criterion. + * * @return customRanking - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the custom ranking criterion.") public List getCustomRanking() { @@ -1756,12 +1790,15 @@ public SearchParams relevancyStrictness(Integer relevancyStrictness) { } /** - * Controls the relevancy threshold below which less relevant results aren’t included in the results. + * Controls the relevancy threshold below which less relevant results aren’t included in the + * results. + * * @return relevancyStrictness - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls the relevancy threshold below which less relevant results aren’t included in the results." + value = "Controls the relevancy threshold below which less relevant results aren’t included in" + + " the results." ) public Integer getRelevancyStrictness() { return relevancyStrictness; @@ -1790,8 +1827,9 @@ public SearchParams addAttributesToHighlightItem( /** * List of attributes to highlight. + * * @return attributesToHighlight - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "List of attributes to highlight.") public List getAttributesToHighlight() { @@ -1819,8 +1857,9 @@ public SearchParams addAttributesToSnippetItem( /** * List of attributes to snippet, with an optional maximum number of words to snippet. + * * @return attributesToSnippet - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes to snippet, with an optional maximum number of words to snippet." @@ -1840,11 +1879,13 @@ public SearchParams highlightPreTag(String highlightPreTag) { /** * The HTML string to insert before the highlighted parts in all highlight and snippet results. + * * @return highlightPreTag - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert before the highlighted parts in all highlight and snippet results." + value = "The HTML string to insert before the highlighted parts in all highlight and snippet" + + " results." ) public String getHighlightPreTag() { return highlightPreTag; @@ -1861,11 +1902,13 @@ public SearchParams highlightPostTag(String highlightPostTag) { /** * The HTML string to insert after the highlighted parts in all highlight and snippet results. + * * @return highlightPostTag - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The HTML string to insert after the highlighted parts in all highlight and snippet results." + value = "The HTML string to insert after the highlighted parts in all highlight and snippet" + + " results." ) public String getHighlightPostTag() { return highlightPostTag; @@ -1882,8 +1925,9 @@ public SearchParams snippetEllipsisText(String snippetEllipsisText) { /** * String used as an ellipsis indicator when a snippet is truncated. + * * @return snippetEllipsisText - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "String used as an ellipsis indicator when a snippet is truncated." @@ -1905,8 +1949,9 @@ public SearchParams restrictHighlightAndSnippetArrays( /** * Restrict highlighting and snippeting to items that matched the query. + * * @return restrictHighlightAndSnippetArrays - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Restrict highlighting and snippeting to items that matched the query." @@ -1928,8 +1973,9 @@ public SearchParams hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. + * * @return hitsPerPage - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -1946,12 +1992,15 @@ public SearchParams minWordSizefor1Typo(Integer minWordSizefor1Typo) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 1 typo. + * Minimum number of characters a word in the query string must contain to accept matches with 1 + * typo. + * * @return minWordSizefor1Typo - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches with 1 typo." + value = "Minimum number of characters a word in the query string must contain to accept matches" + + " with 1 typo." ) public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; @@ -1967,12 +2016,15 @@ public SearchParams minWordSizefor2Typos(Integer minWordSizefor2Typos) { } /** - * Minimum number of characters a word in the query string must contain to accept matches with 2 typos. + * Minimum number of characters a word in the query string must contain to accept matches with 2 + * typos. + * * @return minWordSizefor2Typos - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Minimum number of characters a word in the query string must contain to accept matches with 2 typos." + value = "Minimum number of characters a word in the query string must contain to accept matches" + + " with 2 typos." ) public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; @@ -1989,8 +2041,9 @@ public SearchParams typoTolerance(TypoToleranceEnum typoTolerance) { /** * Controls whether typo tolerance is enabled and how it is applied. + * * @return typoTolerance - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Controls whether typo tolerance is enabled and how it is applied." @@ -2012,8 +2065,9 @@ public SearchParams allowTyposOnNumericTokens( /** * Whether to allow typos on numbers (“numeric tokens”) in the query string. + * * @return allowTyposOnNumericTokens - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to allow typos on numbers (“numeric tokens”) in the query string." @@ -2047,8 +2101,9 @@ public SearchParams addDisableTypoToleranceOnAttributesItem( /** * List of attributes on which you want to disable typo tolerance. + * * @return disableTypoToleranceOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable typo tolerance." @@ -2070,8 +2125,9 @@ public SearchParams separatorsToIndex(String separatorsToIndex) { /** * Control which separators are indexed. + * * @return separatorsToIndex - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Control which separators are indexed.") public String getSeparatorsToIndex() { @@ -2089,8 +2145,9 @@ public SearchParams ignorePlurals(String ignorePlurals) { /** * Treats singular, plurals, and other forms of declensions as matching terms. + * * @return ignorePlurals - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Treats singular, plurals, and other forms of declensions as matching terms." @@ -2110,8 +2167,9 @@ public SearchParams removeStopWords(String removeStopWords) { /** * Removes stop (common) words from the query before executing it. + * * @return removeStopWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Removes stop (common) words from the query before executing it." @@ -2133,8 +2191,9 @@ public SearchParams keepDiacriticsOnCharacters( /** * List of characters that the engine shouldn’t automatically normalize. + * * @return keepDiacriticsOnCharacters - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of characters that the engine shouldn’t automatically normalize." @@ -2161,12 +2220,15 @@ public SearchParams addQueryLanguagesItem(String queryLanguagesItem) { } /** - * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection. + * Sets the languages to be used by language-specific settings and functionalities such as + * ignorePlurals, removeStopWords, and CJK word-detection. + * * @return queryLanguages - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection." + value = "Sets the languages to be used by language-specific settings and functionalities such as" + + " ignorePlurals, removeStopWords, and CJK word-detection." ) public List getQueryLanguages() { return queryLanguages; @@ -2183,8 +2245,9 @@ public SearchParams decompoundQuery(Boolean decompoundQuery) { /** * Splits compound words into their composing atoms in the query. + * * @return decompoundQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Splits compound words into their composing atoms in the query." @@ -2204,8 +2267,9 @@ public SearchParams enableRules(Boolean enableRules) { /** * Whether Rules should be globally enabled. + * * @return enableRules - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Whether Rules should be globally enabled.") public Boolean getEnableRules() { @@ -2223,8 +2287,9 @@ public SearchParams enablePersonalization(Boolean enablePersonalization) { /** * Enable the Personalization feature. + * * @return enablePersonalization - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enable the Personalization feature.") public Boolean getEnablePersonalization() { @@ -2242,8 +2307,9 @@ public SearchParams queryType(QueryTypeEnum queryType) { /** * Controls if and how query words are interpreted as prefixes. + * * @return queryType - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Controls if and how query words are interpreted as prefixes." @@ -2265,8 +2331,9 @@ public SearchParams removeWordsIfNoResults( /** * Selects a strategy to remove words from the query when it doesn’t match any hits. + * * @return removeWordsIfNoResults - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Selects a strategy to remove words from the query when it doesn’t match any hits." @@ -2288,8 +2355,9 @@ public SearchParams advancedSyntax(Boolean advancedSyntax) { /** * Enables the advanced query syntax. + * * @return advancedSyntax - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables the advanced query syntax.") public Boolean getAdvancedSyntax() { @@ -2315,8 +2383,9 @@ public SearchParams addOptionalWordsItem(String optionalWordsItem) { /** * A list of words that should be considered as optional when found in the query. + * * @return optionalWords - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "A list of words that should be considered as optional when found in the query." @@ -2348,8 +2417,9 @@ public SearchParams addDisableExactOnAttributesItem( /** * List of attributes on which you want to disable the exact ranking criterion. + * * @return disableExactOnAttributes - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "List of attributes on which you want to disable the exact ranking criterion." @@ -2373,11 +2443,13 @@ public SearchParams exactOnSingleWordQuery( /** * Controls how the exact ranking criterion is computed when the query contains only one word. + * * @return exactOnSingleWordQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Controls how the exact ranking criterion is computed when the query contains only one word." + value = "Controls how the exact ranking criterion is computed when the query contains only one" + + " word." ) public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; @@ -2408,11 +2480,13 @@ public SearchParams addAlternativesAsExactItem( /** * List of alternatives that should be considered an exact match by the exact ranking criterion. + * * @return alternativesAsExact - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "List of alternatives that should be considered an exact match by the exact ranking criterion." + value = "List of alternatives that should be considered an exact match by the exact ranking" + + " criterion." ) public List getAlternativesAsExact() { return alternativesAsExact; @@ -2442,12 +2516,15 @@ public SearchParams addAdvancedSyntaxFeaturesItem( } /** - * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled. + * Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is + * enabled. + * * @return advancedSyntaxFeatures - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is enabled." + value = "Allows you to specify which advanced syntax features are active when ‘advancedSyntax’ is" + + " enabled." ) public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; @@ -2465,11 +2542,10 @@ public SearchParams distinct(Integer distinct) { } /** - * Enables de-duplication or grouping of results. - * minimum: 0 - * maximum: 4 + * Enables de-duplication or grouping of results. minimum: 0 maximum: 4 + * * @return distinct - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Enables de-duplication or grouping of results.") public Integer getDistinct() { @@ -2487,8 +2563,9 @@ public SearchParams synonyms(Boolean synonyms) { /** * Whether to take into account an index’s synonyms for a particular search. + * * @return synonyms - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether to take into account an index’s synonyms for a particular search." @@ -2509,12 +2586,15 @@ public SearchParams replaceSynonymsInHighlight( } /** - * Whether to highlight and snippet the original word that matches the synonym or the synonym itself. + * Whether to highlight and snippet the original word that matches the synonym or the synonym + * itself. + * * @return replaceSynonymsInHighlight - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Whether to highlight and snippet the original word that matches the synonym or the synonym itself." + value = "Whether to highlight and snippet the original word that matches the synonym or the" + + " synonym itself." ) public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; @@ -2532,11 +2612,10 @@ public SearchParams minProximity(Integer minProximity) { } /** - * Precision of the proximity ranking criterion. - * minimum: 1 - * maximum: 7 + * Precision of the proximity ranking criterion. minimum: 1 maximum: 7 + * * @return minProximity - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Precision of the proximity ranking criterion.") public Integer getMinProximity() { @@ -2561,12 +2640,15 @@ public SearchParams addResponseFieldsItem(String responseFieldsItem) { } /** - * Choose which fields to return in the API response. This parameters applies to search and browse queries. + * Choose which fields to return in the API response. This parameters applies to search and browse + * queries. + * * @return responseFields - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Choose which fields to return in the API response. This parameters applies to search and browse queries." + value = "Choose which fields to return in the API response. This parameters applies to search and" + + " browse queries." ) public List getResponseFields() { return responseFields; @@ -2583,8 +2665,9 @@ public SearchParams maxFacetHits(Integer maxFacetHits) { /** * Maximum number of facet hits to return during a search for facet values. + * * @return maxFacetHits - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Maximum number of facet hits to return during a search for facet values." @@ -2606,12 +2689,15 @@ public SearchParams attributeCriteriaComputedByMinProximity( } /** - * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage. + * When attribute is ranked above proximity in your ranking formula, proximity is used to select + * which searchable attribute is matched in the attribute ranking stage. + * * @return attributeCriteriaComputedByMinProximity - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage." + value = "When attribute is ranked above proximity in your ranking formula, proximity is used to" + + " select which searchable attribute is matched in the attribute ranking stage." ) public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; @@ -2630,12 +2716,15 @@ public SearchParams renderingContent(Object renderingContent) { } /** - * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules. + * Content defining how the search interface should be rendered. Can be set via the settings for a + * default value and can be overridden via rules. + * * @return renderingContent - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules." + value = "Content defining how the search interface should be rendered. Can be set via the" + + " settings for a default value and can be overridden via rules." ) public Object getRenderingContent() { return renderingContent; @@ -3215,8 +3304,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java index c3a77c0b1e4..a1437ac2707 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java @@ -1,28 +1,14 @@ package com.algolia.model; -import com.algolia.model.BaseSearchResponse; -import com.algolia.model.BaseSearchResponseFacetsStats; -import com.algolia.model.Record; -import com.algolia.model.SearchHits; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -/** - * SearchResponse - */ - +/** SearchResponse */ public class SearchResponse { public static final String SERIALIZED_NAME_AB_TEST_I_D = "abTestID"; @@ -162,12 +148,15 @@ public SearchResponse abTestID(Integer abTestID) { } /** - * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID. + * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test + * ID. + * * @return abTestID - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID." + value = "If a search encounters an index that is being A/B tested, abTestID reports the ongoing" + + " A/B test ID." ) public Integer getAbTestID() { return abTestID; @@ -183,12 +172,15 @@ public SearchResponse abTestVariantID(Integer abTestVariantID) { } /** - * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used. + * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant + * ID of the index used. + * * @return abTestVariantID - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used." + value = "If a search encounters an index that is being A/B tested, abTestVariantID reports the" + + " variant ID of the index used." ) public Integer getAbTestVariantID() { return abTestVariantID; @@ -205,8 +197,9 @@ public SearchResponse aroundLatLng(String aroundLatLng) { /** * The computed geo location. + * * @return aroundLatLng - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The computed geo location.") public String getAroundLatLng() { @@ -223,12 +216,15 @@ public SearchResponse automaticRadius(String automaticRadius) { } /** - * The automatically computed radius. For legacy reasons, this parameter is a string and not an integer. + * The automatically computed radius. For legacy reasons, this parameter is a string and not an + * integer. + * * @return automaticRadius - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "The automatically computed radius. For legacy reasons, this parameter is a string and not an integer." + value = "The automatically computed radius. For legacy reasons, this parameter is a string and" + + " not an integer." ) public String getAutomaticRadius() { return automaticRadius; @@ -245,8 +241,9 @@ public SearchResponse exhaustiveFacetsCount(Boolean exhaustiveFacetsCount) { /** * Whether the facet count is exhaustive or approximate. + * * @return exhaustiveFacetsCount - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Whether the facet count is exhaustive or approximate." @@ -266,8 +263,9 @@ public SearchResponse exhaustiveNbHits(Boolean exhaustiveNbHits) { /** * Indicate if the nbHits count was exhaustive or approximate + * * @return exhaustiveNbHits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -287,13 +285,16 @@ public SearchResponse exhaustiveTypo(Boolean exhaustiveTypo) { } /** - * Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled) + * Indicate if the typo-tolerence search was exhaustive or approximate (only included when + * typo-tolerance is enabled) + * * @return exhaustiveTypo - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled)" + value = "Indicate if the typo-tolerence search was exhaustive or approximate (only included when" + + " typo-tolerance is enabled)" ) public Boolean getExhaustiveTypo() { return exhaustiveTypo; @@ -321,8 +322,9 @@ public SearchResponse putFacetsItem( /** * A mapping of each facet name to the corresponding facet counts. + * * @return facets - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "{\"category\":{\"food\":1,\"tech\":42}}", @@ -356,8 +358,9 @@ public SearchResponse putFacetsStatsItem( /** * Statistics for numerical facets. + * * @return facetsStats - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Statistics for numerical facets.") public Map getFacetsStats() { @@ -377,8 +380,9 @@ public SearchResponse hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. + * * @return hitsPerPage - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -396,8 +400,9 @@ public SearchResponse index(String index) { /** * Index name used for the query. + * * @return index - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "indexName", @@ -417,13 +422,16 @@ public SearchResponse indexUsed(String indexUsed) { } /** - * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query. + * Index name used for the query. In the case of an A/B test, the targeted index isn’t always the + * index used by the query. + * * @return indexUsed - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "indexNameAlt", - value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t always the index used by the query." + value = "Index name used for the query. In the case of an A/B test, the targeted index isn’t" + + " always the index used by the query." ) public String getIndexUsed() { return indexUsed; @@ -440,8 +448,9 @@ public SearchResponse message(String message) { /** * Used to return warnings about the query. + * * @return message - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Used to return warnings about the query.") public String getMessage() { @@ -459,8 +468,9 @@ public SearchResponse nbHits(Integer nbHits) { /** * Number of hits that the search query matched. + * * @return nbHits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -482,8 +492,9 @@ public SearchResponse nbPages(Integer nbPages) { /** * Number of pages available for the current query + * * @return nbPages - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "1", @@ -505,8 +516,9 @@ public SearchResponse nbSortedHits(Integer nbSortedHits) { /** * The number of hits selected and sorted by the relevant sort algorithm + * * @return nbSortedHits - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "20", @@ -527,8 +539,9 @@ public SearchResponse page(Integer page) { /** * Specify the page to retrieve. + * * @return page - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Specify the page to retrieve.") public Integer getPage() { @@ -546,8 +559,9 @@ public SearchResponse params(String params) { /** * A url-encoded string of all search parameters. + * * @return params - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "query=a&hitsPerPage=20", @@ -569,8 +583,9 @@ public SearchResponse parsedQuery(String parsedQuery) { /** * The query string that will be searched, after normalization. + * * @return parsedQuery - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "The query string that will be searched, after normalization." @@ -590,8 +605,9 @@ public SearchResponse processingTimeMS(Integer processingTimeMS) { /** * Time the server took to process the request, in milliseconds. + * * @return processingTimeMS - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -613,8 +629,9 @@ public SearchResponse query(String query) { /** * The text to search in the index. + * * @return query - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The text to search in the index.") public String getQuery() { @@ -631,12 +648,15 @@ public SearchResponse queryAfterRemoval(String queryAfterRemoval) { } /** - * A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. + * A markup text indicating which parts of the original query have been removed in order to + * retrieve a non-empty result set. + * * @return queryAfterRemoval - **/ + */ @javax.annotation.Nullable @ApiModelProperty( - value = "A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set." + value = "A markup text indicating which parts of the original query have been removed in order to" + + " retrieve a non-empty result set." ) public String getQueryAfterRemoval() { return queryAfterRemoval; @@ -653,8 +673,9 @@ public SearchResponse serverUsed(String serverUsed) { /** * Actual host name of the server that processed the request. + * * @return serverUsed - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Actual host name of the server that processed the request." @@ -682,8 +703,9 @@ public SearchResponse putUserDataItem(String key, Object userDataItem) { /** * Lets you store custom data in your indices. + * * @return userData - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Lets you store custom data in your indices.") public Map getUserData() { @@ -706,8 +728,9 @@ public SearchResponse addHitsItem(Record hitsItem) { /** * Get hits + * * @return hits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getHits() { @@ -869,8 +892,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java index cb5c7c7c3fa..ea57089c759 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java @@ -1,25 +1,13 @@ package com.algolia.model; -import com.algolia.model.SynonymHit; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.Objects; -/** - * SearchSynonymsResponse - */ - +/** SearchSynonymsResponse */ public class SearchSynonymsResponse extends HashMap { public static final String SERIALIZED_NAME_HITS = "hits"; @@ -44,8 +32,9 @@ public SearchSynonymsResponse addHitsItem(SynonymHit hitsItem) { /** * Array of synonym objects. + * * @return hits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Array of synonym objects.") public List getHits() { @@ -63,8 +52,9 @@ public SearchSynonymsResponse nbHits(Integer nbHits) { /** * Number of hits that the search query matched. + * * @return nbHits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "20", @@ -112,8 +102,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java index 2f0b03fee24..d093d293312 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsObject.java @@ -1,19 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * OK - */ +/** OK */ @ApiModel(description = "OK") public class SearchUserIdsObject { @@ -43,13 +35,16 @@ public SearchUserIdsObject query(String query) { } /** - * Query to search. The search is a prefix search with typoTolerance. Use empty query to retrieve all users. + * Query to search. The search is a prefix search with typoTolerance. Use empty query to retrieve + * all users. + * * @return query - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, - value = "Query to search. The search is a prefix search with typoTolerance. Use empty query to retrieve all users." + value = "Query to search. The search is a prefix search with typoTolerance. Use empty query to" + + " retrieve all users." ) public String getQuery() { return query; @@ -66,8 +61,9 @@ public SearchUserIdsObject clusterName(String clusterName) { /** * Name of the cluster. + * * @return clusterName - **/ + */ @javax.annotation.Nullable @ApiModelProperty(example = "c11-test", value = "Name of the cluster.") public String getClusterName() { @@ -85,8 +81,9 @@ public SearchUserIdsObject page(Integer page) { /** * Specify the page to retrieve. + * * @return page - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Specify the page to retrieve.") public Integer getPage() { @@ -104,8 +101,9 @@ public SearchUserIdsObject hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. + * * @return hitsPerPage - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -157,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java index ee8eedee3df..2d4535802b3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java @@ -1,23 +1,14 @@ package com.algolia.model; -import com.algolia.model.SearchUserIdsResponseHits; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * userIDs data. - */ +/** userIDs data. */ @ApiModel(description = "userIDs data.") public class SearchUserIdsResponse { @@ -58,8 +49,9 @@ public SearchUserIdsResponse addHitsItem(SearchUserIdsResponseHits hitsItem) { /** * List of user object matching the query. + * * @return hits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -80,8 +72,9 @@ public SearchUserIdsResponse nbHits(Object nbHits) { /** * Get nbHits + * * @return nbHits - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public Object getNbHits() { @@ -99,8 +92,9 @@ public SearchUserIdsResponse page(Integer page) { /** * Specify the page to retrieve. + * * @return page - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Specify the page to retrieve.") public Integer getPage() { @@ -118,8 +112,9 @@ public SearchUserIdsResponse hitsPerPage(Integer hitsPerPage) { /** * Set the number of hits per page. + * * @return hitsPerPage - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Set the number of hits per page.") public Integer getHitsPerPage() { @@ -137,8 +132,9 @@ public SearchUserIdsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -195,8 +191,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java index 08457769e77..09651a2ea8f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java @@ -1,21 +1,10 @@ package com.algolia.model; -import com.algolia.model.HighlightResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * SearchUserIdsResponseHighlightResult - */ - +/** SearchUserIdsResponseHighlightResult */ public class SearchUserIdsResponseHighlightResult { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @@ -35,8 +24,9 @@ public SearchUserIdsResponseHighlightResult userID(HighlightResult userID) { /** * Get userID + * * @return userID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public HighlightResult getUserID() { @@ -56,8 +46,9 @@ public SearchUserIdsResponseHighlightResult clusterName( /** * Get clusterName + * * @return clusterName - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public HighlightResult getClusterName() { @@ -108,8 +99,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java index abb5dac2179..36d76eac7c7 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java @@ -1,22 +1,10 @@ package com.algolia.model; -import com.algolia.model.SearchUserIdsResponseHighlightResult; -import com.algolia.model.UserId; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * SearchUserIdsResponseHits - */ - +/** SearchUserIdsResponseHits */ public class SearchUserIdsResponseHits { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @@ -57,8 +45,9 @@ public SearchUserIdsResponseHits userID(UserId userID) { /** * Get userID + * * @return userID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public UserId getUserID() { @@ -76,8 +65,9 @@ public SearchUserIdsResponseHits clusterName(String clusterName) { /** * Name of the cluster. + * * @return clusterName - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "c11-test", @@ -99,8 +89,9 @@ public SearchUserIdsResponseHits nbRecords(Integer nbRecords) { /** * Number of records in the cluster. + * * @return nbRecords - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "3", @@ -122,8 +113,9 @@ public SearchUserIdsResponseHits dataSize(Integer dataSize) { /** * Data size taken by all the users assigned to the cluster. + * * @return dataSize - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "481", @@ -145,8 +137,9 @@ public SearchUserIdsResponseHits objectID(String objectID) { /** * userID of the requested user. Same as userID. + * * @return objectID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -169,8 +162,9 @@ public SearchUserIdsResponseHits highlightResult( /** * Get highlightResult + * * @return highlightResult - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public SearchUserIdsResponseHighlightResult getHighlightResult() { @@ -241,8 +235,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java index 00753353ecf..bdb6ef85d2a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SetSettingsResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * SetSettingsResponse - */ - +/** SetSettingsResponse */ public class SetSettingsResponse { public static final String SERIALIZED_NAME_TASK_I_D = "taskID"; @@ -35,8 +25,9 @@ public SetSettingsResponse taskID(Integer taskID) { /** * taskID of the indexing task to wait for. + * * @return taskID - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "taskID of the indexing task to wait for.") public Integer getTaskID() { @@ -54,8 +45,9 @@ public SetSettingsResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Date of last update (ISO-8601 format).") public OffsetDateTime getUpdatedAt() { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java index d77d10a6ee4..f117c587671 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java @@ -5,16 +5,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * SnippetResult - */ - +/** SnippetResult */ public class SnippetResult { public static final String SERIALIZED_NAME_VALUE = "value"; @@ -22,9 +17,7 @@ public class SnippetResult { @SerializedName(SERIALIZED_NAME_VALUE) private String value; - /** - * Indicates how well the attribute matched the search query. - */ + /** Indicates how well the attribute matched the search query. */ @JsonAdapter(MatchLevelEnum.Adapter.class) public enum MatchLevelEnum { NONE("none"), @@ -88,8 +81,9 @@ public SnippetResult value(String value) { /** * Markup text with occurrences highlighted. + * * @return value - **/ + */ @javax.annotation.Nullable @ApiModelProperty( example = "George Clooney...", @@ -110,8 +104,9 @@ public SnippetResult matchLevel(MatchLevelEnum matchLevel) { /** * Indicates how well the attribute matched the search query. + * * @return matchLevel - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Indicates how well the attribute matched the search query." @@ -158,8 +153,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java index 4052a4ab256..b1eb087440e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java @@ -1,19 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * The source. - */ +/** The source. */ @ApiModel(description = "The source.") public class Source { @@ -34,8 +26,9 @@ public Source source(String source) { /** * The IP range of the source. + * * @return source - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "10.0.0.1/32", @@ -57,8 +50,9 @@ public Source description(String description) { /** * The description of the source. + * * @return description - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "The description of the source.") public String getDescription() { @@ -103,8 +97,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java index 5324acde8d7..514cc6431b2 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java @@ -1,6 +1,5 @@ package com.algolia.model; -import com.algolia.model.SynonymHitHighlightResult; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -10,13 +9,10 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * Synonym object. - */ +/** Synonym object. */ @ApiModel(description = "Synonym object.") public class SynonymHit { @@ -25,9 +21,7 @@ public class SynonymHit { @SerializedName(SERIALIZED_NAME_OBJECT_I_D) private String objectID; - /** - * Type of the synonym object. - */ + /** Type of the synonym object. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { SYNONYM("synonym"), @@ -130,8 +124,9 @@ public SynonymHit objectID(String objectID) { /** * Unique identifier of the synonym object to be created or updated. + * * @return objectID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -152,8 +147,9 @@ public SynonymHit type(TypeEnum type) { /** * Type of the synonym object. + * * @return type - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Type of the synonym object.") public TypeEnum getType() { @@ -179,8 +175,9 @@ public SynonymHit addSynonymsItem(String synonymsItem) { /** * Words or phrases to be considered equivalent. + * * @return synonyms - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Words or phrases to be considered equivalent.") public List getSynonyms() { @@ -198,8 +195,9 @@ public SynonymHit input(String input) { /** * Word or phrase to appear in query strings (for onewaysynonym). + * * @return input - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Word or phrase to appear in query strings (for onewaysynonym)." @@ -219,8 +217,9 @@ public SynonymHit word(String word) { /** * Word or phrase to appear in query strings (for altcorrection1 and altcorrection2). + * * @return word - **/ + */ @javax.annotation.Nullable @ApiModelProperty( value = "Word or phrase to appear in query strings (for altcorrection1 and altcorrection2)." @@ -248,8 +247,9 @@ public SynonymHit addCorrectionsItem(String correctionsItem) { /** * Words to be matched in records. + * * @return corrections - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Words to be matched in records.") public List getCorrections() { @@ -267,8 +267,9 @@ public SynonymHit placeholder(String placeholder) { /** * Token to be put inside records. + * * @return placeholder - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "Token to be put inside records.") public String getPlaceholder() { @@ -294,8 +295,9 @@ public SynonymHit addReplacementsItem(String replacementsItem) { /** * List of query words that will match the token. + * * @return replacements - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "List of query words that will match the token.") public List getReplacements() { @@ -313,8 +315,9 @@ public SynonymHit highlightResult(SynonymHitHighlightResult highlightResult) { /** * Get highlightResult + * * @return highlightResult - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public SynonymHitHighlightResult getHighlightResult() { @@ -392,8 +395,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java index 2e8909f225d..ccc0e886e3f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java @@ -1,22 +1,13 @@ package com.algolia.model; -import com.algolia.model.HighlightResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import java.util.Objects; -/** - * Highlighted results - */ +/** Highlighted results */ @ApiModel(description = "Highlighted results") public class SynonymHitHighlightResult { @@ -37,8 +28,9 @@ public SynonymHitHighlightResult type(HighlightResult type) { /** * Get type + * * @return type - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public HighlightResult getType() { @@ -66,8 +58,9 @@ public SynonymHitHighlightResult addSynonymsItem( /** * Get synonyms + * * @return synonyms - **/ + */ @javax.annotation.Nullable @ApiModelProperty(value = "") public List getSynonyms() { @@ -109,8 +102,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java index 7208405d808..2328d98f9a9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java @@ -1,21 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.time.OffsetDateTime; -import java.util.Arrays; import java.util.Objects; -/** - * UpdateApiKeyResponse - */ - +/** UpdateApiKeyResponse */ public class UpdateApiKeyResponse { public static final String SERIALIZED_NAME_KEY = "key"; @@ -35,8 +25,9 @@ public UpdateApiKeyResponse key(String key) { /** * Key string. + * * @return key - **/ + */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "Key string.") public String getKey() { @@ -54,8 +45,9 @@ public UpdateApiKeyResponse updatedAt(OffsetDateTime updatedAt) { /** * Date of last update (ISO-8601 format). + * * @return updatedAt - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( required = true, @@ -103,8 +95,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java index f7903ac0e4f..03a68bf6c30 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java @@ -1,19 +1,11 @@ package com.algolia.model; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; import java.util.Objects; -/** - * A userID. - */ +/** A userID. */ @ApiModel(description = "A userID.") public class UserId { @@ -44,8 +36,9 @@ public UserId userID(String userID) { /** * userID of the user. + * * @return userID - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "user1", @@ -67,8 +60,9 @@ public UserId clusterName(String clusterName) { /** * Cluster on which the user is assigned. + * * @return clusterName - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "c1-test", @@ -90,8 +84,9 @@ public UserId nbRecords(Integer nbRecords) { /** * Number of records belonging to the user. + * * @return nbRecords - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "42", @@ -113,8 +108,9 @@ public UserId dataSize(Integer dataSize) { /** * Data size used by the user. + * * @return dataSize - **/ + */ @javax.annotation.Nonnull @ApiModelProperty( example = "0", @@ -170,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java index c91ffa77e4e..d02140f09a0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java @@ -5,8 +5,6 @@ import com.algolia.ApiException; import com.algolia.ApiResponse; import com.algolia.Pair; -import com.algolia.ProgressRequestBody; -import com.algolia.ProgressResponseBody; import com.algolia.model.AddApiKeyResponse; import com.algolia.model.ApiKey; import com.algolia.model.AppendSourceResponse; @@ -21,7 +19,6 @@ import com.algolia.model.DeleteIndexResponse; import com.algolia.model.DeleteSourceResponse; import com.algolia.model.DeleteSynonymResponse; -import com.algolia.model.ErrorBase; import com.algolia.model.GetLogsResponse; import com.algolia.model.GetTaskResponse; import com.algolia.model.GetTopUserIdsResponse; @@ -52,7 +49,6 @@ import com.algolia.model.UpdateApiKeyResponse; import com.algolia.model.UserId; import com.google.gson.reflect.TypeToken; -import java.io.IOException; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -66,21 +62,22 @@ public SearchApi(String appId, String apiKey) { } /** - * Build call for addApiKey - * @param apiKey (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for addApiKey + * + * @param apiKey (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call addApiKeyCall(ApiKey apiKey, final ApiCallback _callback) throws ApiException { Object localVarPostBody = apiKey; @@ -137,42 +134,44 @@ private okhttp3.Call addApiKeyValidateBeforeCall( } /** - * Create a new API key. - * Add a new API Key with specific permissions/restrictions. - * @param apiKey (required) - * @return AddApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Create a new API key. Add a new API Key with specific permissions/restrictions. + * + * @param apiKey (required) + * @return AddApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public AddApiKeyResponse addApiKey(ApiKey apiKey) throws ApiException { ApiResponse localVarResp = addApiKeyWithHttpInfo(apiKey); return localVarResp.getData(); } /** - * Create a new API key. - * Add a new API Key with specific permissions/restrictions. - * @param apiKey (required) - * @return ApiResponse<AddApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Create a new API key. Add a new API Key with specific permissions/restrictions. + * + * @param apiKey (required) + * @return ApiResponse<AddApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse addApiKeyWithHttpInfo(ApiKey apiKey) throws ApiException { okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(apiKey, null); @@ -181,22 +180,23 @@ public ApiResponse addApiKeyWithHttpInfo(ApiKey apiKey) } /** - * Create a new API key. (asynchronously) - * Add a new API Key with specific permissions/restrictions. - * @param apiKey (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Create a new API key. (asynchronously) Add a new API Key with specific + * permissions/restrictions. + * + * @param apiKey (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call addApiKeyAsync( ApiKey apiKey, final ApiCallback _callback @@ -208,17 +208,18 @@ public okhttp3.Call addApiKeyAsync( } /** - * Build call for appendSource - * @param source The sources to allow (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Build call for appendSource + * + * @param source The sources to allow (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call appendSourceCall( Source source, final ApiCallback _callback @@ -277,17 +278,18 @@ private okhttp3.Call appendSourceValidateBeforeCall( } /** - * - * Add a single source to the list of allowed sources. - * @param source The sources to allow (required) - * @return AppendSourceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Add a single source to the list of allowed sources. + * + * @param source The sources to allow (required) + * @return AppendSourceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public AppendSourceResponse appendSource(Source source) throws ApiException { ApiResponse localVarResp = appendSourceWithHttpInfo( source @@ -296,17 +298,18 @@ public AppendSourceResponse appendSource(Source source) throws ApiException { } /** - * - * Add a single source to the list of allowed sources. - * @param source The sources to allow (required) - * @return ApiResponse<AppendSourceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Add a single source to the list of allowed sources. + * + * @param source The sources to allow (required) + * @return ApiResponse<AppendSourceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public ApiResponse appendSourceWithHttpInfo( Source source ) throws ApiException { @@ -317,18 +320,18 @@ public ApiResponse appendSourceWithHttpInfo( } /** - * (asynchronously) - * Add a single source to the list of allowed sources. - * @param source The sources to allow (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * (asynchronously) Add a single source to the list of allowed sources. + * + * @param source The sources to allow (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call appendSourceAsync( Source source, final ApiCallback _callback @@ -344,22 +347,23 @@ public okhttp3.Call appendSourceAsync( } /** - * Build call for assignUserId - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for assignUserId + * + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call assignUserIdCall( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject, @@ -437,22 +441,26 @@ private okhttp3.Call assignUserIdValidateBeforeCall( } /** - * Assign or Move userID - * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable. - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @return AssignUserIdResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Assign or Move userID Assign or Move a userID to a cluster. The time it takes to migrate (move) + * a user is proportional to the amount of data linked to the userID. Upon success, the response + * is 200 OK. A successful response indicates that the operation has been taken into account, and + * the userID is directly usable. + * + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @return AssignUserIdResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public AssignUserIdResponse assignUserId( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject @@ -465,22 +473,26 @@ public AssignUserIdResponse assignUserId( } /** - * Assign or Move userID - * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable. - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @return ApiResponse<AssignUserIdResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Assign or Move userID Assign or Move a userID to a cluster. The time it takes to migrate (move) + * a user is proportional to the amount of data linked to the userID. Upon success, the response + * is 200 OK. A successful response indicates that the operation has been taken into account, and + * the userID is directly usable. + * + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @return ApiResponse<AssignUserIdResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse assignUserIdWithHttpInfo( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject @@ -496,23 +508,26 @@ public ApiResponse assignUserIdWithHttpInfo( } /** - * Assign or Move userID (asynchronously) - * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable. - * @param xAlgoliaUserID userID to assign. (required) - * @param assignUserIdObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Assign or Move userID (asynchronously) Assign or Move a userID to a cluster. The time it takes + * to migrate (move) a user is proportional to the amount of data linked to the userID. Upon + * success, the response is 200 OK. A successful response indicates that the operation has been + * taken into account, and the userID is directly usable. + * + * @param xAlgoliaUserID userID to assign. (required) + * @param assignUserIdObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call assignUserIdAsync( Object xAlgoliaUserID, AssignUserIdObject assignUserIdObject, @@ -530,22 +545,23 @@ public okhttp3.Call assignUserIdAsync( } /** - * Build call for batch - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for batch + * + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchCall( String indexName, BatchObject batchObject, @@ -617,22 +633,23 @@ private okhttp3.Call batchValidateBeforeCall( } /** - * - * Performs multiple write operations in a single API call. - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @return BatchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Performs multiple write operations in a single API call. + * + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @return BatchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public BatchResponse batch(String indexName, BatchObject batchObject) throws ApiException { ApiResponse localVarResp = batchWithHttpInfo( @@ -643,22 +660,23 @@ public BatchResponse batch(String indexName, BatchObject batchObject) } /** - * - * Performs multiple write operations in a single API call. - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @return ApiResponse<BatchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Performs multiple write operations in a single API call. + * + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @return ApiResponse<BatchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse batchWithHttpInfo( String indexName, BatchObject batchObject @@ -673,23 +691,23 @@ public ApiResponse batchWithHttpInfo( } /** - * (asynchronously) - * Performs multiple write operations in a single API call. - * @param indexName The index in which to perform the request. (required) - * @param batchObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Performs multiple write operations in a single API call. + * + * @param indexName The index in which to perform the request. (required) + * @param batchObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchAsync( String indexName, BatchObject batchObject, @@ -706,22 +724,23 @@ public okhttp3.Call batchAsync( } /** - * Build call for batchAssignUserIds - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for batchAssignUserIds + * + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchAssignUserIdsCall( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject, @@ -786,7 +805,8 @@ private okhttp3.Call batchAssignUserIdsValidateBeforeCall( // verify the required parameter 'batchAssignUserIdsObject' is set if (batchAssignUserIdsObject == null) { throw new ApiException( - "Missing the required parameter 'batchAssignUserIdsObject' when calling batchAssignUserIds(Async)" + "Missing the required parameter 'batchAssignUserIdsObject' when calling" + + " batchAssignUserIds(Async)" ); } @@ -799,22 +819,25 @@ private okhttp3.Call batchAssignUserIdsValidateBeforeCall( } /** - * Batch assign userIDs - * Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @return BatchAssignUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Batch assign userIDs Assign multiple userIDs to a cluster. Upon success, the response is 200 + * OK. A successful response indicates that the operation has been taken into account, and the + * userIDs are directly usable. + * + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @return BatchAssignUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public BatchAssignUserIdsResponse batchAssignUserIds( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject @@ -827,22 +850,25 @@ public BatchAssignUserIdsResponse batchAssignUserIds( } /** - * Batch assign userIDs - * Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @return ApiResponse<BatchAssignUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Batch assign userIDs Assign multiple userIDs to a cluster. Upon success, the response is 200 + * OK. A successful response indicates that the operation has been taken into account, and the + * userIDs are directly usable. + * + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @return ApiResponse<BatchAssignUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse batchAssignUserIdsWithHttpInfo( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject @@ -858,23 +884,25 @@ public ApiResponse batchAssignUserIdsWithHttpInfo( } /** - * Batch assign userIDs (asynchronously) - * Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. - * @param xAlgoliaUserID userID to assign. (required) - * @param batchAssignUserIdsObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Batch assign userIDs (asynchronously) Assign multiple userIDs to a cluster. Upon success, the + * response is 200 OK. A successful response indicates that the operation has been taken into + * account, and the userIDs are directly usable. + * + * @param xAlgoliaUserID userID to assign. (required) + * @param batchAssignUserIdsObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call batchAssignUserIdsAsync( Object xAlgoliaUserID, BatchAssignUserIdsObject batchAssignUserIdsObject, @@ -892,22 +920,24 @@ public okhttp3.Call batchAssignUserIdsAsync( } /** - * Build call for clearAllSynonyms - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for clearAllSynonyms + * + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call clearAllSynonymsCall( String indexName, Boolean forwardToReplicas, @@ -941,6 +971,7 @@ public okhttp3.Call clearAllSynonymsCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -982,22 +1013,24 @@ private okhttp3.Call clearAllSynonymsValidateBeforeCall( } /** - * Clear all synonyms. - * Remove all synonyms from an index. - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return ClearAllSynonymsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Clear all synonyms. Remove all synonyms from an index. + * + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return ClearAllSynonymsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ClearAllSynonymsResponse clearAllSynonyms( String indexName, Boolean forwardToReplicas @@ -1010,22 +1043,24 @@ public ClearAllSynonymsResponse clearAllSynonyms( } /** - * Clear all synonyms. - * Remove all synonyms from an index. - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return ApiResponse<ClearAllSynonymsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Clear all synonyms. Remove all synonyms from an index. + * + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return ApiResponse<ClearAllSynonymsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse clearAllSynonymsWithHttpInfo( String indexName, Boolean forwardToReplicas @@ -1041,23 +1076,24 @@ public ApiResponse clearAllSynonymsWithHttpInfo( } /** - * Clear all synonyms. (asynchronously) - * Remove all synonyms from an index. - * @param indexName The index in which to perform the request. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Clear all synonyms. (asynchronously) Remove all synonyms from an index. + * + * @param indexName The index in which to perform the request. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call clearAllSynonymsAsync( String indexName, Boolean forwardToReplicas, @@ -1075,21 +1111,22 @@ public okhttp3.Call clearAllSynonymsAsync( } /** - * Build call for deleteApiKey - * @param key API Key string. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for deleteApiKey + * + * @param key API Key string. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteApiKeyCall(String key, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -1114,6 +1151,7 @@ public okhttp3.Call deleteApiKeyCall(String key, final ApiCallback _callback) } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1150,21 +1188,22 @@ private okhttp3.Call deleteApiKeyValidateBeforeCall( } /** - * Delete an API key. - * Delete an existing API Key. - * @param key API Key string. (required) - * @return DeleteApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete an API key. Delete an existing API Key. + * + * @param key API Key string. (required) + * @return DeleteApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public DeleteApiKeyResponse deleteApiKey(String key) throws ApiException { ApiResponse localVarResp = deleteApiKeyWithHttpInfo( key @@ -1173,21 +1212,22 @@ public DeleteApiKeyResponse deleteApiKey(String key) throws ApiException { } /** - * Delete an API key. - * Delete an existing API Key. - * @param key API Key string. (required) - * @return ApiResponse<DeleteApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete an API key. Delete an existing API Key. + * + * @param key API Key string. (required) + * @return ApiResponse<DeleteApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse deleteApiKeyWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(key, null); @@ -1197,22 +1237,22 @@ public ApiResponse deleteApiKeyWithHttpInfo(String key) } /** - * Delete an API key. (asynchronously) - * Delete an existing API Key. - * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete an API key. (asynchronously) Delete an existing API Key. + * + * @param key API Key string. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteApiKeyAsync( String key, final ApiCallback _callback @@ -1225,21 +1265,22 @@ public okhttp3.Call deleteApiKeyAsync( } /** - * Build call for deleteIndex - * @param indexName The index in which to perform the request. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for deleteIndex + * + * @param indexName The index in which to perform the request. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteIndexCall( String indexName, final ApiCallback _callback @@ -1266,6 +1307,7 @@ public okhttp3.Call deleteIndexCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1302,21 +1344,22 @@ private okhttp3.Call deleteIndexValidateBeforeCall( } /** - * Delete index. - * Delete an existing index. - * @param indexName The index in which to perform the request. (required) - * @return DeleteIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete index. Delete an existing index. + * + * @param indexName The index in which to perform the request. (required) + * @return DeleteIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public DeleteIndexResponse deleteIndex(String indexName) throws ApiException { ApiResponse localVarResp = deleteIndexWithHttpInfo( indexName @@ -1325,21 +1368,22 @@ public DeleteIndexResponse deleteIndex(String indexName) throws ApiException { } /** - * Delete index. - * Delete an existing index. - * @param indexName The index in which to perform the request. (required) - * @return ApiResponse<DeleteIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete index. Delete an existing index. + * + * @param indexName The index in which to perform the request. (required) + * @return ApiResponse<DeleteIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse deleteIndexWithHttpInfo( String indexName ) throws ApiException { @@ -1349,22 +1393,22 @@ public ApiResponse deleteIndexWithHttpInfo( } /** - * Delete index. (asynchronously) - * Delete an existing index. - * @param indexName The index in which to perform the request. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete index. (asynchronously) Delete an existing index. + * + * @param indexName The index in which to perform the request. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteIndexAsync( String indexName, final ApiCallback _callback @@ -1379,17 +1423,18 @@ public okhttp3.Call deleteIndexAsync( } /** - * Build call for deleteSource - * @param source The IP range of the source. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Build call for deleteSource + * + * @param source The IP range of the source. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call deleteSourceCall( String source, final ApiCallback _callback @@ -1416,6 +1461,7 @@ public okhttp3.Call deleteSourceCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1452,17 +1498,18 @@ private okhttp3.Call deleteSourceValidateBeforeCall( } /** - * - * Remove a single source from the list of allowed sources. - * @param source The IP range of the source. (required) - * @return DeleteSourceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Remove a single source from the list of allowed sources. + * + * @param source The IP range of the source. (required) + * @return DeleteSourceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public DeleteSourceResponse deleteSource(String source) throws ApiException { ApiResponse localVarResp = deleteSourceWithHttpInfo( source @@ -1471,17 +1518,18 @@ public DeleteSourceResponse deleteSource(String source) throws ApiException { } /** - * - * Remove a single source from the list of allowed sources. - * @param source The IP range of the source. (required) - * @return ApiResponse<DeleteSourceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Remove a single source from the list of allowed sources. + * + * @param source The IP range of the source. (required) + * @return ApiResponse<DeleteSourceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public ApiResponse deleteSourceWithHttpInfo( String source ) throws ApiException { @@ -1492,18 +1540,18 @@ public ApiResponse deleteSourceWithHttpInfo( } /** - * (asynchronously) - * Remove a single source from the list of allowed sources. - * @param source The IP range of the source. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * (asynchronously) Remove a single source from the list of allowed sources. + * + * @param source The IP range of the source. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call deleteSourceAsync( String source, final ApiCallback _callback @@ -1519,23 +1567,25 @@ public okhttp3.Call deleteSourceAsync( } /** - * Build call for deleteSynonym - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for deleteSynonym + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteSynonymCall( String indexName, String objectID, @@ -1574,6 +1624,7 @@ public okhttp3.Call deleteSynonymCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1624,23 +1675,25 @@ private okhttp3.Call deleteSynonymValidateBeforeCall( } /** - * Delete synonym. - * Delete a single synonyms set, identified by the given objectID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return DeleteSynonymResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete synonym. Delete a single synonyms set, identified by the given objectID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return DeleteSynonymResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public DeleteSynonymResponse deleteSynonym( String indexName, String objectID, @@ -1655,23 +1708,25 @@ public DeleteSynonymResponse deleteSynonym( } /** - * Delete synonym. - * Delete a single synonyms set, identified by the given objectID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return ApiResponse<DeleteSynonymResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete synonym. Delete a single synonyms set, identified by the given objectID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return ApiResponse<DeleteSynonymResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse deleteSynonymWithHttpInfo( String indexName, String objectID, @@ -1689,24 +1744,26 @@ public ApiResponse deleteSynonymWithHttpInfo( } /** - * Delete synonym. (asynchronously) - * Delete a single synonyms set, identified by the given objectID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Delete synonym. (asynchronously) Delete a single synonyms set, identified by the given + * objectID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call deleteSynonymAsync( String indexName, String objectID, @@ -1726,21 +1783,22 @@ public okhttp3.Call deleteSynonymAsync( } /** - * Build call for getApiKey - * @param key API Key string. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getApiKey + * + * @param key API Key string. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getApiKeyCall(String key, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -1765,6 +1823,7 @@ public okhttp3.Call getApiKeyCall(String key, final ApiCallback _callback) } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1801,42 +1860,44 @@ private okhttp3.Call getApiKeyValidateBeforeCall( } /** - * Get an API key. - * Get the permissions of an API key. - * @param key API Key string. (required) - * @return KeyObject - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get an API key. Get the permissions of an API key. + * + * @param key API Key string. (required) + * @return KeyObject + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public KeyObject getApiKey(String key) throws ApiException { ApiResponse localVarResp = getApiKeyWithHttpInfo(key); return localVarResp.getData(); } /** - * Get an API key. - * Get the permissions of an API key. - * @param key API Key string. (required) - * @return ApiResponse<KeyObject> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get an API key. Get the permissions of an API key. + * + * @param key API Key string. (required) + * @return ApiResponse<KeyObject> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getApiKeyWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = getApiKeyValidateBeforeCall(key, null); @@ -1845,22 +1906,22 @@ public ApiResponse getApiKeyWithHttpInfo(String key) } /** - * Get an API key. (asynchronously) - * Get the permissions of an API key. - * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get an API key. (asynchronously) Get the permissions of an API key. + * + * @param key API Key string. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getApiKeyAsync( String key, final ApiCallback _callback @@ -1872,24 +1933,29 @@ public okhttp3.Call getApiKeyAsync( } /** - * Build call for getLogs - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getLogs + * + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, + * therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. + * (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are + * retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. + * (optional, default to all) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getLogsCall( Integer offset, Integer length, @@ -1931,6 +1997,7 @@ public okhttp3.Call getLogsCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -1969,24 +2036,29 @@ private okhttp3.Call getLogsValidateBeforeCall( } /** - * - * Return the lastest log entries. - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) - * @return GetLogsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Return the lastest log entries. + * + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, + * therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. + * (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are + * retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. + * (optional, default to all) + * @return GetLogsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public GetLogsResponse getLogs( Integer offset, Integer length, @@ -2003,24 +2075,29 @@ public GetLogsResponse getLogs( } /** - * - * Return the lastest log entries. - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) - * @return ApiResponse<GetLogsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Return the lastest log entries. + * + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, + * therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. + * (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are + * retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. + * (optional, default to all) + * @return ApiResponse<GetLogsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getLogsWithHttpInfo( Integer offset, Integer length, @@ -2039,25 +2116,29 @@ public ApiResponse getLogsWithHttpInfo( } /** - * (asynchronously) - * Return the lastest log entries. - * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry. (optional, default to 0) - * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. (optional, default to 10) - * @param indexName Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices. (optional) - * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. (optional, default to all) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Return the lastest log entries. + * + * @param offset First entry to retrieve (zero-based). Log entries are sorted by decreasing date, + * therefore 0 designates the most recent log entry. (optional, default to 0) + * @param length Maximum number of entries to retrieve. The maximum allowed value is 1000. + * (optional, default to 10) + * @param indexName Index for which log entries should be retrieved. When omitted, log entries are + * retrieved across all indices. (optional) + * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. + * (optional, default to all) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getLogsAsync( Integer offset, Integer length, @@ -2078,21 +2159,22 @@ public okhttp3.Call getLogsAsync( } /** - * Build call for getSettings - * @param indexName The index in which to perform the request. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getSettings + * + * @param indexName The index in which to perform the request. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSettingsCall( String indexName, final ApiCallback _callback @@ -2119,6 +2201,7 @@ public okhttp3.Call getSettingsCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2155,21 +2238,22 @@ private okhttp3.Call getSettingsValidateBeforeCall( } /** - * - * Retrieve settings of a given indexName. - * @param indexName The index in which to perform the request. (required) - * @return IndexSettings - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Retrieve settings of a given indexName. + * + * @param indexName The index in which to perform the request. (required) + * @return IndexSettings + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public IndexSettings getSettings(String indexName) throws ApiException { ApiResponse localVarResp = getSettingsWithHttpInfo( indexName @@ -2178,21 +2262,22 @@ public IndexSettings getSettings(String indexName) throws ApiException { } /** - * - * Retrieve settings of a given indexName. - * @param indexName The index in which to perform the request. (required) - * @return ApiResponse<IndexSettings> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Retrieve settings of a given indexName. + * + * @param indexName The index in which to perform the request. (required) + * @return ApiResponse<IndexSettings> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getSettingsWithHttpInfo(String indexName) throws ApiException { okhttp3.Call localVarCall = getSettingsValidateBeforeCall(indexName, null); @@ -2201,22 +2286,22 @@ public ApiResponse getSettingsWithHttpInfo(String indexName) } /** - * (asynchronously) - * Retrieve settings of a given indexName. - * @param indexName The index in which to perform the request. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Retrieve settings of a given indexName. + * + * @param indexName The index in which to perform the request. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSettingsAsync( String indexName, final ApiCallback _callback @@ -2231,16 +2316,17 @@ public okhttp3.Call getSettingsAsync( } /** - * Build call for getSources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Build call for getSources + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call getSourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -2261,6 +2347,7 @@ public okhttp3.Call getSourcesCall(final ApiCallback _callback) } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2289,32 +2376,34 @@ private okhttp3.Call getSourcesValidateBeforeCall( } /** - * - * List all allowed sources. - * @return List<Source> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * List all allowed sources. + * + * @return List<Source> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public List getSources() throws ApiException { ApiResponse> localVarResp = getSourcesWithHttpInfo(); return localVarResp.getData(); } /** - * - * List all allowed sources. - * @return ApiResponse<List<Source>> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * List all allowed sources. + * + * @return ApiResponse<List<Source>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public ApiResponse> getSourcesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getSourcesValidateBeforeCall(null); @@ -2323,17 +2412,17 @@ public ApiResponse> getSourcesWithHttpInfo() } /** - * (asynchronously) - * List all allowed sources. - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * (asynchronously) List all allowed sources. + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call getSourcesAsync( final ApiCallback> _callback ) throws ApiException { @@ -2344,22 +2433,23 @@ public okhttp3.Call getSourcesAsync( } /** - * Build call for getSynonym - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getSynonym + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSynonymCall( String indexName, String objectID, @@ -2391,6 +2481,7 @@ public okhttp3.Call getSynonymCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2435,22 +2526,23 @@ private okhttp3.Call getSynonymValidateBeforeCall( } /** - * Get synonym. - * Fetch a synonym object identified by its objectID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @return SynonymHit - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get synonym. Fetch a synonym object identified by its objectID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @return SynonymHit + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SynonymHit getSynonym(String indexName, String objectID) throws ApiException { ApiResponse localVarResp = getSynonymWithHttpInfo( @@ -2461,22 +2553,23 @@ public SynonymHit getSynonym(String indexName, String objectID) } /** - * Get synonym. - * Fetch a synonym object identified by its objectID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @return ApiResponse<SynonymHit> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get synonym. Fetch a synonym object identified by its objectID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @return ApiResponse<SynonymHit> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getSynonymWithHttpInfo( String indexName, String objectID @@ -2491,23 +2584,23 @@ public ApiResponse getSynonymWithHttpInfo( } /** - * Get synonym. (asynchronously) - * Fetch a synonym object identified by its objectID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get synonym. (asynchronously) Fetch a synonym object identified by its objectID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getSynonymAsync( String indexName, String objectID, @@ -2524,22 +2617,23 @@ public okhttp3.Call getSynonymAsync( } /** - * Build call for getTask - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getTask + * + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTaskCall( String indexName, Integer taskID, @@ -2571,6 +2665,7 @@ public okhttp3.Call getTaskCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2615,22 +2710,23 @@ private okhttp3.Call getTaskValidateBeforeCall( } /** - * - * Check the current status of a given task. - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @return GetTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Check the current status of a given task. + * + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @return GetTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public GetTaskResponse getTask(String indexName, Integer taskID) throws ApiException { ApiResponse localVarResp = getTaskWithHttpInfo( @@ -2641,22 +2737,23 @@ public GetTaskResponse getTask(String indexName, Integer taskID) } /** - * - * Check the current status of a given task. - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @return ApiResponse<GetTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Check the current status of a given task. + * + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @return ApiResponse<GetTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getTaskWithHttpInfo( String indexName, Integer taskID @@ -2671,23 +2768,23 @@ public ApiResponse getTaskWithHttpInfo( } /** - * (asynchronously) - * Check the current status of a given task. - * @param indexName The index in which to perform the request. (required) - * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Check the current status of a given task. + * + * @param indexName The index in which to perform the request. (required) + * @param taskID Unique identifier of an task. Numeric value (up to 64bits) (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTaskAsync( String indexName, Integer taskID, @@ -2704,20 +2801,21 @@ public okhttp3.Call getTaskAsync( } /** - * Build call for getTopUserIds - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getTopUserIds + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTopUserIdsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -2738,6 +2836,7 @@ public okhttp3.Call getTopUserIdsCall(final ApiCallback _callback) } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2766,40 +2865,48 @@ private okhttp3.Call getTopUserIdsValidateBeforeCall( } /** - * Get top userID - * Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters. - * @return GetTopUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get top userID Get the top 10 userIDs with the highest number of records per cluster. The data + * returned will usually be a few seconds behind real time, because userID usage may take up to a + * few seconds to propagate to the different clusters. Upon success, the response is 200 OK and + * contains the following array of userIDs and clusters. + * + * @return GetTopUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public GetTopUserIdsResponse getTopUserIds() throws ApiException { ApiResponse localVarResp = getTopUserIdsWithHttpInfo(); return localVarResp.getData(); } /** - * Get top userID - * Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters. - * @return ApiResponse<GetTopUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get top userID Get the top 10 userIDs with the highest number of records per cluster. The data + * returned will usually be a few seconds behind real time, because userID usage may take up to a + * few seconds to propagate to the different clusters. Upon success, the response is 200 OK and + * contains the following array of userIDs and clusters. + * + * @return ApiResponse<GetTopUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getTopUserIdsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTopUserIdsValidateBeforeCall(null); @@ -2809,21 +2916,24 @@ public ApiResponse getTopUserIdsWithHttpInfo() } /** - * Get top userID (asynchronously) - * Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters. - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get top userID (asynchronously) Get the top 10 userIDs with the highest number of records per + * cluster. The data returned will usually be a few seconds behind real time, because userID usage + * may take up to a few seconds to propagate to the different clusters. Upon success, the response + * is 200 OK and contains the following array of userIDs and clusters. + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getTopUserIdsAsync( final ApiCallback _callback ) throws ApiException { @@ -2835,21 +2945,22 @@ public okhttp3.Call getTopUserIdsAsync( } /** - * Build call for getUserId - * @param userID userID to assign. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for getUserId + * + * @param userID userID to assign. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getUserIdCall(Object userID, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -2874,6 +2985,7 @@ public okhttp3.Call getUserIdCall(Object userID, final ApiCallback _callback) } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2910,42 +3022,50 @@ private okhttp3.Call getUserIdValidateBeforeCall( } /** - * Get userID - * Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data. - * @param userID userID to assign. (required) - * @return UserId - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get userID Returns the userID data stored in the mapping. The data returned will usually be a + * few seconds behind real time, because userID usage may take up to a few seconds to propagate to + * the different clusters. Upon success, the response is 200 OK and contains the following userID + * data. + * + * @param userID userID to assign. (required) + * @return UserId + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public UserId getUserId(Object userID) throws ApiException { ApiResponse localVarResp = getUserIdWithHttpInfo(userID); return localVarResp.getData(); } /** - * Get userID - * Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data. - * @param userID userID to assign. (required) - * @return ApiResponse<UserId> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get userID Returns the userID data stored in the mapping. The data returned will usually be a + * few seconds behind real time, because userID usage may take up to a few seconds to propagate to + * the different clusters. Upon success, the response is 200 OK and contains the following userID + * data. + * + * @param userID userID to assign. (required) + * @return ApiResponse<UserId> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse getUserIdWithHttpInfo(Object userID) throws ApiException { okhttp3.Call localVarCall = getUserIdValidateBeforeCall(userID, null); @@ -2954,22 +3074,25 @@ public ApiResponse getUserIdWithHttpInfo(Object userID) } /** - * Get userID (asynchronously) - * Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data. - * @param userID userID to assign. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get userID (asynchronously) Returns the userID data stored in the mapping. The data returned + * will usually be a few seconds behind real time, because userID usage may take up to a few + * seconds to propagate to the different clusters. Upon success, the response is 200 OK and + * contains the following userID data. + * + * @param userID userID to assign. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call getUserIdAsync( Object userID, final ApiCallback _callback @@ -2981,21 +3104,22 @@ public okhttp3.Call getUserIdAsync( } /** - * Build call for hasPendingMappings - * @param getClusters (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for hasPendingMappings + * + * @param getClusters (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call hasPendingMappingsCall( Boolean getClusters, final ApiCallback _callback @@ -3024,6 +3148,7 @@ public okhttp3.Call hasPendingMappingsCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3053,21 +3178,26 @@ private okhttp3.Call hasPendingMappingsValidateBeforeCall( } /** - * Has pending mappings - * Get the status of your clusters’ migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it’s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. - * @param getClusters (optional) - * @return HasPendingMappingsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Has pending mappings Get the status of your clusters’ migrations or user creations. Creating a + * large batch of users or migrating your multi-cluster may take quite some time. This method lets + * you retrieve the status of the migration, so you can know when it’s done. Upon success, the + * response is 200 OK. A successful response indicates that the operation has been taken into + * account, and the userIDs are directly usable. + * + * @param getClusters (optional) + * @return HasPendingMappingsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public HasPendingMappingsResponse hasPendingMappings(Boolean getClusters) throws ApiException { ApiResponse localVarResp = hasPendingMappingsWithHttpInfo( @@ -3077,21 +3207,26 @@ public HasPendingMappingsResponse hasPendingMappings(Boolean getClusters) } /** - * Has pending mappings - * Get the status of your clusters’ migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it’s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. - * @param getClusters (optional) - * @return ApiResponse<HasPendingMappingsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Has pending mappings Get the status of your clusters’ migrations or user creations. Creating a + * large batch of users or migrating your multi-cluster may take quite some time. This method lets + * you retrieve the status of the migration, so you can know when it’s done. Upon success, the + * response is 200 OK. A successful response indicates that the operation has been taken into + * account, and the userIDs are directly usable. + * + * @param getClusters (optional) + * @return ApiResponse<HasPendingMappingsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse hasPendingMappingsWithHttpInfo( Boolean getClusters ) throws ApiException { @@ -3105,22 +3240,26 @@ public ApiResponse hasPendingMappingsWithHttpInfo( } /** - * Has pending mappings (asynchronously) - * Get the status of your clusters’ migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it’s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable. - * @param getClusters (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Has pending mappings (asynchronously) Get the status of your clusters’ migrations or user + * creations. Creating a large batch of users or migrating your multi-cluster may take quite some + * time. This method lets you retrieve the status of the migration, so you can know when it’s + * done. Upon success, the response is 200 OK. A successful response indicates that the operation + * has been taken into account, and the userIDs are directly usable. + * + * @param getClusters (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call hasPendingMappingsAsync( Boolean getClusters, final ApiCallback _callback @@ -3136,20 +3275,21 @@ public okhttp3.Call hasPendingMappingsAsync( } /** - * Build call for listApiKeys - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listApiKeys + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listApiKeysCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -3170,6 +3310,7 @@ public okhttp3.Call listApiKeysCall(final ApiCallback _callback) } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3198,40 +3339,42 @@ private okhttp3.Call listApiKeysValidateBeforeCall( } /** - * Get the full list of API Keys. - * List API keys, along with their associated rights. - * @return ListApiKeysResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get the full list of API Keys. List API keys, along with their associated rights. + * + * @return ListApiKeysResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListApiKeysResponse listApiKeys() throws ApiException { ApiResponse localVarResp = listApiKeysWithHttpInfo(); return localVarResp.getData(); } /** - * Get the full list of API Keys. - * List API keys, along with their associated rights. - * @return ApiResponse<ListApiKeysResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get the full list of API Keys. List API keys, along with their associated rights. + * + * @return ApiResponse<ListApiKeysResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listApiKeysWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listApiKeysValidateBeforeCall(null); @@ -3240,21 +3383,22 @@ public ApiResponse listApiKeysWithHttpInfo() } /** - * Get the full list of API Keys. (asynchronously) - * List API keys, along with their associated rights. - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get the full list of API Keys. (asynchronously) List API keys, along with their associated + * rights. + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listApiKeysAsync( final ApiCallback _callback ) throws ApiException { @@ -3265,20 +3409,21 @@ public okhttp3.Call listApiKeysAsync( } /** - * Build call for listClusters - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listClusters + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listClustersCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -3299,6 +3444,7 @@ public okhttp3.Call listClustersCall(final ApiCallback _callback) } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3327,40 +3473,44 @@ private okhttp3.Call listClustersValidateBeforeCall( } /** - * List clusters - * List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters. - * @return ListClustersResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List clusters List the clusters available in a multi-clusters setup for a single appID. Upon + * success, the response is 200 OK and contains the following clusters. + * + * @return ListClustersResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListClustersResponse listClusters() throws ApiException { ApiResponse localVarResp = listClustersWithHttpInfo(); return localVarResp.getData(); } /** - * List clusters - * List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters. - * @return ApiResponse<ListClustersResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List clusters List the clusters available in a multi-clusters setup for a single appID. Upon + * success, the response is 200 OK and contains the following clusters. + * + * @return ApiResponse<ListClustersResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listClustersWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listClustersValidateBeforeCall(null); @@ -3370,21 +3520,22 @@ public ApiResponse listClustersWithHttpInfo() } /** - * List clusters (asynchronously) - * List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters. - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List clusters (asynchronously) List the clusters available in a multi-clusters setup for a + * single appID. Upon success, the response is 200 OK and contains the following clusters. + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listClustersAsync( final ApiCallback _callback ) throws ApiException { @@ -3396,21 +3547,24 @@ public okhttp3.Call listClustersAsync( } /** - * Build call for listIndices - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listIndices + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listIndicesCall( Integer page, final ApiCallback _callback @@ -3437,6 +3591,7 @@ public okhttp3.Call listIndicesCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3466,21 +3621,24 @@ private okhttp3.Call listIndicesValidateBeforeCall( } /** - * List existing indexes. - * List existing indexes from an application. - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @return ListIndicesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List existing indexes. List existing indexes from an application. + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @return ListIndicesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListIndicesResponse listIndices(Integer page) throws ApiException { ApiResponse localVarResp = listIndicesWithHttpInfo( page @@ -3489,21 +3647,24 @@ public ListIndicesResponse listIndices(Integer page) throws ApiException { } /** - * List existing indexes. - * List existing indexes from an application. - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @return ApiResponse<ListIndicesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List existing indexes. List existing indexes from an application. + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @return ApiResponse<ListIndicesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listIndicesWithHttpInfo(Integer page) throws ApiException { okhttp3.Call localVarCall = listIndicesValidateBeforeCall(page, null); @@ -3512,22 +3673,24 @@ public ApiResponse listIndicesWithHttpInfo(Integer page) } /** - * List existing indexes. (asynchronously) - * List existing indexes from an application. - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List existing indexes. (asynchronously) List existing indexes from an application. + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listIndicesAsync( Integer page, final ApiCallback _callback @@ -3539,22 +3702,25 @@ public okhttp3.Call listIndicesAsync( } /** - * Build call for listUserIds - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for listUserIds + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listUserIdsCall( Integer page, Integer hitsPerPage, @@ -3588,6 +3754,7 @@ public okhttp3.Call listUserIdsCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3618,22 +3785,28 @@ private okhttp3.Call listUserIdsValidateBeforeCall( } /** - * List userIDs - * List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data. - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return ListUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List userIDs List the userIDs assigned to a multi-clusters appID. The data returned will + * usually be a few seconds behind real time, because userID usage may take up to a few seconds to + * propagate to the different clusters. Upon success, the response is 200 OK and contains the + * following userIDs data. + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return ListUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ListUserIdsResponse listUserIds(Integer page, Integer hitsPerPage) throws ApiException { ApiResponse localVarResp = listUserIdsWithHttpInfo( @@ -3644,22 +3817,28 @@ public ListUserIdsResponse listUserIds(Integer page, Integer hitsPerPage) } /** - * List userIDs - * List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data. - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return ApiResponse<ListUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List userIDs List the userIDs assigned to a multi-clusters appID. The data returned will + * usually be a few seconds behind real time, because userID usage may take up to a few seconds to + * propagate to the different clusters. Upon success, the response is 200 OK and contains the + * following userIDs data. + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return ApiResponse<ListUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse listUserIdsWithHttpInfo( Integer page, Integer hitsPerPage @@ -3674,23 +3853,28 @@ public ApiResponse listUserIdsWithHttpInfo( } /** - * List userIDs (asynchronously) - * List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data. - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * List userIDs (asynchronously) List the userIDs assigned to a multi-clusters appID. The data + * returned will usually be a few seconds behind real time, because userID usage may take up to a + * few seconds to propagate to the different clusters. Upon success, the response is 200 OK and + * contains the following userIDs data. + * + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call listUserIdsAsync( Integer page, Integer hitsPerPage, @@ -3707,21 +3891,22 @@ public okhttp3.Call listUserIdsAsync( } /** - * Build call for multipleQueries - * @param multipleQueriesObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for multipleQueries + * + * @param multipleQueriesObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call multipleQueriesCall( MultipleQueriesObject multipleQueriesObject, final ApiCallback _callback @@ -3771,7 +3956,8 @@ private okhttp3.Call multipleQueriesValidateBeforeCall( // verify the required parameter 'multipleQueriesObject' is set if (multipleQueriesObject == null) { throw new ApiException( - "Missing the required parameter 'multipleQueriesObject' when calling multipleQueries(Async)" + "Missing the required parameter 'multipleQueriesObject' when calling" + + " multipleQueries(Async)" ); } @@ -3783,21 +3969,22 @@ private okhttp3.Call multipleQueriesValidateBeforeCall( } /** - * - * Get search results for the given requests. - * @param multipleQueriesObject (required) - * @return MultipleQueriesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get search results for the given requests. + * + * @param multipleQueriesObject (required) + * @return MultipleQueriesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public MultipleQueriesResponse multipleQueries( MultipleQueriesObject multipleQueriesObject ) throws ApiException { @@ -3808,21 +3995,22 @@ public MultipleQueriesResponse multipleQueries( } /** - * - * Get search results for the given requests. - * @param multipleQueriesObject (required) - * @return ApiResponse<MultipleQueriesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get search results for the given requests. + * + * @param multipleQueriesObject (required) + * @return ApiResponse<MultipleQueriesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse multipleQueriesWithHttpInfo( MultipleQueriesObject multipleQueriesObject ) throws ApiException { @@ -3836,22 +4024,22 @@ public ApiResponse multipleQueriesWithHttpInfo( } /** - * (asynchronously) - * Get search results for the given requests. - * @param multipleQueriesObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Get search results for the given requests. + * + * @param multipleQueriesObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call multipleQueriesAsync( MultipleQueriesObject multipleQueriesObject, final ApiCallback _callback @@ -3867,22 +4055,23 @@ public okhttp3.Call multipleQueriesAsync( } /** - * Build call for operationIndex - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for operationIndex + * + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call operationIndexCall( String indexName, OperationIndexObject operationIndexObject, @@ -3945,7 +4134,8 @@ private okhttp3.Call operationIndexValidateBeforeCall( // verify the required parameter 'operationIndexObject' is set if (operationIndexObject == null) { throw new ApiException( - "Missing the required parameter 'operationIndexObject' when calling operationIndex(Async)" + "Missing the required parameter 'operationIndexObject' when calling" + + " operationIndex(Async)" ); } @@ -3958,22 +4148,23 @@ private okhttp3.Call operationIndexValidateBeforeCall( } /** - * Copy/move index. - * Peforms a copy or a move operation on a index. - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @return OperationIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Copy/move index. Peforms a copy or a move operation on a index. + * + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @return OperationIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public OperationIndexResponse operationIndex( String indexName, OperationIndexObject operationIndexObject @@ -3986,22 +4177,23 @@ public OperationIndexResponse operationIndex( } /** - * Copy/move index. - * Peforms a copy or a move operation on a index. - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @return ApiResponse<OperationIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Copy/move index. Peforms a copy or a move operation on a index. + * + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @return ApiResponse<OperationIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse operationIndexWithHttpInfo( String indexName, OperationIndexObject operationIndexObject @@ -4017,23 +4209,23 @@ public ApiResponse operationIndexWithHttpInfo( } /** - * Copy/move index. (asynchronously) - * Peforms a copy or a move operation on a index. - * @param indexName The index in which to perform the request. (required) - * @param operationIndexObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Copy/move index. (asynchronously) Peforms a copy or a move operation on a index. + * + * @param indexName The index in which to perform the request. (required) + * @param operationIndexObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call operationIndexAsync( String indexName, OperationIndexObject operationIndexObject, @@ -4051,21 +4243,22 @@ public okhttp3.Call operationIndexAsync( } /** - * Build call for removeUserId - * @param userID userID to assign. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for removeUserId + * + * @param userID userID to assign. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call removeUserIdCall( Object userID, final ApiCallback _callback @@ -4092,6 +4285,7 @@ public okhttp3.Call removeUserIdCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -4128,21 +4322,23 @@ private okhttp3.Call removeUserIdValidateBeforeCall( } /** - * Remove userID - * Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping. - * @param userID userID to assign. (required) - * @return RemoveUserIdResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Remove userID Remove a userID and its associated data from the multi-clusters. Upon success, + * the response is 200 OK and a task is created to remove the userID data and mapping. + * + * @param userID userID to assign. (required) + * @return RemoveUserIdResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public RemoveUserIdResponse removeUserId(Object userID) throws ApiException { ApiResponse localVarResp = removeUserIdWithHttpInfo( userID @@ -4151,21 +4347,23 @@ public RemoveUserIdResponse removeUserId(Object userID) throws ApiException { } /** - * Remove userID - * Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping. - * @param userID userID to assign. (required) - * @return ApiResponse<RemoveUserIdResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Remove userID Remove a userID and its associated data from the multi-clusters. Upon success, + * the response is 200 OK and a task is created to remove the userID data and mapping. + * + * @param userID userID to assign. (required) + * @return ApiResponse<RemoveUserIdResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse removeUserIdWithHttpInfo( Object userID ) throws ApiException { @@ -4176,22 +4374,24 @@ public ApiResponse removeUserIdWithHttpInfo( } /** - * Remove userID (asynchronously) - * Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping. - * @param userID userID to assign. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Remove userID (asynchronously) Remove a userID and its associated data from the multi-clusters. + * Upon success, the response is 200 OK and a task is created to remove the userID data and + * mapping. + * + * @param userID userID to assign. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call removeUserIdAsync( Object userID, final ApiCallback _callback @@ -4207,17 +4407,18 @@ public okhttp3.Call removeUserIdAsync( } /** - * Build call for replaceSources - * @param source The sources to allow (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Build call for replaceSources + * + * @param source The sources to allow (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call replaceSourcesCall( List source, final ApiCallback _callback @@ -4276,17 +4477,18 @@ private okhttp3.Call replaceSourcesValidateBeforeCall( } /** - * - * Replace all allowed sources. - * @param source The sources to allow (required) - * @return ReplaceSourceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Replace all allowed sources. + * + * @param source The sources to allow (required) + * @return ReplaceSourceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public ReplaceSourceResponse replaceSources(List source) throws ApiException { ApiResponse localVarResp = replaceSourcesWithHttpInfo( @@ -4296,17 +4498,18 @@ public ReplaceSourceResponse replaceSources(List source) } /** - * - * Replace all allowed sources. - * @param source The sources to allow (required) - * @return ApiResponse<ReplaceSourceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * Replace all allowed sources. + * + * @param source The sources to allow (required) + * @return ApiResponse<ReplaceSourceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public ApiResponse replaceSourcesWithHttpInfo( List source ) throws ApiException { @@ -4317,18 +4520,18 @@ public ApiResponse replaceSourcesWithHttpInfo( } /** - * (asynchronously) - * Replace all allowed sources. - * @param source The sources to allow (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ + * (asynchronously) Replace all allowed sources. + * + * @param source The sources to allow (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 OK -
+ */ public okhttp3.Call replaceSourcesAsync( List source, final ApiCallback _callback @@ -4344,21 +4547,22 @@ public okhttp3.Call replaceSourcesAsync( } /** - * Build call for restoreApiKey - * @param key API Key string. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for restoreApiKey + * + * @param key API Key string. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call restoreApiKeyCall( String key, final ApiCallback _callback @@ -4385,6 +4589,7 @@ public okhttp3.Call restoreApiKeyCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -4421,21 +4626,22 @@ private okhttp3.Call restoreApiKeyValidateBeforeCall( } /** - * Restore an API key. - * Restore a deleted API key, along with its associated rights. - * @param key API Key string. (required) - * @return AddApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Restore an API key. Restore a deleted API key, along with its associated rights. + * + * @param key API Key string. (required) + * @return AddApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public AddApiKeyResponse restoreApiKey(String key) throws ApiException { ApiResponse localVarResp = restoreApiKeyWithHttpInfo( key @@ -4444,21 +4650,22 @@ public AddApiKeyResponse restoreApiKey(String key) throws ApiException { } /** - * Restore an API key. - * Restore a deleted API key, along with its associated rights. - * @param key API Key string. (required) - * @return ApiResponse<AddApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Restore an API key. Restore a deleted API key, along with its associated rights. + * + * @param key API Key string. (required) + * @return ApiResponse<AddApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse restoreApiKeyWithHttpInfo(String key) throws ApiException { okhttp3.Call localVarCall = restoreApiKeyValidateBeforeCall(key, null); @@ -4467,22 +4674,23 @@ public ApiResponse restoreApiKeyWithHttpInfo(String key) } /** - * Restore an API key. (asynchronously) - * Restore a deleted API key, along with its associated rights. - * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Restore an API key. (asynchronously) Restore a deleted API key, along with its associated + * rights. + * + * @param key API Key string. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call restoreApiKeyAsync( String key, final ApiCallback _callback @@ -4494,22 +4702,23 @@ public okhttp3.Call restoreApiKeyAsync( } /** - * Build call for saveObject - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for saveObject + * + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveObjectCall( String indexName, Map requestBody, @@ -4585,22 +4794,23 @@ private okhttp3.Call saveObjectValidateBeforeCall( } /** - * - * Add an object to the index, automatically assigning it an object ID. - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @return SaveObjectResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Add an object to the index, automatically assigning it an object ID. + * + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @return SaveObjectResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SaveObjectResponse saveObject( String indexName, Map requestBody @@ -4613,22 +4823,23 @@ public SaveObjectResponse saveObject( } /** - * - * Add an object to the index, automatically assigning it an object ID. - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @return ApiResponse<SaveObjectResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Add an object to the index, automatically assigning it an object ID. + * + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @return ApiResponse<SaveObjectResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse saveObjectWithHttpInfo( String indexName, Map requestBody @@ -4643,23 +4854,23 @@ public ApiResponse saveObjectWithHttpInfo( } /** - * (asynchronously) - * Add an object to the index, automatically assigning it an object ID. - * @param indexName The index in which to perform the request. (required) - * @param requestBody The Algolia object. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Add an object to the index, automatically assigning it an object ID. + * + * @param indexName The index in which to perform the request. (required) + * @param requestBody The Algolia object. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveObjectAsync( String indexName, Map requestBody, @@ -4676,24 +4887,26 @@ public okhttp3.Call saveObjectAsync( } /** - * Build call for saveSynonym - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for saveSynonym + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymCall( String indexName, String objectID, @@ -4792,24 +5005,27 @@ private okhttp3.Call saveSynonymValidateBeforeCall( } /** - * Save synonym. - * Create a new synonym object or update the existing synonym object with the given object ID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return SaveSynonymResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save synonym. Create a new synonym object or update the existing synonym object with the given + * object ID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return SaveSynonymResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SaveSynonymResponse saveSynonym( String indexName, String objectID, @@ -4826,24 +5042,27 @@ public SaveSynonymResponse saveSynonym( } /** - * Save synonym. - * Create a new synonym object or update the existing synonym object with the given object ID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return ApiResponse<SaveSynonymResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save synonym. Create a new synonym object or update the existing synonym object with the given + * object ID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return ApiResponse<SaveSynonymResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse saveSynonymWithHttpInfo( String indexName, String objectID, @@ -4862,25 +5081,27 @@ public ApiResponse saveSynonymWithHttpInfo( } /** - * Save synonym. (asynchronously) - * Create a new synonym object or update the existing synonym object with the given object ID. - * @param indexName The index in which to perform the request. (required) - * @param objectID Unique identifier of an object. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save synonym. (asynchronously) Create a new synonym object or update the existing synonym + * object with the given object ID. + * + * @param indexName The index in which to perform the request. (required) + * @param objectID Unique identifier of an object. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymAsync( String indexName, String objectID, @@ -4901,24 +5122,27 @@ public okhttp3.Call saveSynonymAsync( } /** - * Build call for saveSynonyms - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for saveSynonyms + * + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this + * request. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymsCall( String indexName, List synonymHit, @@ -5012,24 +5236,28 @@ private okhttp3.Call saveSynonymsValidateBeforeCall( } /** - * Save a batch of synonyms. - * Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) - * @return SaveSynonymsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save a batch of synonyms. Create/update multiple synonym objects at once, potentially replacing + * the entire list of synonyms if replaceExistingSynonyms is true. + * + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this + * request. (optional) + * @return SaveSynonymsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SaveSynonymsResponse saveSynonyms( String indexName, List synonymHit, @@ -5046,24 +5274,28 @@ public SaveSynonymsResponse saveSynonyms( } /** - * Save a batch of synonyms. - * Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) - * @return ApiResponse<SaveSynonymsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save a batch of synonyms. Create/update multiple synonym objects at once, potentially replacing + * the entire list of synonyms if replaceExistingSynonyms is true. + * + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this + * request. (optional) + * @return ApiResponse<SaveSynonymsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse saveSynonymsWithHttpInfo( String indexName, List synonymHit, @@ -5083,25 +5315,28 @@ public ApiResponse saveSynonymsWithHttpInfo( } /** - * Save a batch of synonyms. (asynchronously) - * Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. - * @param indexName The index in which to perform the request. (required) - * @param synonymHit (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this request. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Save a batch of synonyms. (asynchronously) Create/update multiple synonym objects at once, + * potentially replacing the entire list of synonyms if replaceExistingSynonyms is true. + * + * @param indexName The index in which to perform the request. (required) + * @param synonymHit (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this + * request. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call saveSynonymsAsync( String indexName, List synonymHit, @@ -5123,22 +5358,23 @@ public okhttp3.Call saveSynonymsAsync( } /** - * Build call for search - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for search + * + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchCall( String indexName, SearchParams searchParams, @@ -5210,22 +5446,23 @@ private okhttp3.Call searchValidateBeforeCall( } /** - * - * Get search results. - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @return SearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get search results. + * + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @return SearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SearchResponse search(String indexName, SearchParams searchParams) throws ApiException { ApiResponse localVarResp = searchWithHttpInfo( @@ -5236,22 +5473,23 @@ public SearchResponse search(String indexName, SearchParams searchParams) } /** - * - * Get search results. - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @return ApiResponse<SearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get search results. + * + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @return ApiResponse<SearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse searchWithHttpInfo( String indexName, SearchParams searchParams @@ -5266,23 +5504,23 @@ public ApiResponse searchWithHttpInfo( } /** - * (asynchronously) - * Get search results. - * @param indexName The index in which to perform the request. (required) - * @param searchParams (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Get search results. + * + * @param indexName The index in which to perform the request. (required) + * @param searchParams (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchAsync( String indexName, SearchParams searchParams, @@ -5299,25 +5537,28 @@ public okhttp3.Call searchAsync( } /** - * Build call for searchSynonyms - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for searchSynonyms + * + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchSynonymsCall( String indexName, String query, @@ -5366,6 +5607,7 @@ public okhttp3.Call searchSynonymsCall( } final String[] localVarContentTypes = {}; + final String localVarContentType = this.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -5413,25 +5655,29 @@ private okhttp3.Call searchSynonymsValidateBeforeCall( } /** - * Get all synonyms that match a query. - * Search or browse all synonyms, optionally filtering them by type. - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return SearchSynonymsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get all synonyms that match a query. Search or browse all synonyms, optionally filtering them + * by type. + * + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return SearchSynonymsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SearchSynonymsResponse searchSynonyms( String indexName, String query, @@ -5450,25 +5696,29 @@ public SearchSynonymsResponse searchSynonyms( } /** - * Get all synonyms that match a query. - * Search or browse all synonyms, optionally filtering them by type. - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @return ApiResponse<SearchSynonymsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get all synonyms that match a query. Search or browse all synonyms, optionally filtering them + * by type. + * + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @return ApiResponse<SearchSynonymsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse searchSynonymsWithHttpInfo( String indexName, String query, @@ -5490,26 +5740,29 @@ public ApiResponse searchSynonymsWithHttpInfo( } /** - * Get all synonyms that match a query. (asynchronously) - * Search or browse all synonyms, optionally filtering them by type. - * @param indexName The index in which to perform the request. (required) - * @param query Search for specific synonyms matching this string. (optional, default to ) - * @param type Only search for specific types of synonyms. (optional) - * @param page Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). (optional, default to 0) - * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Get all synonyms that match a query. (asynchronously) Search or browse all synonyms, optionally + * filtering them by type. + * + * @param indexName The index in which to perform the request. (required) + * @param query Search for specific synonyms matching this string. (optional, default to ) + * @param type Only search for specific types of synonyms. (optional) + * @param page Requested page (zero-based). When specified, will retrieve a specific page; the + * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). + * (optional, default to 0) + * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchSynonymsAsync( String indexName, String query, @@ -5533,21 +5786,22 @@ public okhttp3.Call searchSynonymsAsync( } /** - * Build call for searchUserIds - * @param searchUserIdsObject (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for searchUserIds + * + * @param searchUserIdsObject (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchUserIdsCall( SearchUserIdsObject searchUserIdsObject, final ApiCallback _callback @@ -5609,21 +5863,28 @@ private okhttp3.Call searchUserIdsValidateBeforeCall( } /** - * Search userID - * Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn't built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data. - * @param searchUserIdsObject (required) - * @return SearchUserIdsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Search userID Search for userIDs. The data returned will usually be a few seconds behind real + * time, because userID usage may take up to a few seconds propagate to the different clusters. To + * keep updates moving quickly, the index of userIDs isn't built synchronously with the + * mapping. Instead, the index is built once every 12h, at the same time as the update of userID + * usage. For example, when you perform a modification like adding or moving a userID, the search + * will report an outdated value until the next rebuild of the mapping, which takes place every + * 12h. Upon success, the response is 200 OK and contains the following userIDs data. + * + * @param searchUserIdsObject (required) + * @return SearchUserIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SearchUserIdsResponse searchUserIds( SearchUserIdsObject searchUserIdsObject ) throws ApiException { @@ -5634,21 +5895,28 @@ public SearchUserIdsResponse searchUserIds( } /** - * Search userID - * Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn't built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data. - * @param searchUserIdsObject (required) - * @return ApiResponse<SearchUserIdsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Search userID Search for userIDs. The data returned will usually be a few seconds behind real + * time, because userID usage may take up to a few seconds propagate to the different clusters. To + * keep updates moving quickly, the index of userIDs isn't built synchronously with the + * mapping. Instead, the index is built once every 12h, at the same time as the update of userID + * usage. For example, when you perform a modification like adding or moving a userID, the search + * will report an outdated value until the next rebuild of the mapping, which takes place every + * 12h. Upon success, the response is 200 OK and contains the following userIDs data. + * + * @param searchUserIdsObject (required) + * @return ApiResponse<SearchUserIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse searchUserIdsWithHttpInfo( SearchUserIdsObject searchUserIdsObject ) throws ApiException { @@ -5662,22 +5930,29 @@ public ApiResponse searchUserIdsWithHttpInfo( } /** - * Search userID (asynchronously) - * Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn't built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data. - * @param searchUserIdsObject (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Search userID (asynchronously) Search for userIDs. The data returned will usually be a few + * seconds behind real time, because userID usage may take up to a few seconds propagate to the + * different clusters. To keep updates moving quickly, the index of userIDs isn't built + * synchronously with the mapping. Instead, the index is built once every 12h, at the same time as + * the update of userID usage. For example, when you perform a modification like adding or moving + * a userID, the search will report an outdated value until the next rebuild of the mapping, which + * takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs + * data. + * + * @param searchUserIdsObject (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call searchUserIdsAsync( SearchUserIdsObject searchUserIdsObject, final ApiCallback _callback @@ -5693,23 +5968,25 @@ public okhttp3.Call searchUserIdsAsync( } /** - * Build call for setSettings - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for setSettings + * + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call setSettingsCall( String indexName, IndexSettings indexSettings, @@ -5794,23 +6071,26 @@ private okhttp3.Call setSettingsValidateBeforeCall( } /** - * - * Update settings of a given indexName. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value. - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return SetSettingsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update settings of a given indexName. Only specified settings are overridden; unspecified + * settings are left unchanged. Specifying null for a setting resets it to its default value. + * + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return SetSettingsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public SetSettingsResponse setSettings( String indexName, IndexSettings indexSettings, @@ -5825,23 +6105,26 @@ public SetSettingsResponse setSettings( } /** - * - * Update settings of a given indexName. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value. - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @return ApiResponse<SetSettingsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update settings of a given indexName. Only specified settings are overridden; unspecified + * settings are left unchanged. Specifying null for a setting resets it to its default value. + * + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @return ApiResponse<SetSettingsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse setSettingsWithHttpInfo( String indexName, IndexSettings indexSettings, @@ -5858,24 +6141,27 @@ public ApiResponse setSettingsWithHttpInfo( } /** - * (asynchronously) - * Update settings of a given indexName. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value. - * @param indexName The index in which to perform the request. (required) - * @param indexSettings (required) - * @param forwardToReplicas When true, changes are also propagated to replicas of the given indexName. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * (asynchronously) Update settings of a given indexName. Only specified settings are overridden; + * unspecified settings are left unchanged. Specifying null for a setting resets it to its default + * value. + * + * @param indexName The index in which to perform the request. (required) + * @param indexSettings (required) + * @param forwardToReplicas When true, changes are also propagated to replicas of the given + * indexName. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call setSettingsAsync( String indexName, IndexSettings indexSettings, @@ -5894,22 +6180,23 @@ public okhttp3.Call setSettingsAsync( } /** - * Build call for updateApiKey - * @param key API Key string. (required) - * @param apiKey (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Build call for updateApiKey + * + * @param key API Key string. (required) + * @param apiKey (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call updateApiKeyCall( String key, ApiKey apiKey, @@ -5981,22 +6268,23 @@ private okhttp3.Call updateApiKeyValidateBeforeCall( } /** - * Update an API key. - * Replace every permission of an existing API key. - * @param key API Key string. (required) - * @param apiKey (required) - * @return UpdateApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update an API key. Replace every permission of an existing API key. + * + * @param key API Key string. (required) + * @param apiKey (required) + * @return UpdateApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public UpdateApiKeyResponse updateApiKey(String key, ApiKey apiKey) throws ApiException { ApiResponse localVarResp = updateApiKeyWithHttpInfo( @@ -6007,22 +6295,23 @@ public UpdateApiKeyResponse updateApiKey(String key, ApiKey apiKey) } /** - * Update an API key. - * Replace every permission of an existing API key. - * @param key API Key string. (required) - * @param apiKey (required) - * @return ApiResponse<UpdateApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update an API key. Replace every permission of an existing API key. + * + * @param key API Key string. (required) + * @param apiKey (required) + * @return ApiResponse<UpdateApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public ApiResponse updateApiKeyWithHttpInfo( String key, ApiKey apiKey @@ -6038,23 +6327,23 @@ public ApiResponse updateApiKeyWithHttpInfo( } /** - * Update an API key. (asynchronously) - * Replace every permission of an existing API key. - * @param key API Key string. (required) - * @param apiKey (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
- */ + * Update an API key. (asynchronously) Replace every permission of an existing API key. + * + * @param key API Key string. (required) + * @param apiKey (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
400 Bad request or request arguments. -
402 This feature is not enabled on your Algolia account. -
403 Method not allowed with this API key. -
404 Index not found. -
+ */ public okhttp3.Call updateApiKeyAsync( String key, ApiKey apiKey, From e2b4978248a4a41f4d7358f5e0828710aa12f480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 17 Dec 2021 11:47:53 +0100 Subject: [PATCH 11/12] add missing dots to specs --- specs/search/paths/vault/appendSource.yml | 2 +- specs/search/paths/vault/vaultSources.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/search/paths/vault/appendSource.yml b/specs/search/paths/vault/appendSource.yml index 9ecff150206..6fa1eb64ed4 100644 --- a/specs/search/paths/vault/appendSource.yml +++ b/specs/search/paths/vault/appendSource.yml @@ -5,7 +5,7 @@ post: description: Add a single source to the list of allowed sources. requestBody: required: true - description: The sources to allow + description: The sources to allow. content: application/json: schema: diff --git a/specs/search/paths/vault/vaultSources.yml b/specs/search/paths/vault/vaultSources.yml index a4d2e3f4df1..48cf7fdf25a 100644 --- a/specs/search/paths/vault/vaultSources.yml +++ b/specs/search/paths/vault/vaultSources.yml @@ -18,7 +18,7 @@ put: description: Replace all allowed sources. requestBody: required: true - description: The sources to allow + description: The sources to allow. content: application/json: schema: From a7991bb51e67f060279e3221a1ef1d2ac276e00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 17 Dec 2021 15:12:00 +0100 Subject: [PATCH 12/12] fix description --- .../com/algolia/search/SearchApi.java | 16 ++++++++-------- .../client-search/src/searchApi.ts | 2 +- specs/search/paths/vault/appendSource.yml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java index d02140f09a0..0b4e10f137f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java @@ -210,7 +210,7 @@ public okhttp3.Call addApiKeyAsync( /** * Build call for appendSource * - * @param source The sources to allow (required) + * @param source The source to add. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -280,7 +280,7 @@ private okhttp3.Call appendSourceValidateBeforeCall( /** * Add a single source to the list of allowed sources. * - * @param source The sources to allow (required) + * @param source The source to add. (required) * @return AppendSourceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -300,7 +300,7 @@ public AppendSourceResponse appendSource(Source source) throws ApiException { /** * Add a single source to the list of allowed sources. * - * @param source The sources to allow (required) + * @param source The source to add. (required) * @return ApiResponse<AppendSourceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -322,7 +322,7 @@ public ApiResponse appendSourceWithHttpInfo( /** * (asynchronously) Add a single source to the list of allowed sources. * - * @param source The sources to allow (required) + * @param source The source to add. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4409,7 +4409,7 @@ public okhttp3.Call removeUserIdAsync( /** * Build call for replaceSources * - * @param source The sources to allow (required) + * @param source The sources to allow. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4479,7 +4479,7 @@ private okhttp3.Call replaceSourcesValidateBeforeCall( /** * Replace all allowed sources. * - * @param source The sources to allow (required) + * @param source The sources to allow. (required) * @return ReplaceSourceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -4500,7 +4500,7 @@ public ReplaceSourceResponse replaceSources(List source) /** * Replace all allowed sources. * - * @param source The sources to allow (required) + * @param source The sources to allow. (required) * @return ApiResponse<ReplaceSourceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -4522,7 +4522,7 @@ public ApiResponse replaceSourcesWithHttpInfo( /** * (asynchronously) Replace all allowed sources. * - * @param source The sources to allow (required) + * @param source The sources to allow. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object diff --git a/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts b/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts index b36f78531dc..ca724d260ab 100644 --- a/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts +++ b/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts @@ -171,7 +171,7 @@ export class SearchApi { /** * Add a single source to the list of allowed sources. * - * @param source - The sources to allow. + * @param source - The source to add. */ appendSource(source: Source): Promise { const path = '/1/security/sources/append'; diff --git a/specs/search/paths/vault/appendSource.yml b/specs/search/paths/vault/appendSource.yml index 6fa1eb64ed4..8c439bc1ccd 100644 --- a/specs/search/paths/vault/appendSource.yml +++ b/specs/search/paths/vault/appendSource.yml @@ -5,7 +5,7 @@ post: description: Add a single source to the list of allowed sources. requestBody: required: true - description: The sources to allow. + description: The source to add. content: application/json: schema: