Skip to content

Commit 3d0cddc

Browse files
algolia-botkai687
andcommitted
chore: generated code for commit 2b70d9e. [skip ci]
Co-authored-by: Kai Welke <[email protected]>
1 parent 2b70d9e commit 3d0cddc

File tree

39 files changed

+1292
-298
lines changed

39 files changed

+1292
-298
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForFacetValuesResponse.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public SearchForFacetValuesResponse() { }
2525
/// Initializes a new instance of the SearchForFacetValuesResponse class.
2626
/// </summary>
2727
/// <param name="facetHits">Matching facet values. (required).</param>
28-
/// <param name="exhaustiveFacetsCount">See the &#x60;facetsCount&#x60; field of the &#x60;exhaustive&#x60; object in the response. (required).</param>
28+
/// <param name="exhaustiveFacetsCount">Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-). (required).</param>
2929
public SearchForFacetValuesResponse(List<FacetHits> facetHits, bool exhaustiveFacetsCount)
3030
{
3131
FacetHits = facetHits ?? throw new ArgumentNullException(nameof(facetHits));
@@ -40,11 +40,10 @@ public SearchForFacetValuesResponse(List<FacetHits> facetHits, bool exhaustiveFa
4040
public List<FacetHits> FacetHits { get; set; }
4141

4242
/// <summary>
43-
/// See the `facetsCount` field of the `exhaustive` object in the response.
43+
/// Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
4444
/// </summary>
45-
/// <value>See the `facetsCount` field of the `exhaustive` object in the response.</value>
45+
/// <value>Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-). </value>
4646
[JsonPropertyName("exhaustiveFacetsCount")]
47-
[Obsolete]
4847
public bool ExhaustiveFacetsCount { get; set; }
4948

5049
/// <summary>

clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facet_values_response.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ final class SearchForFacetValuesResponse {
1919
@JsonKey(name: r'facetHits')
2020
final List<FacetHits> facetHits;
2121

22-
/// See the `facetsCount` field of the `exhaustive` object in the response.
23-
@Deprecated('exhaustiveFacetsCount has been deprecated')
22+
/// Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
2423
@JsonKey(name: r'exhaustiveFacetsCount')
2524
final bool exhaustiveFacetsCount;
2625

@@ -33,10 +32,14 @@ final class SearchForFacetValuesResponse {
3332
identical(this, other) ||
3433
other is SearchForFacetValuesResponse &&
3534
other.facetHits == facetHits &&
35+
other.exhaustiveFacetsCount == exhaustiveFacetsCount &&
3636
other.processingTimeMS == processingTimeMS;
3737

3838
@override
39-
int get hashCode => facetHits.hashCode + processingTimeMS.hashCode;
39+
int get hashCode =>
40+
facetHits.hashCode +
41+
exhaustiveFacetsCount.hashCode +
42+
processingTimeMS.hashCode;
4043

4144
factory SearchForFacetValuesResponse.fromJson(Map<String, dynamic> json) =>
4245
_$SearchForFacetValuesResponseFromJson(json);

clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facet_values_response.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ final class SearchForFacetValuesResponse {
1919
@JsonKey(name: r'facetHits')
2020
final List<FacetHits> facetHits;
2121

22-
/// See the `facetsCount` field of the `exhaustive` object in the response.
23-
@Deprecated('exhaustiveFacetsCount has been deprecated')
22+
/// Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
2423
@JsonKey(name: r'exhaustiveFacetsCount')
2524
final bool exhaustiveFacetsCount;
2625

@@ -33,10 +32,14 @@ final class SearchForFacetValuesResponse {
3332
identical(this, other) ||
3433
other is SearchForFacetValuesResponse &&
3534
other.facetHits == facetHits &&
35+
other.exhaustiveFacetsCount == exhaustiveFacetsCount &&
3636
other.processingTimeMS == processingTimeMS;
3737

3838
@override
39-
int get hashCode => facetHits.hashCode + processingTimeMS.hashCode;
39+
int get hashCode =>
40+
facetHits.hashCode +
41+
exhaustiveFacetsCount.hashCode +
42+
processingTimeMS.hashCode;
4043

4144
factory SearchForFacetValuesResponse.fromJson(Map<String, dynamic> json) =>
4245
_$SearchForFacetValuesResponseFromJson(json);

clients/algoliasearch-client-go/algolia/abtesting/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@ func reportError(format string, a ...any) error {
252252
}
253253

254254
// A wrapper for strict JSON decoding.
255-
func newStrictDecoder(data []byte) *json.Decoder {
255+
func newStrictDecoder(data []byte) *json.Decoder {
256256
dec := json.NewDecoder(bytes.NewBuffer(data))
257257
dec.DisallowUnknownFields()
258258
return dec
259259
}
260260

261261
// A wrapper for validating a struct, returns nil if value is not a struct.
262-
func validateStruct(v any) error {
262+
func validateStruct(v any) error {
263263
err := validator.New().Struct(v)
264264
validationErrors, ok := err.(validator.ValidationErrors)
265265
if ok && len(validationErrors) > 0 {

clients/algoliasearch-client-go/algolia/analytics/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@ func reportError(format string, a ...any) error {
252252
}
253253

254254
// A wrapper for strict JSON decoding.
255-
func newStrictDecoder(data []byte) *json.Decoder {
255+
func newStrictDecoder(data []byte) *json.Decoder {
256256
dec := json.NewDecoder(bytes.NewBuffer(data))
257257
dec.DisallowUnknownFields()
258258
return dec
259259
}
260260

261261
// A wrapper for validating a struct, returns nil if value is not a struct.
262-
func validateStruct(v any) error {
262+
func validateStruct(v any) error {
263263
err := validator.New().Struct(v)
264264
validationErrors, ok := err.(validator.ValidationErrors)
265265
if ok && len(validationErrors) > 0 {

clients/algoliasearch-client-go/algolia/ingestion/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ func reportError(format string, a ...any) error {
248248
}
249249

250250
// A wrapper for strict JSON decoding.
251-
func newStrictDecoder(data []byte) *json.Decoder {
251+
func newStrictDecoder(data []byte) *json.Decoder {
252252
dec := json.NewDecoder(bytes.NewBuffer(data))
253253
dec.DisallowUnknownFields()
254254
return dec
255255
}
256256

257257
// A wrapper for validating a struct, returns nil if value is not a struct.
258-
func validateStruct(v any) error {
258+
func validateStruct(v any) error {
259259
err := validator.New().Struct(v)
260260
validationErrors, ok := err.(validator.ValidationErrors)
261261
if ok && len(validationErrors) > 0 {

clients/algoliasearch-client-go/algolia/insights/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@ func reportError(format string, a ...any) error {
252252
}
253253

254254
// A wrapper for strict JSON decoding.
255-
func newStrictDecoder(data []byte) *json.Decoder {
255+
func newStrictDecoder(data []byte) *json.Decoder {
256256
dec := json.NewDecoder(bytes.NewBuffer(data))
257257
dec.DisallowUnknownFields()
258258
return dec
259259
}
260260

261261
// A wrapper for validating a struct, returns nil if value is not a struct.
262-
func validateStruct(v any) error {
262+
func validateStruct(v any) error {
263263
err := validator.New().Struct(v)
264264
validationErrors, ok := err.(validator.ValidationErrors)
265265
if ok && len(validationErrors) > 0 {

clients/algoliasearch-client-go/algolia/query-suggestions/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ func reportError(format string, a ...any) error {
248248
}
249249

250250
// A wrapper for strict JSON decoding.
251-
func newStrictDecoder(data []byte) *json.Decoder {
251+
func newStrictDecoder(data []byte) *json.Decoder {
252252
dec := json.NewDecoder(bytes.NewBuffer(data))
253253
dec.DisallowUnknownFields()
254254
return dec
255255
}
256256

257257
// A wrapper for validating a struct, returns nil if value is not a struct.
258-
func validateStruct(v any) error {
258+
func validateStruct(v any) error {
259259
err := validator.New().Struct(v)
260260
validationErrors, ok := err.(validator.ValidationErrors)
261261
if ok && len(validationErrors) > 0 {

clients/algoliasearch-client-go/algolia/recommend/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@ func reportError(format string, a ...any) error {
254254
}
255255

256256
// A wrapper for strict JSON decoding.
257-
func newStrictDecoder(data []byte) *json.Decoder {
257+
func newStrictDecoder(data []byte) *json.Decoder {
258258
dec := json.NewDecoder(bytes.NewBuffer(data))
259259
dec.DisallowUnknownFields()
260260
return dec
261261
}
262262

263263
// A wrapper for validating a struct, returns nil if value is not a struct.
264-
func validateStruct(v any) error {
264+
func validateStruct(v any) error {
265265
err := validator.New().Struct(v)
266266
validationErrors, ok := err.(validator.ValidationErrors)
267267
if ok && len(validationErrors) > 0 {

clients/algoliasearch-client-go/algolia/search/model_search_for_facet_values_response.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import (
1010
type SearchForFacetValuesResponse struct {
1111
// Matching facet values.
1212
FacetHits []FacetHits `json:"facetHits"`
13-
// See the `facetsCount` field of the `exhaustive` object in the response.
14-
// Deprecated
13+
// Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
1514
ExhaustiveFacetsCount bool `json:"exhaustiveFacetsCount"`
1615
// Time the server took to process the request, in milliseconds.
1716
ProcessingTimeMS *int32 `json:"processingTimeMS,omitempty"`
@@ -70,7 +69,6 @@ func (o *SearchForFacetValuesResponse) SetFacetHits(v []FacetHits) *SearchForFac
7069
}
7170

7271
// GetExhaustiveFacetsCount returns the ExhaustiveFacetsCount field value.
73-
// Deprecated.
7472
func (o *SearchForFacetValuesResponse) GetExhaustiveFacetsCount() bool {
7573
if o == nil {
7674
var ret bool
@@ -82,7 +80,6 @@ func (o *SearchForFacetValuesResponse) GetExhaustiveFacetsCount() bool {
8280

8381
// GetExhaustiveFacetsCountOk returns a tuple with the ExhaustiveFacetsCount field value
8482
// and a boolean to check if the value has been set.
85-
// Deprecated.
8683
func (o *SearchForFacetValuesResponse) GetExhaustiveFacetsCountOk() (*bool, bool) {
8784
if o == nil {
8885
return nil, false
@@ -91,7 +88,6 @@ func (o *SearchForFacetValuesResponse) GetExhaustiveFacetsCountOk() (*bool, bool
9188
}
9289

9390
// SetExhaustiveFacetsCount sets field value.
94-
// Deprecated.
9591
func (o *SearchForFacetValuesResponse) SetExhaustiveFacetsCount(v bool) *SearchForFacetValuesResponse {
9692
o.ExhaustiveFacetsCount = v
9793
return o

clients/algoliasearch-client-go/algolia/usage/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@ func reportError(format string, a ...any) error {
254254
}
255255

256256
// A wrapper for strict JSON decoding.
257-
func newStrictDecoder(data []byte) *json.Decoder {
257+
func newStrictDecoder(data []byte) *json.Decoder {
258258
dec := json.NewDecoder(bytes.NewBuffer(data))
259259
dec.DisallowUnknownFields()
260260
return dec
261261
}
262262

263263
// A wrapper for validating a struct, returns nil if value is not a struct.
264-
func validateStruct(v any) error {
264+
func validateStruct(v any) error {
265265
err := validator.New().Struct(v)
266266
validationErrors, ok := err.(validator.ValidationErrors)
267267
if ok && len(validationErrors) > 0 {

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/search/SearchForFacetValuesResponse.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ public SearchForFacetValuesResponse setExhaustiveFacetsCount(Boolean exhaustiveF
4444
}
4545

4646
/**
47-
* See the `facetsCount` field of the `exhaustive` object in the response.
48-
*
49-
* @deprecated
47+
* Whether the facet count is exhaustive (true) or approximate (false). For more information, see
48+
* [Why are my facet and hit counts not
49+
* accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
5050
*/
51-
@Deprecated
5251
@javax.annotation.Nonnull
5352
public Boolean getExhaustiveFacetsCount() {
5453
return exhaustiveFacetsCount;

clients/algoliasearch-client-javascript/packages/algoliasearch/lite/model/searchForFacetValuesResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type SearchForFacetValuesResponse = {
99
facetHits: FacetHits[];
1010

1111
/**
12-
* See the `facetsCount` field of the `exhaustive` object in the response.
12+
* Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
1313
*/
1414
exhaustiveFacetsCount: boolean;
1515

clients/algoliasearch-client-javascript/packages/client-search/model/searchForFacetValuesResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type SearchForFacetValuesResponse = {
99
facetHits: FacetHits[];
1010

1111
/**
12-
* See the `facetsCount` field of the `exhaustive` object in the response.
12+
* Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
1313
*/
1414
exhaustiveFacetsCount: boolean;
1515

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/search/SearchForFacetValuesResponse.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import kotlinx.serialization.json.*
88
* SearchForFacetValuesResponse
99
*
1010
* @param facetHits Matching facet values.
11-
* @param exhaustiveFacetsCount See the `facetsCount` field of the `exhaustive` object in the response.
11+
* @param exhaustiveFacetsCount Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
1212
* @param processingTimeMS Time the server took to process the request, in milliseconds.
1313
*/
1414
@Serializable
@@ -17,8 +17,7 @@ public data class SearchForFacetValuesResponse(
1717
/** Matching facet values. */
1818
@SerialName(value = "facetHits") val facetHits: List<FacetHits>,
1919

20-
/** See the `facetsCount` field of the `exhaustive` object in the response. */
21-
@Deprecated(message = "This property is deprecated.")
20+
/** Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-). */
2221
@SerialName(value = "exhaustiveFacetsCount") val exhaustiveFacetsCount: Boolean,
2322

2423
/** Time the server took to process the request, in milliseconds. */

clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesResponse.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ public function setFacetHits($facetHits)
201201
* Gets exhaustiveFacetsCount.
202202
*
203203
* @return bool
204-
*
205-
* @deprecated
206204
*/
207205
public function getExhaustiveFacetsCount()
208206
{
@@ -212,11 +210,9 @@ public function getExhaustiveFacetsCount()
212210
/**
213211
* Sets exhaustiveFacetsCount.
214212
*
215-
* @param bool $exhaustiveFacetsCount see the `facetsCount` field of the `exhaustive` object in the response
213+
* @param bool $exhaustiveFacetsCount Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
216214
*
217215
* @return self
218-
*
219-
* @deprecated
220216
*/
221217
public function setExhaustiveFacetsCount($exhaustiveFacetsCount)
222218
{

clients/algoliasearch-client-php/lib/Model/Search/SearchResult.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,6 @@ public function setExhaustive($exhaustive)
581581
* Gets exhaustiveFacetsCount.
582582
*
583583
* @return bool
584-
*
585-
* @deprecated
586584
*/
587585
public function getExhaustiveFacetsCount()
588586
{
@@ -592,11 +590,9 @@ public function getExhaustiveFacetsCount()
592590
/**
593591
* Sets exhaustiveFacetsCount.
594592
*
595-
* @param bool $exhaustiveFacetsCount see the `facetsCount` field of the `exhaustive` object in the response
593+
* @param bool $exhaustiveFacetsCount Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
596594
*
597595
* @return self
598-
*
599-
* @deprecated
600596
*/
601597
public function setExhaustiveFacetsCount($exhaustiveFacetsCount)
602598
{

clients/algoliasearch-client-python/algoliasearch/search/models/search_for_facet_values_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SearchForFacetValuesResponse(BaseModel):
2222
description="Matching facet values.", alias="facetHits"
2323
)
2424
exhaustive_facets_count: StrictBool = Field(
25-
description="See the `facetsCount` field of the `exhaustive` object in the response.",
25+
description="Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-). ",
2626
alias="exhaustiveFacetsCount",
2727
)
2828
processing_time_ms: Optional[StrictInt] = Field(

clients/algoliasearch-client-ruby/lib/algolia/models/search/search_for_facet_values_response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SearchForFacetValuesResponse
99
# Matching facet values.
1010
attr_accessor :facet_hits
1111

12-
# See the `facetsCount` field of the `exhaustive` object in the response.
12+
# Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet and hit counts not accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
1313
attr_accessor :exhaustive_facets_count
1414

1515
# Time the server took to process the request, in milliseconds.

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/search/SearchForFacetValuesResponse.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ package algoliasearch.search
3838
* @param facetHits
3939
* Matching facet values.
4040
* @param exhaustiveFacetsCount
41-
* See the `facetsCount` field of the `exhaustive` object in the response.
41+
* Whether the facet count is exhaustive (true) or approximate (false). For more information, see [Why are my facet
42+
* and hit counts not
43+
* accurate](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
4244
* @param processingTimeMS
4345
* Time the server took to process the request, in milliseconds.
4446
*/

clients/algoliasearch-client-swift/Sources/Ingestion/Models/DestinationIndexName.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct DestinationIndexName: Codable, JSONEncodable {
1313
/// Attributes from your source to exclude from Algolia records. Not all your data attributes will be useful for
1414
/// searching. Keeping your Algolia records small increases indexing and search performance. - Exclude nested
1515
/// attributes with `.` notation. For example, `foo.bar` indexes the `foo` attribute and all its children **except**
16-
/// the `bar` attribute. - Exclude attributes from arrays with `[i]`, where `i` is the index of the array element.
16+
/// the `bar` attribute. - Exclude attributes from arrays with `[i]`, where `i` is the index of the array element.
1717
/// For example, `foo.[0].bar` only excludes the `bar` attribute from the first element of the `foo` array, but
1818
/// indexes the complete `foo` attribute for all other elements. Use `*` as wildcard: `foo.[*].bar` excludes `bar`
1919
/// from all elements of the `foo` array.

0 commit comments

Comments
 (0)