Skip to content

Commit 6048859

Browse files
committed
Update title types
1 parent 0718804 commit 6048859

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

thamesflix/titlecatalog/v1alpha1/service.proto

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ syntax = "proto3";
22

33
package thamesflix.titlecatalog.v1alpha1;
44

5-
import "google/protobuf/duration.proto";
65
import "google/protobuf/field_mask.proto";
76
import "google/protobuf/timestamp.proto";
87
import "google/type/date.proto";
@@ -118,9 +117,8 @@ message Title {
118117
// A brief summary of the story.
119118
// Required for create requests.
120119
string plot = 6;
121-
// The duration of the title.
122-
// Required for create requests.
123-
google.protobuf.Duration duration = 7;
120+
// The duration of the title in minutes.
121+
optional uint32 duration_minutes = 7;
124122
// The release date of the title.
125123
// Required for create requests.
126124
google.type.Date release_date = 8;
@@ -138,7 +136,7 @@ message Title {
138136
repeated string genres = 11;
139137
// The URL of the poster for the title.
140138
optional string poster_url = 12;
141-
// The type of the title (e.g. movie, tv show).
139+
// The type of the title (e.g. movie, series).
142140
// Required for create requests.
143141
TitleType type = 13;
144142
// Awards or nominations the title has received.
@@ -147,16 +145,18 @@ message Title {
147145

148146
// TitleType represents the type of a title.
149147
enum TitleType {
150-
// The title type is unspecified.
148+
// Default value for cases where the type is not set or unknown.
151149
TITLE_TYPE_UNSPECIFIED = 0;
152-
// The title is a movie.
150+
// All full-length films, typically narrative fiction or theatrical releases.
153151
TITLE_TYPE_MOVIE = 1;
154-
// The title is a TV show.
155-
TITLE_TYPE_TV_SHOW = 2;
156-
// The title is a video game.
157-
TITLE_TYPE_VIDEO_GAME = 3;
158-
// The title is of another type.
159-
TITLE_TYPE_OTHER = 4;
152+
// All serialized content, including TV shows, web series, miniseries, and animated series.
153+
TITLE_TYPE_SERIES = 2;
154+
// Content that is not regularly scheduled or episodic, such as award shows, yearly events, and TV specials.
155+
TITLE_TYPE_SPECIAL = 3;
156+
// Short form content such as short films and music videos, typically under 40 minutes.
157+
TITLE_TYPE_SHORT = 4;
158+
// Both single documentaries and documentary series.
159+
TITLE_TYPE_DOCUMENTARY = 5;
160160
}
161161

162162
// ServingStatus represents the health status of a service.

0 commit comments

Comments
 (0)