Skip to content

Commit

Permalink
Update title types
Browse files Browse the repository at this point in the history
  • Loading branch information
slavovojacek committed Apr 20, 2024
1 parent 0718804 commit 6048859
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions thamesflix/titlecatalog/v1alpha1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ syntax = "proto3";

package thamesflix.titlecatalog.v1alpha1;

import "google/protobuf/duration.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "google/type/date.proto";
Expand Down Expand Up @@ -118,9 +117,8 @@ message Title {
// A brief summary of the story.
// Required for create requests.
string plot = 6;
// The duration of the title.
// Required for create requests.
google.protobuf.Duration duration = 7;
// The duration of the title in minutes.
optional uint32 duration_minutes = 7;
// The release date of the title.
// Required for create requests.
google.type.Date release_date = 8;
Expand All @@ -138,7 +136,7 @@ message Title {
repeated string genres = 11;
// The URL of the poster for the title.
optional string poster_url = 12;
// The type of the title (e.g. movie, tv show).
// The type of the title (e.g. movie, series).
// Required for create requests.
TitleType type = 13;
// Awards or nominations the title has received.
Expand All @@ -147,16 +145,18 @@ message Title {

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

// ServingStatus represents the health status of a service.
Expand Down

0 comments on commit 6048859

Please sign in to comment.