ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.474.0

This commit is contained in:
speakeasybot
2025-01-24 00:27:12 +00:00
parent 412b27f162
commit 9dc8821b31
53 changed files with 2204 additions and 946 deletions

View File

@@ -0,0 +1,38 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public enum EnableCreditsMarkerGeneration {
LibraryDefault("-1"),
Disabled("0");
@JsonValue
private final String value;
private EnableCreditsMarkerGeneration(String value) {
this.value = value;
}
public String value() {
return value;
}
public static Optional<EnableCreditsMarkerGeneration> fromValue(String value) {
for (EnableCreditsMarkerGeneration o: EnableCreditsMarkerGeneration.values()) {
if (Objects.deepEquals(o.value, value)) {
return Optional.of(o);
}
}
return Optional.empty();
}
}

View File

@@ -0,0 +1,39 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public enum EpisodeSort {
LibraryDefault("-1"),
OldestFirst("0"),
NewestFirst("1");
@JsonValue
private final String value;
private EpisodeSort(String value) {
this.value = value;
}
public String value() {
return value;
}
public static Optional<EpisodeSort> fromValue(String value) {
for (EpisodeSort o: EpisodeSort.values()) {
if (Objects.deepEquals(o.value, value)) {
return Optional.of(o);
}
}
return Optional.empty();
}
}

View File

@@ -9,9 +9,13 @@ import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public enum FlattenSeasons {
False("0"),
True("1");
LibraryDefault("-1"),
Hide("0"),
Show("1");
@JsonValue
private final String value;

View File

@@ -0,0 +1,38 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* GetLibraryItemsEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public enum GetLibraryItemsEnableCreditsMarkerGeneration {
LibraryDefault("-1"),
Disabled("0");
@JsonValue
private final String value;
private GetLibraryItemsEnableCreditsMarkerGeneration(String value) {
this.value = value;
}
public String value() {
return value;
}
public static Optional<GetLibraryItemsEnableCreditsMarkerGeneration> fromValue(String value) {
for (GetLibraryItemsEnableCreditsMarkerGeneration o: GetLibraryItemsEnableCreditsMarkerGeneration.values()) {
if (Objects.deepEquals(o.value, value)) {
return Optional.of(o);
}
}
return Optional.empty();
}
}

View File

@@ -0,0 +1,39 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* GetLibraryItemsEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public enum GetLibraryItemsEpisodeSort {
LibraryDefault("-1"),
OldestFirst("0"),
NewestFirst("1");
@JsonValue
private final String value;
private GetLibraryItemsEpisodeSort(String value) {
this.value = value;
}
public String value() {
return value;
}
public static Optional<GetLibraryItemsEpisodeSort> fromValue(String value) {
for (GetLibraryItemsEpisodeSort o: GetLibraryItemsEpisodeSort.values()) {
if (Objects.deepEquals(o.value, value)) {
return Optional.of(o);
}
}
return Optional.empty();
}
}

View File

@@ -9,9 +9,13 @@ import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* GetLibraryItemsFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public enum GetLibraryItemsFlattenSeasons {
False("0"),
True("1");
LibraryDefault("-1"),
Hide("0"),
Show("1");
@JsonValue
private final String value;

View File

@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import dev.plexapi.sdk.utils.LazySingletonValue;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Boolean;
import java.lang.Double;
@@ -103,10 +101,27 @@ public class GetLibraryItemsMetadata {
@JsonProperty("tagline")
private Optional<String> tagline;
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("flattenSeasons")
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("episodeSort")
private Optional<? extends GetLibraryItemsEpisodeSort> episodeSort;
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("enableCreditsMarkerGeneration")
private Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -374,6 +389,8 @@ public class GetLibraryItemsMetadata {
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
@JsonProperty("tagline") Optional<String> tagline,
@JsonProperty("flattenSeasons") Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons,
@JsonProperty("episodeSort") Optional<? extends GetLibraryItemsEpisodeSort> episodeSort,
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
@JsonProperty("showOrdering") Optional<? extends GetLibraryItemsShowOrdering> showOrdering,
@JsonProperty("thumb") Optional<String> thumb,
@JsonProperty("art") Optional<String> art,
@@ -448,6 +465,8 @@ public class GetLibraryItemsMetadata {
Utils.checkNotNull(seasonCount, "seasonCount");
Utils.checkNotNull(tagline, "tagline");
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
Utils.checkNotNull(episodeSort, "episodeSort");
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
Utils.checkNotNull(showOrdering, "showOrdering");
Utils.checkNotNull(thumb, "thumb");
Utils.checkNotNull(art, "art");
@@ -522,6 +541,8 @@ public class GetLibraryItemsMetadata {
this.seasonCount = seasonCount;
this.tagline = tagline;
this.flattenSeasons = flattenSeasons;
this.episodeSort = episodeSort;
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
this.showOrdering = showOrdering;
this.thumb = thumb;
this.art = art;
@@ -587,7 +608,7 @@ public class GetLibraryItemsMetadata {
String title,
String summary,
long addedAt) {
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
}
/**
@@ -689,12 +710,33 @@ public class GetLibraryItemsMetadata {
return tagline;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetLibraryItemsFlattenSeasons> flattenSeasons() {
return (Optional<GetLibraryItemsFlattenSeasons>) flattenSeasons;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetLibraryItemsEpisodeSort> episodeSort() {
return (Optional<GetLibraryItemsEpisodeSort>) episodeSort;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
return (Optional<GetLibraryItemsEnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -1203,18 +1245,60 @@ public class GetLibraryItemsMetadata {
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public GetLibraryItemsMetadata withFlattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public GetLibraryItemsMetadata withFlattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = flattenSeasons;
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public GetLibraryItemsMetadata withEpisodeSort(GetLibraryItemsEpisodeSort episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = Optional.ofNullable(episodeSort);
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public GetLibraryItemsMetadata withEpisodeSort(Optional<? extends GetLibraryItemsEpisodeSort> episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = episodeSort;
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
return this;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -1949,6 +2033,8 @@ public class GetLibraryItemsMetadata {
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
Objects.deepEquals(this.tagline, other.tagline) &&
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
Objects.deepEquals(this.thumb, other.thumb) &&
Objects.deepEquals(this.art, other.art) &&
@@ -2028,6 +2114,8 @@ public class GetLibraryItemsMetadata {
seasonCount,
tagline,
flattenSeasons,
episodeSort,
enableCreditsMarkerGeneration,
showOrdering,
thumb,
art,
@@ -2107,6 +2195,8 @@ public class GetLibraryItemsMetadata {
"seasonCount", seasonCount,
"tagline", tagline,
"flattenSeasons", flattenSeasons,
"episodeSort", episodeSort,
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
"showOrdering", showOrdering,
"thumb", thumb,
"art", art,
@@ -2202,7 +2292,11 @@ public class GetLibraryItemsMetadata {
private Optional<String> tagline = Optional.empty();
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons = Optional.empty();
private Optional<? extends GetLibraryItemsEpisodeSort> episodeSort = Optional.empty();
private Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering = Optional.empty();
@@ -2507,18 +2601,60 @@ public class GetLibraryItemsMetadata {
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public Builder flattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public Builder flattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = flattenSeasons;
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public Builder episodeSort(GetLibraryItemsEpisodeSort episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = Optional.ofNullable(episodeSort);
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public Builder episodeSort(Optional<? extends GetLibraryItemsEpisodeSort> episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = episodeSort;
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public Builder enableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public Builder enableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
return this;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -3225,9 +3361,7 @@ public class GetLibraryItemsMetadata {
}
public GetLibraryItemsMetadata build() {
if (flattenSeasons == null) {
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
} return new GetLibraryItemsMetadata(
return new GetLibraryItemsMetadata(
ratingKey,
key,
guid,
@@ -3247,6 +3381,8 @@ public class GetLibraryItemsMetadata {
seasonCount,
tagline,
flattenSeasons,
episodeSort,
enableCreditsMarkerGeneration,
showOrdering,
thumb,
art,
@@ -3303,12 +3439,6 @@ public class GetLibraryItemsMetadata {
parentThumb,
parentTheme);
}
private static final LazySingletonValue<Optional<? extends GetLibraryItemsFlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
new LazySingletonValue<>(
"flattenSeasons",
"\"0\"",
new TypeReference<Optional<? extends GetLibraryItemsFlattenSeasons>>() {});
}
}

View File

@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import dev.plexapi.sdk.utils.LazySingletonValue;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Boolean;
import java.lang.Double;
@@ -103,10 +101,27 @@ public class GetRecentlyAddedMetadata {
@JsonProperty("tagline")
private Optional<String> tagline;
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("flattenSeasons")
private Optional<? extends FlattenSeasons> flattenSeasons;
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("episodeSort")
private Optional<? extends EpisodeSort> episodeSort;
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("enableCreditsMarkerGeneration")
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -374,6 +389,8 @@ public class GetRecentlyAddedMetadata {
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
@JsonProperty("tagline") Optional<String> tagline,
@JsonProperty("flattenSeasons") Optional<? extends FlattenSeasons> flattenSeasons,
@JsonProperty("episodeSort") Optional<? extends EpisodeSort> episodeSort,
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
@JsonProperty("showOrdering") Optional<? extends ShowOrdering> showOrdering,
@JsonProperty("thumb") Optional<String> thumb,
@JsonProperty("art") Optional<String> art,
@@ -448,6 +465,8 @@ public class GetRecentlyAddedMetadata {
Utils.checkNotNull(seasonCount, "seasonCount");
Utils.checkNotNull(tagline, "tagline");
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
Utils.checkNotNull(episodeSort, "episodeSort");
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
Utils.checkNotNull(showOrdering, "showOrdering");
Utils.checkNotNull(thumb, "thumb");
Utils.checkNotNull(art, "art");
@@ -522,6 +541,8 @@ public class GetRecentlyAddedMetadata {
this.seasonCount = seasonCount;
this.tagline = tagline;
this.flattenSeasons = flattenSeasons;
this.episodeSort = episodeSort;
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
this.showOrdering = showOrdering;
this.thumb = thumb;
this.art = art;
@@ -587,7 +608,7 @@ public class GetRecentlyAddedMetadata {
String title,
String summary,
long addedAt) {
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
}
/**
@@ -689,12 +710,33 @@ public class GetRecentlyAddedMetadata {
return tagline;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<FlattenSeasons> flattenSeasons() {
return (Optional<FlattenSeasons>) flattenSeasons;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<EpisodeSort> episodeSort() {
return (Optional<EpisodeSort>) episodeSort;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
return (Optional<EnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -1203,18 +1245,60 @@ public class GetRecentlyAddedMetadata {
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public GetRecentlyAddedMetadata withFlattenSeasons(FlattenSeasons flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public GetRecentlyAddedMetadata withFlattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = flattenSeasons;
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public GetRecentlyAddedMetadata withEpisodeSort(EpisodeSort episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = Optional.ofNullable(episodeSort);
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public GetRecentlyAddedMetadata withEpisodeSort(Optional<? extends EpisodeSort> episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = episodeSort;
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public GetRecentlyAddedMetadata withEnableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public GetRecentlyAddedMetadata withEnableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
return this;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -1949,6 +2033,8 @@ public class GetRecentlyAddedMetadata {
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
Objects.deepEquals(this.tagline, other.tagline) &&
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
Objects.deepEquals(this.thumb, other.thumb) &&
Objects.deepEquals(this.art, other.art) &&
@@ -2028,6 +2114,8 @@ public class GetRecentlyAddedMetadata {
seasonCount,
tagline,
flattenSeasons,
episodeSort,
enableCreditsMarkerGeneration,
showOrdering,
thumb,
art,
@@ -2107,6 +2195,8 @@ public class GetRecentlyAddedMetadata {
"seasonCount", seasonCount,
"tagline", tagline,
"flattenSeasons", flattenSeasons,
"episodeSort", episodeSort,
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
"showOrdering", showOrdering,
"thumb", thumb,
"art", art,
@@ -2202,7 +2292,11 @@ public class GetRecentlyAddedMetadata {
private Optional<String> tagline = Optional.empty();
private Optional<? extends FlattenSeasons> flattenSeasons;
private Optional<? extends FlattenSeasons> flattenSeasons = Optional.empty();
private Optional<? extends EpisodeSort> episodeSort = Optional.empty();
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
private Optional<? extends ShowOrdering> showOrdering = Optional.empty();
@@ -2507,18 +2601,60 @@ public class GetRecentlyAddedMetadata {
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public Builder flattenSeasons(FlattenSeasons flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public Builder flattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = flattenSeasons;
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public Builder episodeSort(EpisodeSort episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = Optional.ofNullable(episodeSort);
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public Builder episodeSort(Optional<? extends EpisodeSort> episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = episodeSort;
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public Builder enableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public Builder enableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
return this;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -3225,9 +3361,7 @@ public class GetRecentlyAddedMetadata {
}
public GetRecentlyAddedMetadata build() {
if (flattenSeasons == null) {
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
} return new GetRecentlyAddedMetadata(
return new GetRecentlyAddedMetadata(
ratingKey,
key,
guid,
@@ -3247,6 +3381,8 @@ public class GetRecentlyAddedMetadata {
seasonCount,
tagline,
flattenSeasons,
episodeSort,
enableCreditsMarkerGeneration,
showOrdering,
thumb,
art,
@@ -3303,12 +3439,6 @@ public class GetRecentlyAddedMetadata {
parentThumb,
parentTheme);
}
private static final LazySingletonValue<Optional<? extends FlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
new LazySingletonValue<>(
"flattenSeasons",
"\"0\"",
new TypeReference<Optional<? extends FlattenSeasons>>() {});
}
}

View File

@@ -0,0 +1,38 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* GetSearchAllLibrariesEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public enum GetSearchAllLibrariesEnableCreditsMarkerGeneration {
LibraryDefault("-1"),
Disabled("0");
@JsonValue
private final String value;
private GetSearchAllLibrariesEnableCreditsMarkerGeneration(String value) {
this.value = value;
}
public String value() {
return value;
}
public static Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration> fromValue(String value) {
for (GetSearchAllLibrariesEnableCreditsMarkerGeneration o: GetSearchAllLibrariesEnableCreditsMarkerGeneration.values()) {
if (Objects.deepEquals(o.value, value)) {
return Optional.of(o);
}
}
return Optional.empty();
}
}

View File

@@ -0,0 +1,39 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
package dev.plexapi.sdk.models.operations;
import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* GetSearchAllLibrariesEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public enum GetSearchAllLibrariesEpisodeSort {
LibraryDefault("-1"),
OldestFirst("0"),
NewestFirst("1");
@JsonValue
private final String value;
private GetSearchAllLibrariesEpisodeSort(String value) {
this.value = value;
}
public String value() {
return value;
}
public static Optional<GetSearchAllLibrariesEpisodeSort> fromValue(String value) {
for (GetSearchAllLibrariesEpisodeSort o: GetSearchAllLibrariesEpisodeSort.values()) {
if (Objects.deepEquals(o.value, value)) {
return Optional.of(o);
}
}
return Optional.empty();
}
}

View File

@@ -9,9 +9,13 @@ import java.lang.String;
import java.util.Objects;
import java.util.Optional;
/**
* GetSearchAllLibrariesFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public enum GetSearchAllLibrariesFlattenSeasons {
False("0"),
True("1");
LibraryDefault("-1"),
Hide("0"),
Show("1");
@JsonValue
private final String value;

View File

@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import dev.plexapi.sdk.utils.LazySingletonValue;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Boolean;
import java.lang.Double;
@@ -103,10 +101,27 @@ public class GetSearchAllLibrariesMetadata {
@JsonProperty("tagline")
private Optional<String> tagline;
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("flattenSeasons")
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("episodeSort")
private Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort;
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("enableCreditsMarkerGeneration")
private Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -374,6 +389,8 @@ public class GetSearchAllLibrariesMetadata {
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
@JsonProperty("tagline") Optional<String> tagline,
@JsonProperty("flattenSeasons") Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons,
@JsonProperty("episodeSort") Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort,
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
@JsonProperty("showOrdering") Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering,
@JsonProperty("thumb") Optional<String> thumb,
@JsonProperty("art") Optional<String> art,
@@ -448,6 +465,8 @@ public class GetSearchAllLibrariesMetadata {
Utils.checkNotNull(seasonCount, "seasonCount");
Utils.checkNotNull(tagline, "tagline");
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
Utils.checkNotNull(episodeSort, "episodeSort");
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
Utils.checkNotNull(showOrdering, "showOrdering");
Utils.checkNotNull(thumb, "thumb");
Utils.checkNotNull(art, "art");
@@ -522,6 +541,8 @@ public class GetSearchAllLibrariesMetadata {
this.seasonCount = seasonCount;
this.tagline = tagline;
this.flattenSeasons = flattenSeasons;
this.episodeSort = episodeSort;
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
this.showOrdering = showOrdering;
this.thumb = thumb;
this.art = art;
@@ -587,7 +608,7 @@ public class GetSearchAllLibrariesMetadata {
String title,
String summary,
long addedAt) {
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
}
/**
@@ -689,12 +710,33 @@ public class GetSearchAllLibrariesMetadata {
return tagline;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetSearchAllLibrariesFlattenSeasons> flattenSeasons() {
return (Optional<GetSearchAllLibrariesFlattenSeasons>) flattenSeasons;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetSearchAllLibrariesEpisodeSort> episodeSort() {
return (Optional<GetSearchAllLibrariesEpisodeSort>) episodeSort;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
return (Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -1203,18 +1245,60 @@ public class GetSearchAllLibrariesMetadata {
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public GetSearchAllLibrariesMetadata withFlattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public GetSearchAllLibrariesMetadata withFlattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = flattenSeasons;
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public GetSearchAllLibrariesMetadata withEpisodeSort(GetSearchAllLibrariesEpisodeSort episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = Optional.ofNullable(episodeSort);
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public GetSearchAllLibrariesMetadata withEpisodeSort(Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = episodeSort;
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public GetSearchAllLibrariesMetadata withEnableCreditsMarkerGeneration(GetSearchAllLibrariesEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public GetSearchAllLibrariesMetadata withEnableCreditsMarkerGeneration(Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
return this;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -1949,6 +2033,8 @@ public class GetSearchAllLibrariesMetadata {
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
Objects.deepEquals(this.tagline, other.tagline) &&
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
Objects.deepEquals(this.thumb, other.thumb) &&
Objects.deepEquals(this.art, other.art) &&
@@ -2028,6 +2114,8 @@ public class GetSearchAllLibrariesMetadata {
seasonCount,
tagline,
flattenSeasons,
episodeSort,
enableCreditsMarkerGeneration,
showOrdering,
thumb,
art,
@@ -2107,6 +2195,8 @@ public class GetSearchAllLibrariesMetadata {
"seasonCount", seasonCount,
"tagline", tagline,
"flattenSeasons", flattenSeasons,
"episodeSort", episodeSort,
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
"showOrdering", showOrdering,
"thumb", thumb,
"art", art,
@@ -2202,7 +2292,11 @@ public class GetSearchAllLibrariesMetadata {
private Optional<String> tagline = Optional.empty();
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons = Optional.empty();
private Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort = Optional.empty();
private Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
private Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering = Optional.empty();
@@ -2507,18 +2601,60 @@ public class GetSearchAllLibrariesMetadata {
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public Builder flattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
return this;
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
public Builder flattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
this.flattenSeasons = flattenSeasons;
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public Builder episodeSort(GetSearchAllLibrariesEpisodeSort episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = Optional.ofNullable(episodeSort);
return this;
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
public Builder episodeSort(Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort) {
Utils.checkNotNull(episodeSort, "episodeSort");
this.episodeSort = episodeSort;
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public Builder enableCreditsMarkerGeneration(GetSearchAllLibrariesEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
return this;
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
public Builder enableCreditsMarkerGeneration(Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
return this;
}
/**
* Setting that indicates the episode ordering for the show
* None = Library default,
@@ -3225,9 +3361,7 @@ public class GetSearchAllLibrariesMetadata {
}
public GetSearchAllLibrariesMetadata build() {
if (flattenSeasons == null) {
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
} return new GetSearchAllLibrariesMetadata(
return new GetSearchAllLibrariesMetadata(
ratingKey,
key,
guid,
@@ -3247,6 +3381,8 @@ public class GetSearchAllLibrariesMetadata {
seasonCount,
tagline,
flattenSeasons,
episodeSort,
enableCreditsMarkerGeneration,
showOrdering,
thumb,
art,
@@ -3303,12 +3439,6 @@ public class GetSearchAllLibrariesMetadata {
parentThumb,
parentTheme);
}
private static final LazySingletonValue<Optional<? extends GetSearchAllLibrariesFlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
new LazySingletonValue<>(
"flattenSeasons",
"\"0\"",
new TypeReference<Optional<? extends GetSearchAllLibrariesFlattenSeasons>>() {});
}
}