Skip to content

Commit

Permalink
feat(specs): add (optional) _automaticInsights to search result (gene…
Browse files Browse the repository at this point in the history
…rated)

algolia/api-clients-automation#3688

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Raed <[email protected]>
  • Loading branch information
algolia-bot and raed667 committed Sep 11, 2024
1 parent 04b66b4 commit f60d126
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public class RecommendationsResults {
@JsonProperty("queryID")
private String queryID;

@JsonProperty("_automaticInsights")
private Boolean automaticInsights;

@JsonProperty("page")
private Integer page;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) &&
Expand Down Expand Up @@ -545,6 +560,7 @@ public int hashCode() {
serverUsed,
userData,
queryID,
automaticInsights,
page,
nbHits,
nbPages,
Expand Down Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public class BrowseResponse<T> {
@JsonProperty("queryID")
private String queryID;

@JsonProperty("_automaticInsights")
private Boolean automaticInsights;

@JsonProperty("page")
private Integer page;

Expand Down Expand Up @@ -425,6 +428,17 @@ public String getQueryID() {
return queryID;
}

public BrowseResponse<T> 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<T> setPage(Integer page) {
this.page = page;
return this;
Expand Down Expand Up @@ -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) &&
Expand Down Expand Up @@ -597,6 +612,7 @@ public int hashCode() {
serverUsed,
userData,
queryID,
automaticInsights,
page,
nbHits,
nbPages,
Expand Down Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ public class SearchResponse<T> implements SearchResult<T> {
@JsonProperty("queryID")
private String queryID;

@JsonProperty("_automaticInsights")
private Boolean automaticInsights;

@JsonProperty("page")
private Integer page;

Expand Down Expand Up @@ -436,6 +439,17 @@ public String getQueryID() {
return queryID;
}

public SearchResponse<T> 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<T> setPage(Integer page) {
this.page = page;
return this;
Expand Down Expand Up @@ -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) &&
Expand Down Expand Up @@ -593,6 +608,7 @@ public int hashCode() {
serverUsed,
userData,
queryID,
automaticInsights,
page,
nbHits,
nbPages,
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit f60d126

Please sign in to comment.