Skip to content

Commit 120c3bb

Browse files
algolia-botmillotp
andcommitted
correct name for csharp oneof (generated)
Co-authored-by: Pierre Millot <[email protected]>
1 parent b092b6c commit 120c3bb

File tree

293 files changed

+6894
-4122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+6894
-4122
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/AuthInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public AuthInput(AuthAlgoliaInsights actualInstance)
8484
/// Initializes a new instance of the AuthInput class
8585
/// with a Dictionary{string, string}
8686
/// </summary>
87-
/// <param name="actualInstance">An instance of Dictionary&lt;string, string&gt;.</param>
87+
/// <param name="actualInstance">An instance of Dictionary<string, string>.</param>
8888
public AuthInput(Dictionary<string, string> actualInstance)
8989
{
9090
ActualInstance = actualInstance;

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/AuthInputPartial.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public AuthInputPartial(AuthAlgoliaInsightsPartial actualInstance)
8484
/// Initializes a new instance of the AuthInputPartial class
8585
/// with a Dictionary{string, string}
8686
/// </summary>
87-
/// <param name="actualInstance">An instance of Dictionary&lt;string, string&gt;.</param>
87+
/// <param name="actualInstance">An instance of Dictionary<string, string>.</param>
8888
public AuthInputPartial(Dictionary<string, string> actualInstance)
8989
{
9090
ActualInstance = actualInstance;

clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/Languages.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public partial class Languages : AbstractSchema
2424
/// Initializes a new instance of the Languages class
2525
/// with a List{String}
2626
/// </summary>
27-
/// <param name="actualInstance">An instance of List&lt;string&gt;.</param>
27+
/// <param name="actualInstance">An instance of List<string>.</param>
2828
public Languages(List<string> actualInstance)
2929
{
3030
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecision.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public AroundPrecision(int actualInstance)
3434
/// Initializes a new instance of the AroundPrecision class
3535
/// with a List{Range}
3636
/// </summary>
37-
/// <param name="actualInstance">An instance of List&lt;Range&gt;.</param>
37+
/// <param name="actualInstance">An instance of List<Range>.</param>
3838
public AroundPrecision(List<Range> actualInstance)
3939
{
4040
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FacetFilters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public partial class FacetFilters : AbstractSchema
2424
/// Initializes a new instance of the FacetFilters class
2525
/// with a List{FacetFilters}
2626
/// </summary>
27-
/// <param name="actualInstance">An instance of List&lt;FacetFilters&gt;.</param>
27+
/// <param name="actualInstance">An instance of List<FacetFilters>.</param>
2828
public FacetFilters(List<FacetFilters> actualInstance)
2929
{
3030
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FallbackParams.cs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ public FallbackParams()
141141
public int? MinimumAroundRadius { get; set; }
142142

143143
/// <summary>
144-
/// Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
144+
/// Gets or Sets InsideBoundingBox
145145
/// </summary>
146-
/// <value>Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). </value>
147146
[JsonPropertyName("insideBoundingBox")]
148-
public List<List<double>> InsideBoundingBox { get; set; }
147+
public InsideBoundingBox InsideBoundingBox { get; set; }
149148

150149
/// <summary>
151150
/// Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored if you also specify `insideBoundingBox`.
@@ -357,6 +356,13 @@ public FallbackParams()
357356
[JsonPropertyName("attributeForDistinct")]
358357
public string AttributeForDistinct { get; set; }
359358

359+
/// <summary>
360+
/// Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
361+
/// </summary>
362+
/// <value>Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).</value>
363+
[JsonPropertyName("maxFacetHits")]
364+
public int? MaxFacetHits { get; set; }
365+
360366
/// <summary>
361367
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
362368
/// </summary>
@@ -502,11 +508,10 @@ public FallbackParams()
502508
public bool? AdvancedSyntax { get; set; }
503509

504510
/// <summary>
505-
/// Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn't include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
511+
/// Gets or Sets OptionalWords
506512
/// </summary>
507-
/// <value>Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn't include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words). </value>
508513
[JsonPropertyName("optionalWords")]
509-
public List<string> OptionalWords { get; set; }
514+
public OptionalWords OptionalWords { get; set; }
510515

511516
/// <summary>
512517
/// Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
@@ -556,13 +561,6 @@ public FallbackParams()
556561
[JsonPropertyName("responseFields")]
557562
public List<string> ResponseFields { get; set; }
558563

559-
/// <summary>
560-
/// Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
561-
/// </summary>
562-
/// <value>Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).</value>
563-
[JsonPropertyName("maxFacetHits")]
564-
public int? MaxFacetHits { get; set; }
565-
566564
/// <summary>
567565
/// Maximum number of facet values to return for each facet.
568566
/// </summary>
@@ -657,6 +655,7 @@ public override string ToString()
657655
sb.Append(" UserData: ").Append(UserData).Append("\n");
658656
sb.Append(" CustomNormalization: ").Append(CustomNormalization).Append("\n");
659657
sb.Append(" AttributeForDistinct: ").Append(AttributeForDistinct).Append("\n");
658+
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
660659
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
661660
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
662661
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
@@ -689,7 +688,6 @@ public override string ToString()
689688
sb.Append(" ReplaceSynonymsInHighlight: ").Append(ReplaceSynonymsInHighlight).Append("\n");
690689
sb.Append(" MinProximity: ").Append(MinProximity).Append("\n");
691690
sb.Append(" ResponseFields: ").Append(ResponseFields).Append("\n");
692-
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
693691
sb.Append(" MaxValuesPerFacet: ").Append(MaxValuesPerFacet).Append("\n");
694692
sb.Append(" SortFacetValuesBy: ").Append(SortFacetValuesBy).Append("\n");
695693
sb.Append(" AttributeCriteriaComputedByMinProximity: ").Append(AttributeCriteriaComputedByMinProximity).Append("\n");
@@ -737,7 +735,7 @@ public override bool Equals(object obj)
737735
(AroundRadius == input.AroundRadius || (AroundRadius != null && AroundRadius.Equals(input.AroundRadius))) &&
738736
(AroundPrecision == input.AroundPrecision || (AroundPrecision != null && AroundPrecision.Equals(input.AroundPrecision))) &&
739737
(MinimumAroundRadius == input.MinimumAroundRadius || MinimumAroundRadius.Equals(input.MinimumAroundRadius)) &&
740-
(InsideBoundingBox == input.InsideBoundingBox || InsideBoundingBox != null && input.InsideBoundingBox != null && InsideBoundingBox.SequenceEqual(input.InsideBoundingBox)) &&
738+
(InsideBoundingBox == input.InsideBoundingBox || (InsideBoundingBox != null && InsideBoundingBox.Equals(input.InsideBoundingBox))) &&
741739
(InsidePolygon == input.InsidePolygon || InsidePolygon != null && input.InsidePolygon != null && InsidePolygon.SequenceEqual(input.InsidePolygon)) &&
742740
(NaturalLanguages == input.NaturalLanguages || NaturalLanguages != null && input.NaturalLanguages != null && NaturalLanguages.SequenceEqual(input.NaturalLanguages)) &&
743741
(RuleContexts == input.RuleContexts || RuleContexts != null && input.RuleContexts != null && RuleContexts.SequenceEqual(input.RuleContexts)) &&
@@ -768,6 +766,7 @@ public override bool Equals(object obj)
768766
(UserData == input.UserData || (UserData != null && UserData.Equals(input.UserData))) &&
769767
(CustomNormalization == input.CustomNormalization || CustomNormalization != null && input.CustomNormalization != null && CustomNormalization.SequenceEqual(input.CustomNormalization)) &&
770768
(AttributeForDistinct == input.AttributeForDistinct || (AttributeForDistinct != null && AttributeForDistinct.Equals(input.AttributeForDistinct))) &&
769+
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
771770
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
772771
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
773772
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
@@ -791,7 +790,7 @@ public override bool Equals(object obj)
791790
(QueryType == input.QueryType || QueryType.Equals(input.QueryType)) &&
792791
(RemoveWordsIfNoResults == input.RemoveWordsIfNoResults || RemoveWordsIfNoResults.Equals(input.RemoveWordsIfNoResults)) &&
793792
(AdvancedSyntax == input.AdvancedSyntax || AdvancedSyntax.Equals(input.AdvancedSyntax)) &&
794-
(OptionalWords == input.OptionalWords || OptionalWords != null && input.OptionalWords != null && OptionalWords.SequenceEqual(input.OptionalWords)) &&
793+
(OptionalWords == input.OptionalWords || (OptionalWords != null && OptionalWords.Equals(input.OptionalWords))) &&
795794
(DisableExactOnAttributes == input.DisableExactOnAttributes || DisableExactOnAttributes != null && input.DisableExactOnAttributes != null && DisableExactOnAttributes.SequenceEqual(input.DisableExactOnAttributes)) &&
796795
(ExactOnSingleWordQuery == input.ExactOnSingleWordQuery || ExactOnSingleWordQuery.Equals(input.ExactOnSingleWordQuery)) &&
797796
(AlternativesAsExact == input.AlternativesAsExact || AlternativesAsExact != null && input.AlternativesAsExact != null && AlternativesAsExact.SequenceEqual(input.AlternativesAsExact)) &&
@@ -800,7 +799,6 @@ public override bool Equals(object obj)
800799
(ReplaceSynonymsInHighlight == input.ReplaceSynonymsInHighlight || ReplaceSynonymsInHighlight.Equals(input.ReplaceSynonymsInHighlight)) &&
801800
(MinProximity == input.MinProximity || MinProximity.Equals(input.MinProximity)) &&
802801
(ResponseFields == input.ResponseFields || ResponseFields != null && input.ResponseFields != null && ResponseFields.SequenceEqual(input.ResponseFields)) &&
803-
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
804802
(MaxValuesPerFacet == input.MaxValuesPerFacet || MaxValuesPerFacet.Equals(input.MaxValuesPerFacet)) &&
805803
(SortFacetValuesBy == input.SortFacetValuesBy || (SortFacetValuesBy != null && SortFacetValuesBy.Equals(input.SortFacetValuesBy))) &&
806804
(AttributeCriteriaComputedByMinProximity == input.AttributeCriteriaComputedByMinProximity || AttributeCriteriaComputedByMinProximity.Equals(input.AttributeCriteriaComputedByMinProximity)) &&
@@ -963,6 +961,7 @@ public override int GetHashCode()
963961
{
964962
hashCode = (hashCode * 59) + AttributeForDistinct.GetHashCode();
965963
}
964+
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
966965
if (AttributesToRetrieve != null)
967966
{
968967
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();
@@ -1049,7 +1048,6 @@ public override int GetHashCode()
10491048
{
10501049
hashCode = (hashCode * 59) + ResponseFields.GetHashCode();
10511050
}
1052-
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
10531051
hashCode = (hashCode * 59) + MaxValuesPerFacet.GetHashCode();
10541052
if (SortFacetValuesBy != null)
10551053
{

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/HighlightResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public HighlightResult(HighlightResultOption actualInstance)
3434
/// Initializes a new instance of the HighlightResult class
3535
/// with a Dictionary{string, HighlightResult}
3636
/// </summary>
37-
/// <param name="actualInstance">An instance of Dictionary&lt;string, HighlightResult&gt;.</param>
37+
/// <param name="actualInstance">An instance of Dictionary<string, HighlightResult>.</param>
3838
public HighlightResult(Dictionary<string, HighlightResult> actualInstance)
3939
{
4040
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
@@ -44,7 +44,7 @@ public HighlightResult(Dictionary<string, HighlightResult> actualInstance)
4444
/// Initializes a new instance of the HighlightResult class
4545
/// with a List{HighlightResult}
4646
/// </summary>
47-
/// <param name="actualInstance">An instance of List&lt;HighlightResult&gt;.</param>
47+
/// <param name="actualInstance">An instance of List<HighlightResult>.</param>
4848
public HighlightResult(List<HighlightResult> actualInstance)
4949
{
5050
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/IgnorePlurals.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public partial class IgnorePlurals : AbstractSchema
2424
/// Initializes a new instance of the IgnorePlurals class
2525
/// with a List{SupportedLanguage}
2626
/// </summary>
27-
/// <param name="actualInstance">An instance of List&lt;SupportedLanguage&gt;.</param>
27+
/// <param name="actualInstance">An instance of List<SupportedLanguage>.</param>
2828
public IgnorePlurals(List<SupportedLanguage> actualInstance)
2929
{
3030
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");

0 commit comments

Comments
 (0)