diff --git a/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendationsResults.java b/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendationsResults.java index 7cf065b95..6597568d4 100644 --- a/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendationsResults.java +++ b/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendationsResults.java @@ -86,6 +86,9 @@ public class RecommendationsResults { @JsonProperty("queryID") private String queryID; + @JsonProperty("_automaticInsights") + private Boolean automaticInsights; + @JsonProperty("page") private Integer page; @@ -416,6 +419,17 @@ public String getQueryID() { return queryID; } + public RecommendationsResults setAutomaticInsights(Boolean automaticInsights) { + this.automaticInsights = automaticInsights; + return this; + } + + /** Whether automatic events collection is enabled for the application. */ + @javax.annotation.Nullable + public Boolean getAutomaticInsights() { + return automaticInsights; + } + public RecommendationsResults setPage(Integer page) { this.page = page; return this; @@ -510,6 +524,7 @@ public boolean equals(Object o) { Objects.equals(this.serverUsed, recommendationsResults.serverUsed) && Objects.equals(this.userData, recommendationsResults.userData) && Objects.equals(this.queryID, recommendationsResults.queryID) && + Objects.equals(this.automaticInsights, recommendationsResults.automaticInsights) && Objects.equals(this.page, recommendationsResults.page) && Objects.equals(this.nbHits, recommendationsResults.nbHits) && Objects.equals(this.nbPages, recommendationsResults.nbPages) && @@ -545,6 +560,7 @@ public int hashCode() { serverUsed, userData, queryID, + automaticInsights, page, nbHits, nbPages, @@ -581,6 +597,7 @@ public String toString() { sb.append(" serverUsed: ").append(toIndentedString(serverUsed)).append("\n"); sb.append(" userData: ").append(toIndentedString(userData)).append("\n"); sb.append(" queryID: ").append(toIndentedString(queryID)).append("\n"); + sb.append(" automaticInsights: ").append(toIndentedString(automaticInsights)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" nbHits: ").append(toIndentedString(nbHits)).append("\n"); sb.append(" nbPages: ").append(toIndentedString(nbPages)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/BrowseResponse.java b/algoliasearch/src/main/java/com/algolia/model/search/BrowseResponse.java index 348d1abfd..d3133def3 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/BrowseResponse.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/BrowseResponse.java @@ -86,6 +86,9 @@ public class BrowseResponse { @JsonProperty("queryID") private String queryID; + @JsonProperty("_automaticInsights") + private Boolean automaticInsights; + @JsonProperty("page") private Integer page; @@ -425,6 +428,17 @@ public String getQueryID() { return queryID; } + public BrowseResponse setAutomaticInsights(Boolean automaticInsights) { + this.automaticInsights = automaticInsights; + return this; + } + + /** Whether automatic events collection is enabled for the application. */ + @javax.annotation.Nullable + public Boolean getAutomaticInsights() { + return automaticInsights; + } + public BrowseResponse setPage(Integer page) { this.page = page; return this; @@ -559,6 +573,7 @@ public boolean equals(Object o) { Objects.equals(this.serverUsed, browseResponse.serverUsed) && Objects.equals(this.userData, browseResponse.userData) && Objects.equals(this.queryID, browseResponse.queryID) && + Objects.equals(this.automaticInsights, browseResponse.automaticInsights) && Objects.equals(this.page, browseResponse.page) && Objects.equals(this.nbHits, browseResponse.nbHits) && Objects.equals(this.nbPages, browseResponse.nbPages) && @@ -597,6 +612,7 @@ public int hashCode() { serverUsed, userData, queryID, + automaticInsights, page, nbHits, nbPages, @@ -636,6 +652,7 @@ public String toString() { sb.append(" serverUsed: ").append(toIndentedString(serverUsed)).append("\n"); sb.append(" userData: ").append(toIndentedString(userData)).append("\n"); sb.append(" queryID: ").append(toIndentedString(queryID)).append("\n"); + sb.append(" automaticInsights: ").append(toIndentedString(automaticInsights)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" nbHits: ").append(toIndentedString(nbHits)).append("\n"); sb.append(" nbPages: ").append(toIndentedString(nbPages)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/SearchResponse.java b/algoliasearch/src/main/java/com/algolia/model/search/SearchResponse.java index 2e0923c19..efe8cdb9a 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/SearchResponse.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/SearchResponse.java @@ -87,6 +87,9 @@ public class SearchResponse implements SearchResult { @JsonProperty("queryID") private String queryID; + @JsonProperty("_automaticInsights") + private Boolean automaticInsights; + @JsonProperty("page") private Integer page; @@ -436,6 +439,17 @@ public String getQueryID() { return queryID; } + public SearchResponse setAutomaticInsights(Boolean automaticInsights) { + this.automaticInsights = automaticInsights; + return this; + } + + /** Whether automatic events collection is enabled for the application. */ + @javax.annotation.Nullable + public Boolean getAutomaticInsights() { + return automaticInsights; + } + public SearchResponse setPage(Integer page) { this.page = page; return this; @@ -555,6 +569,7 @@ public boolean equals(Object o) { Objects.equals(this.serverUsed, searchResponse.serverUsed) && Objects.equals(this.userData, searchResponse.userData) && Objects.equals(this.queryID, searchResponse.queryID) && + Objects.equals(this.automaticInsights, searchResponse.automaticInsights) && Objects.equals(this.page, searchResponse.page) && Objects.equals(this.nbHits, searchResponse.nbHits) && Objects.equals(this.nbPages, searchResponse.nbPages) && @@ -593,6 +608,7 @@ public int hashCode() { serverUsed, userData, queryID, + automaticInsights, page, nbHits, nbPages, @@ -633,6 +649,7 @@ public String toString() { sb.append(" serverUsed: ").append(toIndentedString(serverUsed)).append("\n"); sb.append(" userData: ").append(toIndentedString(userData)).append("\n"); sb.append(" queryID: ").append(toIndentedString(queryID)).append("\n"); + sb.append(" automaticInsights: ").append(toIndentedString(automaticInsights)).append("\n"); sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" nbHits: ").append(toIndentedString(nbHits)).append("\n"); sb.append(" nbPages: ").append(toIndentedString(nbPages)).append("\n");