Bluemage/schemas/proto/subreddits/v1/delete.proto

24 lines
559 B
Protocol Buffer

syntax = "proto3";
package subreddits.v1;
import "buf/validate/validate.proto";
message DeleteSubredditRequest {
// name of the subreddit to delete
string name = 1 [(buf.validate.field).string.min_len = 1];
// if true, delete all images associated with the subreddit
// from disk as well.
bool delete_images = 2;
}
message DeleteSubredditResponse {
// name of the subreddit that was deleted.
string name = 1;
// number of images that were about to be deleted.
//
// always 0 if delete_images is false.
int64 images_to_delete = 2;
}