Skip to content

Commit 7ce84bf

Browse files
algolia-botFluf22millotp
committed
fix(specs): update time range number types [skip-bc] (#4023) (generated) [skip ci]
Co-authored-by: Thomas Raffray <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 22f49f1 commit 7ce84bf

File tree

23 files changed

+80
-72
lines changed

23 files changed

+80
-72
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public TimeRange() { }
2626
/// </summary>
2727
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
2828
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
29-
public TimeRange(int from, int until)
29+
public TimeRange(long from, long until)
3030
{
3131
From = from;
3232
Until = until;
@@ -37,14 +37,14 @@ public TimeRange(int from, int until)
3737
/// </summary>
3838
/// <value>When the rule should start to be active, in Unix epoch time.</value>
3939
[JsonPropertyName("from")]
40-
public int From { get; set; }
40+
public long From { get; set; }
4141

4242
/// <summary>
4343
/// When the rule should stop to be active, in Unix epoch time.
4444
/// </summary>
4545
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4646
[JsonPropertyName("until")]
47-
public int Until { get; set; }
47+
public long Until { get; set; }
4848

4949
/// <summary>
5050
/// Returns the string presentation of the object

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public TimeRange() { }
2626
/// </summary>
2727
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
2828
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
29-
public TimeRange(int from, int until)
29+
public TimeRange(long from, long until)
3030
{
3131
From = from;
3232
Until = until;
@@ -37,14 +37,14 @@ public TimeRange(int from, int until)
3737
/// </summary>
3838
/// <value>When the rule should start to be active, in Unix epoch time.</value>
3939
[JsonPropertyName("from")]
40-
public int From { get; set; }
40+
public long From { get; set; }
4141

4242
/// <summary>
4343
/// When the rule should stop to be active, in Unix epoch time.
4444
/// </summary>
4545
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
4646
[JsonPropertyName("until")]
47-
public int Until { get; set; }
47+
public long Until { get; set; }
4848

4949
/// <summary>
5050
/// Returns the string presentation of the object

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

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/recommend/TimeRange.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111
public class TimeRange {
1212

1313
@JsonProperty("from")
14-
private Integer from;
14+
private Long from;
1515

1616
@JsonProperty("until")
17-
private Integer until;
17+
private Long until;
1818

19-
public TimeRange setFrom(Integer from) {
19+
public TimeRange setFrom(Long from) {
2020
this.from = from;
2121
return this;
2222
}
2323

2424
/** When the rule should start to be active, in Unix epoch time. */
2525
@javax.annotation.Nonnull
26-
public Integer getFrom() {
26+
public Long getFrom() {
2727
return from;
2828
}
2929

30-
public TimeRange setUntil(Integer until) {
30+
public TimeRange setUntil(Long until) {
3131
this.until = until;
3232
return this;
3333
}
3434

3535
/** When the rule should stop to be active, in Unix epoch time. */
3636
@javax.annotation.Nonnull
37-
public Integer getUntil() {
37+
public Long getUntil() {
3838
return until;
3939
}
4040

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111
public class TimeRange {
1212

1313
@JsonProperty("from")
14-
private Integer from;
14+
private Long from;
1515

1616
@JsonProperty("until")
17-
private Integer until;
17+
private Long until;
1818

19-
public TimeRange setFrom(Integer from) {
19+
public TimeRange setFrom(Long from) {
2020
this.from = from;
2121
return this;
2222
}
2323

2424
/** When the rule should start to be active, in Unix epoch time. */
2525
@javax.annotation.Nonnull
26-
public Integer getFrom() {
26+
public Long getFrom() {
2727
return from;
2828
}
2929

30-
public TimeRange setUntil(Integer until) {
30+
public TimeRange setUntil(Long until) {
3131
this.until = until;
3232
return this;
3333
}
3434

3535
/** When the rule should stop to be active, in Unix epoch time. */
3636
@javax.annotation.Nonnull
37-
public Integer getUntil() {
37+
public Long getUntil() {
3838
return until;
3939
}
4040

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/recommend/TimeRange.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import kotlinx.serialization.json.*
1414
public data class TimeRange(
1515

1616
/** When the rule should start to be active, in Unix epoch time. */
17-
@SerialName(value = "from") val from: Int,
17+
@SerialName(value = "from") val from: Long,
1818

1919
/** When the rule should stop to be active, in Unix epoch time. */
20-
@SerialName(value = "until") val until: Int,
20+
@SerialName(value = "until") val until: Long,
2121
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import kotlinx.serialization.json.*
1414
public data class TimeRange(
1515

1616
/** When the rule should start to be active, in Unix epoch time. */
17-
@SerialName(value = "from") val from: Int,
17+
@SerialName(value = "from") val from: Long,
1818

1919
/** When the rule should stop to be active, in Unix epoch time. */
20-
@SerialName(value = "until") val until: Int,
20+
@SerialName(value = "until") val until: Long,
2121
)

clients/algoliasearch-client-php/lib/Model/Recommend/TimeRange.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class TimeRange extends AbstractModel implements ModelInterface, \ArrayAccess, \
3030
* @var string[]
3131
*/
3232
protected static $modelFormats = [
33-
'from' => null,
34-
'until' => null,
33+
'from' => 'int64',
34+
'until' => 'int64',
3535
];
3636

3737
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class TimeRange extends AbstractModel implements ModelInterface, \ArrayAccess, \
3030
* @var string[]
3131
*/
3232
protected static $modelFormats = [
33-
'from' => null,
34-
'until' => null,
33+
'from' => 'int64',
34+
'until' => 'int64',
3535
];
3636

3737
/**

0 commit comments

Comments
 (0)