Bluemage/schemas/proto/subreddits/v1/update.proto

23 lines
533 B
Protocol Buffer

syntax = "proto3";
package subreddits.v1;
import "buf/validate/validate.proto";
message UpdateSubredditRequest {
// The name of the subreddit to update.
string name = 1 [(buf.validate.field).string.min_len = 1];
SubredditSetter set = 2;
}
message SubredditSetter {
optional bool disabled = 1;
optional string schedule = 2 [(buf.validate.field).string.min_len = 1];
optional int64 countback = 3 [(buf.validate.field).int64.gt = 0];
}
message UpdateSubredditResponse {
// The updated subreddit.
string name = 1;
}