Skip to content

Commit

Permalink
chore(deps): dependencies 2025-01-06 [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4299

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Algolia Bot <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
4 people committed Jan 6, 2025
1 parent 7e75c7c commit f44f198
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
namespace Algolia.Search.Models.Personalization;

/// <summary>
/// EventScoring
/// EventsScoring
/// </summary>
public partial class EventScoring
public partial class EventsScoring
{

/// <summary>
Expand All @@ -23,17 +23,17 @@ public partial class EventScoring
[JsonPropertyName("eventType")]
public EventType? EventType { get; set; }
/// <summary>
/// Initializes a new instance of the EventScoring class.
/// Initializes a new instance of the EventsScoring class.
/// </summary>
[JsonConstructor]
public EventScoring() { }
public EventsScoring() { }
/// <summary>
/// Initializes a new instance of the EventScoring class.
/// Initializes a new instance of the EventsScoring class.
/// </summary>
/// <param name="score">Event score. (required).</param>
/// <param name="eventName">Event name. (required).</param>
/// <param name="eventType">eventType (required).</param>
public EventScoring(int score, string eventName, EventType? eventType)
public EventsScoring(int score, string eventName, EventType? eventType)
{
Score = score;
EventName = eventName ?? throw new ArgumentNullException(nameof(eventName));
Expand Down Expand Up @@ -61,7 +61,7 @@ public EventScoring(int score, string eventName, EventType? eventType)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class EventScoring {\n");
sb.Append("class EventsScoring {\n");
sb.Append(" Score: ").Append(Score).Append("\n");
sb.Append(" EventName: ").Append(EventName).Append("\n");
sb.Append(" EventType: ").Append(EventType).Append("\n");
Expand All @@ -85,7 +85,7 @@ public virtual string ToJson()
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (obj is not EventScoring input)
if (obj is not EventsScoring input)
{
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
namespace Algolia.Search.Models.Personalization;

/// <summary>
/// FacetScoring
/// FacetsScoring
/// </summary>
public partial class FacetScoring
public partial class FacetsScoring
{
/// <summary>
/// Initializes a new instance of the FacetScoring class.
/// Initializes a new instance of the FacetsScoring class.
/// </summary>
[JsonConstructor]
public FacetScoring() { }
public FacetsScoring() { }
/// <summary>
/// Initializes a new instance of the FacetScoring class.
/// Initializes a new instance of the FacetsScoring class.
/// </summary>
/// <param name="score">Event score. (required).</param>
/// <param name="facetName">Facet attribute name. (required).</param>
public FacetScoring(int score, string facetName)
public FacetsScoring(int score, string facetName)
{
Score = score;
FacetName = facetName ?? throw new ArgumentNullException(nameof(facetName));
Expand All @@ -53,7 +53,7 @@ public FacetScoring(int score, string facetName)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class FacetScoring {\n");
sb.Append("class FacetsScoring {\n");
sb.Append(" Score: ").Append(Score).Append("\n");
sb.Append(" FacetName: ").Append(FacetName).Append("\n");
sb.Append("}\n");
Expand All @@ -76,7 +76,7 @@ public virtual string ToJson()
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (obj is not FacetScoring input)
if (obj is not FacetsScoring input)
{
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@ public PersonalizationStrategyParams() { }
/// <summary>
/// Initializes a new instance of the PersonalizationStrategyParams class.
/// </summary>
/// <param name="eventScoring">Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results. (required).</param>
/// <param name="facetScoring">Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results. (required).</param>
/// <param name="eventsScoring">Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results. (required).</param>
/// <param name="facetsScoring">Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results. (required).</param>
/// <param name="personalizationImpact">Impact of personalization on the search results. If set to 0, personalization has no impact on the search results. (required).</param>
public PersonalizationStrategyParams(List<EventScoring> eventScoring, List<FacetScoring> facetScoring, int personalizationImpact)
public PersonalizationStrategyParams(List<EventsScoring> eventsScoring, List<FacetsScoring> facetsScoring, int personalizationImpact)
{
EventScoring = eventScoring ?? throw new ArgumentNullException(nameof(eventScoring));
FacetScoring = facetScoring ?? throw new ArgumentNullException(nameof(facetScoring));
EventsScoring = eventsScoring ?? throw new ArgumentNullException(nameof(eventsScoring));
FacetsScoring = facetsScoring ?? throw new ArgumentNullException(nameof(facetsScoring));
PersonalizationImpact = personalizationImpact;
}

/// <summary>
/// Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results.
/// </summary>
/// <value>Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results. </value>
[JsonPropertyName("eventScoring")]
public List<EventScoring> EventScoring { get; set; }
[JsonPropertyName("eventsScoring")]
public List<EventsScoring> EventsScoring { get; set; }

/// <summary>
/// Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results.
/// </summary>
/// <value>Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results. </value>
[JsonPropertyName("facetScoring")]
public List<FacetScoring> FacetScoring { get; set; }
[JsonPropertyName("facetsScoring")]
public List<FacetsScoring> FacetsScoring { get; set; }

/// <summary>
/// Impact of personalization on the search results. If set to 0, personalization has no impact on the search results.
Expand All @@ -63,8 +63,8 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class PersonalizationStrategyParams {\n");
sb.Append(" EventScoring: ").Append(EventScoring).Append("\n");
sb.Append(" FacetScoring: ").Append(FacetScoring).Append("\n");
sb.Append(" EventsScoring: ").Append(EventsScoring).Append("\n");
sb.Append(" FacetsScoring: ").Append(FacetsScoring).Append("\n");
sb.Append(" PersonalizationImpact: ").Append(PersonalizationImpact).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -92,8 +92,8 @@ public override bool Equals(object obj)
}

return
(EventScoring == input.EventScoring || EventScoring != null && input.EventScoring != null && EventScoring.SequenceEqual(input.EventScoring)) &&
(FacetScoring == input.FacetScoring || FacetScoring != null && input.FacetScoring != null && FacetScoring.SequenceEqual(input.FacetScoring)) &&
(EventsScoring == input.EventsScoring || EventsScoring != null && input.EventsScoring != null && EventsScoring.SequenceEqual(input.EventsScoring)) &&
(FacetsScoring == input.FacetsScoring || FacetsScoring != null && input.FacetsScoring != null && FacetsScoring.SequenceEqual(input.FacetsScoring)) &&
(PersonalizationImpact == input.PersonalizationImpact || PersonalizationImpact.Equals(input.PersonalizationImpact));
}

Expand All @@ -106,13 +106,13 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (EventScoring != null)
if (EventsScoring != null)
{
hashCode = (hashCode * 59) + EventScoring.GetHashCode();
hashCode = (hashCode * 59) + EventsScoring.GetHashCode();
}
if (FacetScoring != null)
if (FacetsScoring != null)
{
hashCode = (hashCode * 59) + FacetScoring.GetHashCode();
hashCode = (hashCode * 59) + FacetsScoring.GetHashCode();
}
hashCode = (hashCode * 59) + PersonalizationImpact.GetHashCode();
return hashCode;
Expand Down

0 comments on commit f44f198

Please sign in to comment.