syntax = "proto3"; package subreddits.v1; import "buf/validate/validate.proto"; import "subreddits/v1/types.proto"; message CreateSubredditRequest { // name of the subreddits to insert. // // accept insensitive casing, but casing // will change to what Reddit has for // consistency. string name = 1 [(buf.validate.field).string.min_len = 1]; // disabled disable the subreddit. // // disabled subreddit is left out from the scheduler. bool disabled = 2; SubredditType type = 3; // schedule is cron job spec to set schedule on when // the runner for this subreddit runs. string schedule = 4 [(buf.validate.field).string.min_len = 1]; int64 countback = 5 [(buf.validate.field).int64.gt = 0]; } message CreateSubredditResponse { string name = 1; }