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

25 lines
627 B
Protocol Buffer

syntax = "proto3";
package subreddits.v1;
import "buf/validate/validate.proto";
option go_package = "github.com/tigorlazuardi/bluemage/go/gen/proto/subreddits/v1";
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 disable_scheduler = 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;
}