Skip to content

Commit e8d8ef5

Browse files
committed
Upgrade Java SDK to spec 1.20.8-nightly.2
1 parent c923360 commit e8d8ef5

File tree

3 files changed

+114
-1
lines changed

3 files changed

+114
-1
lines changed

docs/CalendarEvent.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ An event scheduled on a group's calendar
2525
|**interestedUserCount** | **Integer** | | [optional] |
2626
|**isDraft** | **Boolean** | | [optional] |
2727
|**languages** | **List<String>** | Languages that might be spoken at this event | [optional] |
28+
|**occurrenceKind** | **String** | So far if it exists, always the string \"single\" | [optional] |
2829
|**ownerId** | **String** | | [optional] |
2930
|**platforms** | **List<CalendarEventPlatform>** | | [optional] |
31+
|**recurrence** | **String** | So far unused, always \"null\" | [optional] |
3032
|**roleIds** | **List<String>** | Group roles that may join this event | [optional] |
33+
|**seriesId** | **String** | So far unused, always \"null\" | [optional] |
3134
|**startsAt** | **OffsetDateTime** | | |
3235
|**tags** | **List<String>** | Custom tags for this event | [optional] |
3336
|**title** | **String** | | |

openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7879,18 +7879,29 @@ components:
78797879
description: Languages that might be spoken at this event
78807880
items:
78817881
$ref: '#/components/schemas/LanguageCode'
7882+
occurrenceKind:
7883+
type: string
7884+
description: So far if it exists, always the string "single"
78827885
ownerId:
78837886
$ref: '#/components/schemas/GroupID'
78847887
platforms:
78857888
type: array
78867889
items:
78877890
$ref: '#/components/schemas/CalendarEventPlatform'
7891+
recurrence:
7892+
type: string
7893+
description: So far unused, always "null"
7894+
nullable: true
78887895
roleIds:
78897896
type: array
78907897
description: Group roles that may join this event
78917898
nullable: true
78927899
items:
78937900
$ref: '#/components/schemas/GroupRoleID'
7901+
seriesId:
7902+
type: string
7903+
description: So far unused, always "null"
7904+
nullable: true
78947905
startsAt:
78957906
type: string
78967907
format: date-time

src/main/java/io/github/vrchatapi/model/CalendarEvent.java

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ public class CalendarEvent {
126126
@SerializedName(SERIALIZED_NAME_LANGUAGES)
127127
private List<String> languages = null;
128128

129+
public static final String SERIALIZED_NAME_OCCURRENCE_KIND = "occurrenceKind";
130+
@SerializedName(SERIALIZED_NAME_OCCURRENCE_KIND)
131+
private String occurrenceKind;
132+
129133
public static final String SERIALIZED_NAME_OWNER_ID = "ownerId";
130134
@SerializedName(SERIALIZED_NAME_OWNER_ID)
131135
private String ownerId;
@@ -134,10 +138,18 @@ public class CalendarEvent {
134138
@SerializedName(SERIALIZED_NAME_PLATFORMS)
135139
private List<CalendarEventPlatform> platforms = null;
136140

141+
public static final String SERIALIZED_NAME_RECURRENCE = "recurrence";
142+
@SerializedName(SERIALIZED_NAME_RECURRENCE)
143+
private String recurrence;
144+
137145
public static final String SERIALIZED_NAME_ROLE_IDS = "roleIds";
138146
@SerializedName(SERIALIZED_NAME_ROLE_IDS)
139147
private List<String> roleIds = null;
140148

149+
public static final String SERIALIZED_NAME_SERIES_ID = "seriesId";
150+
@SerializedName(SERIALIZED_NAME_SERIES_ID)
151+
private String seriesId;
152+
141153
public static final String SERIALIZED_NAME_STARTS_AT = "startsAt";
142154
@SerializedName(SERIALIZED_NAME_STARTS_AT)
143155
private OffsetDateTime startsAt;
@@ -568,6 +580,29 @@ public void setLanguages(List<String> languages) {
568580
}
569581

570582

583+
public CalendarEvent occurrenceKind(String occurrenceKind) {
584+
585+
this.occurrenceKind = occurrenceKind;
586+
return this;
587+
}
588+
589+
/**
590+
* So far if it exists, always the string \&quot;single\&quot;
591+
* @return occurrenceKind
592+
**/
593+
@javax.annotation.Nullable
594+
@ApiModelProperty(value = "So far if it exists, always the string \"single\"")
595+
596+
public String getOccurrenceKind() {
597+
return occurrenceKind;
598+
}
599+
600+
601+
public void setOccurrenceKind(String occurrenceKind) {
602+
this.occurrenceKind = occurrenceKind;
603+
}
604+
605+
571606
public CalendarEvent ownerId(String ownerId) {
572607

573608
this.ownerId = ownerId;
@@ -622,6 +657,29 @@ public void setPlatforms(List<CalendarEventPlatform> platforms) {
622657
}
623658

624659

660+
public CalendarEvent recurrence(String recurrence) {
661+
662+
this.recurrence = recurrence;
663+
return this;
664+
}
665+
666+
/**
667+
* So far unused, always \&quot;null\&quot;
668+
* @return recurrence
669+
**/
670+
@javax.annotation.Nullable
671+
@ApiModelProperty(value = "So far unused, always \"null\"")
672+
673+
public String getRecurrence() {
674+
return recurrence;
675+
}
676+
677+
678+
public void setRecurrence(String recurrence) {
679+
this.recurrence = recurrence;
680+
}
681+
682+
625683
public CalendarEvent roleIds(List<String> roleIds) {
626684

627685
this.roleIds = roleIds;
@@ -653,6 +711,29 @@ public void setRoleIds(List<String> roleIds) {
653711
}
654712

655713

714+
public CalendarEvent seriesId(String seriesId) {
715+
716+
this.seriesId = seriesId;
717+
return this;
718+
}
719+
720+
/**
721+
* So far unused, always \&quot;null\&quot;
722+
* @return seriesId
723+
**/
724+
@javax.annotation.Nullable
725+
@ApiModelProperty(value = "So far unused, always \"null\"")
726+
727+
public String getSeriesId() {
728+
return seriesId;
729+
}
730+
731+
732+
public void setSeriesId(String seriesId) {
733+
this.seriesId = seriesId;
734+
}
735+
736+
656737
public CalendarEvent startsAt(OffsetDateTime startsAt) {
657738

658739
this.startsAt = startsAt;
@@ -849,9 +930,12 @@ public boolean equals(Object o) {
849930
Objects.equals(this.interestedUserCount, calendarEvent.interestedUserCount) &&
850931
Objects.equals(this.isDraft, calendarEvent.isDraft) &&
851932
Objects.equals(this.languages, calendarEvent.languages) &&
933+
Objects.equals(this.occurrenceKind, calendarEvent.occurrenceKind) &&
852934
Objects.equals(this.ownerId, calendarEvent.ownerId) &&
853935
Objects.equals(this.platforms, calendarEvent.platforms) &&
936+
Objects.equals(this.recurrence, calendarEvent.recurrence) &&
854937
Objects.equals(this.roleIds, calendarEvent.roleIds) &&
938+
Objects.equals(this.seriesId, calendarEvent.seriesId) &&
855939
Objects.equals(this.startsAt, calendarEvent.startsAt) &&
856940
Objects.equals(this.tags, calendarEvent.tags) &&
857941
Objects.equals(this.title, calendarEvent.title) &&
@@ -867,7 +951,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
867951

868952
@Override
869953
public int hashCode() {
870-
return Objects.hash(accessType, category, closeInstanceAfterEndMinutes, createdAt, deletedAt, description, durationInMs, endsAt, featured, guestEarlyJoinMinutes, hostEarlyJoinMinutes, id, imageId, imageUrl, interestedUserCount, isDraft, languages, ownerId, platforms, roleIds, startsAt, tags, title, type, updatedAt, userInterest, usesInstanceOverflow);
954+
return Objects.hash(accessType, category, closeInstanceAfterEndMinutes, createdAt, deletedAt, description, durationInMs, endsAt, featured, guestEarlyJoinMinutes, hostEarlyJoinMinutes, id, imageId, imageUrl, interestedUserCount, isDraft, languages, occurrenceKind, ownerId, platforms, recurrence, roleIds, seriesId, startsAt, tags, title, type, updatedAt, userInterest, usesInstanceOverflow);
871955
}
872956

873957
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -898,9 +982,12 @@ public String toString() {
898982
sb.append(" interestedUserCount: ").append(toIndentedString(interestedUserCount)).append("\n");
899983
sb.append(" isDraft: ").append(toIndentedString(isDraft)).append("\n");
900984
sb.append(" languages: ").append(toIndentedString(languages)).append("\n");
985+
sb.append(" occurrenceKind: ").append(toIndentedString(occurrenceKind)).append("\n");
901986
sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n");
902987
sb.append(" platforms: ").append(toIndentedString(platforms)).append("\n");
988+
sb.append(" recurrence: ").append(toIndentedString(recurrence)).append("\n");
903989
sb.append(" roleIds: ").append(toIndentedString(roleIds)).append("\n");
990+
sb.append(" seriesId: ").append(toIndentedString(seriesId)).append("\n");
904991
sb.append(" startsAt: ").append(toIndentedString(startsAt)).append("\n");
905992
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
906993
sb.append(" title: ").append(toIndentedString(title)).append("\n");
@@ -947,9 +1034,12 @@ private String toIndentedString(Object o) {
9471034
openapiFields.add("interestedUserCount");
9481035
openapiFields.add("isDraft");
9491036
openapiFields.add("languages");
1037+
openapiFields.add("occurrenceKind");
9501038
openapiFields.add("ownerId");
9511039
openapiFields.add("platforms");
1040+
openapiFields.add("recurrence");
9521041
openapiFields.add("roleIds");
1042+
openapiFields.add("seriesId");
9531043
openapiFields.add("startsAt");
9541044
openapiFields.add("tags");
9551045
openapiFields.add("title");
@@ -1012,17 +1102,26 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
10121102
if (jsonObj.get("languages") != null && !jsonObj.get("languages").isJsonArray()) {
10131103
throw new IllegalArgumentException(String.format("Expected the field `languages` to be an array in the JSON string but got `%s`", jsonObj.get("languages").toString()));
10141104
}
1105+
if ((jsonObj.get("occurrenceKind") != null && !jsonObj.get("occurrenceKind").isJsonNull()) && !jsonObj.get("occurrenceKind").isJsonPrimitive()) {
1106+
throw new IllegalArgumentException(String.format("Expected the field `occurrenceKind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("occurrenceKind").toString()));
1107+
}
10151108
if ((jsonObj.get("ownerId") != null && !jsonObj.get("ownerId").isJsonNull()) && !jsonObj.get("ownerId").isJsonPrimitive()) {
10161109
throw new IllegalArgumentException(String.format("Expected the field `ownerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ownerId").toString()));
10171110
}
10181111
// ensure the optional json data is an array if present
10191112
if (jsonObj.get("platforms") != null && !jsonObj.get("platforms").isJsonArray()) {
10201113
throw new IllegalArgumentException(String.format("Expected the field `platforms` to be an array in the JSON string but got `%s`", jsonObj.get("platforms").toString()));
10211114
}
1115+
if ((jsonObj.get("recurrence") != null && !jsonObj.get("recurrence").isJsonNull()) && !jsonObj.get("recurrence").isJsonPrimitive()) {
1116+
throw new IllegalArgumentException(String.format("Expected the field `recurrence` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recurrence").toString()));
1117+
}
10221118
// ensure the optional json data is an array if present
10231119
if (jsonObj.get("roleIds") != null && !jsonObj.get("roleIds").isJsonArray()) {
10241120
throw new IllegalArgumentException(String.format("Expected the field `roleIds` to be an array in the JSON string but got `%s`", jsonObj.get("roleIds").toString()));
10251121
}
1122+
if ((jsonObj.get("seriesId") != null && !jsonObj.get("seriesId").isJsonNull()) && !jsonObj.get("seriesId").isJsonPrimitive()) {
1123+
throw new IllegalArgumentException(String.format("Expected the field `seriesId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("seriesId").toString()));
1124+
}
10261125
// ensure the optional json data is an array if present
10271126
if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) {
10281127
throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString()));

0 commit comments

Comments
 (0)