1140 lines
34 KiB
Go
1140 lines
34 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.33.1
|
|
// source: redditreader.proto
|
|
|
|
package redditreader
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Post struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Subreddit string `protobuf:"bytes,2,opt,name=subreddit,proto3" json:"subreddit,omitempty"`
|
|
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
|
Author string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
|
|
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
|
|
SelfText string `protobuf:"bytes,6,opt,name=self_text,json=selfText,proto3" json:"self_text,omitempty"`
|
|
Score int32 `protobuf:"varint,7,opt,name=score,proto3" json:"score,omitempty"`
|
|
CreatedUtc *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_utc,json=createdUtc,proto3" json:"created_utc,omitempty"`
|
|
FetchedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=fetched_at,json=fetchedAt,proto3" json:"fetched_at,omitempty"`
|
|
Relevance *float64 `protobuf:"fixed64,10,opt,name=relevance,proto3,oneof" json:"relevance,omitempty"`
|
|
Summary *string `protobuf:"bytes,11,opt,name=summary,proto3,oneof" json:"summary,omitempty"`
|
|
Read bool `protobuf:"varint,12,opt,name=read,proto3" json:"read,omitempty"`
|
|
Starred bool `protobuf:"varint,13,opt,name=starred,proto3" json:"starred,omitempty"`
|
|
Dismissed bool `protobuf:"varint,14,opt,name=dismissed,proto3" json:"dismissed,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Post) Reset() {
|
|
*x = Post{}
|
|
mi := &file_redditreader_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Post) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Post) ProtoMessage() {}
|
|
|
|
func (x *Post) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Post.ProtoReflect.Descriptor instead.
|
|
func (*Post) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Post) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Post) GetSubreddit() string {
|
|
if x != nil {
|
|
return x.Subreddit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Post) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Post) GetAuthor() string {
|
|
if x != nil {
|
|
return x.Author
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Post) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Post) GetSelfText() string {
|
|
if x != nil {
|
|
return x.SelfText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Post) GetScore() int32 {
|
|
if x != nil {
|
|
return x.Score
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Post) GetCreatedUtc() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedUtc
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Post) GetFetchedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.FetchedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Post) GetRelevance() float64 {
|
|
if x != nil && x.Relevance != nil {
|
|
return *x.Relevance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Post) GetSummary() string {
|
|
if x != nil && x.Summary != nil {
|
|
return *x.Summary
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Post) GetRead() bool {
|
|
if x != nil {
|
|
return x.Read
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Post) GetStarred() bool {
|
|
if x != nil {
|
|
return x.Starred
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Post) GetDismissed() bool {
|
|
if x != nil {
|
|
return x.Dismissed
|
|
}
|
|
return false
|
|
}
|
|
|
|
type StreamRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StreamRequest) Reset() {
|
|
*x = StreamRequest{}
|
|
mi := &file_redditreader_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StreamRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StreamRequest) ProtoMessage() {}
|
|
|
|
func (x *StreamRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.
|
|
func (*StreamRequest) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type ListRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Subreddit string `protobuf:"bytes,1,opt,name=subreddit,proto3" json:"subreddit,omitempty"`
|
|
Unread *bool `protobuf:"varint,2,opt,name=unread,proto3,oneof" json:"unread,omitempty"`
|
|
Starred *bool `protobuf:"varint,3,opt,name=starred,proto3,oneof" json:"starred,omitempty"`
|
|
Dismissed *bool `protobuf:"varint,4,opt,name=dismissed,proto3,oneof" json:"dismissed,omitempty"`
|
|
Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListRequest) Reset() {
|
|
*x = ListRequest{}
|
|
mi := &file_redditreader_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
func (x *ListRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ListRequest) GetSubreddit() string {
|
|
if x != nil {
|
|
return x.Subreddit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListRequest) GetUnread() bool {
|
|
if x != nil && x.Unread != nil {
|
|
return *x.Unread
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListRequest) GetStarred() bool {
|
|
if x != nil && x.Starred != nil {
|
|
return *x.Starred
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListRequest) GetDismissed() bool {
|
|
if x != nil && x.Dismissed != nil {
|
|
return *x.Dismissed
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListResponse) Reset() {
|
|
*x = ListResponse{}
|
|
mi := &file_redditreader_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
func (x *ListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ListResponse) GetPosts() []*Post {
|
|
if x != nil {
|
|
return x.Posts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Read *bool `protobuf:"varint,2,opt,name=read,proto3,oneof" json:"read,omitempty"`
|
|
Starred *bool `protobuf:"varint,3,opt,name=starred,proto3,oneof" json:"starred,omitempty"`
|
|
Dismissed *bool `protobuf:"varint,4,opt,name=dismissed,proto3,oneof" json:"dismissed,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateRequest) Reset() {
|
|
*x = UpdateRequest{}
|
|
mi := &file_redditreader_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateRequest) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UpdateRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateRequest) GetRead() bool {
|
|
if x != nil && x.Read != nil {
|
|
return *x.Read
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateRequest) GetStarred() bool {
|
|
if x != nil && x.Starred != nil {
|
|
return *x.Starred
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateRequest) GetDismissed() bool {
|
|
if x != nil && x.Dismissed != nil {
|
|
return *x.Dismissed
|
|
}
|
|
return false
|
|
}
|
|
|
|
type FeedbackRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PostId string `protobuf:"bytes,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
|
|
Vote int32 `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FeedbackRequest) Reset() {
|
|
*x = FeedbackRequest{}
|
|
mi := &file_redditreader_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FeedbackRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FeedbackRequest) ProtoMessage() {}
|
|
|
|
func (x *FeedbackRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FeedbackRequest.ProtoReflect.Descriptor instead.
|
|
func (*FeedbackRequest) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FeedbackRequest) GetPostId() string {
|
|
if x != nil {
|
|
return x.PostId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FeedbackRequest) GetVote() int32 {
|
|
if x != nil {
|
|
return x.Vote
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FeedbackResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FeedbackResponse) Reset() {
|
|
*x = FeedbackResponse{}
|
|
mi := &file_redditreader_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FeedbackResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FeedbackResponse) ProtoMessage() {}
|
|
|
|
func (x *FeedbackResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FeedbackResponse.ProtoReflect.Descriptor instead.
|
|
func (*FeedbackResponse) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
type SubredditMsg struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
|
PollSort string `protobuf:"bytes,3,opt,name=poll_sort,json=pollSort,proto3" json:"poll_sort,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SubredditMsg) Reset() {
|
|
*x = SubredditMsg{}
|
|
mi := &file_redditreader_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SubredditMsg) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubredditMsg) ProtoMessage() {}
|
|
|
|
func (x *SubredditMsg) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SubredditMsg.ProtoReflect.Descriptor instead.
|
|
func (*SubredditMsg) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *SubredditMsg) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SubredditMsg) GetEnabled() bool {
|
|
if x != nil {
|
|
return x.Enabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SubredditMsg) GetPollSort() string {
|
|
if x != nil {
|
|
return x.PollSort
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SubredditList struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Subreddits []*SubredditMsg `protobuf:"bytes,1,rep,name=subreddits,proto3" json:"subreddits,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SubredditList) Reset() {
|
|
*x = SubredditList{}
|
|
mi := &file_redditreader_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SubredditList) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubredditList) ProtoMessage() {}
|
|
|
|
func (x *SubredditList) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SubredditList.ProtoReflect.Descriptor instead.
|
|
func (*SubredditList) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *SubredditList) GetSubreddits() []*SubredditMsg {
|
|
if x != nil {
|
|
return x.Subreddits
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AddSubredditRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
PollSort string `protobuf:"bytes,2,opt,name=poll_sort,json=pollSort,proto3" json:"poll_sort,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddSubredditRequest) Reset() {
|
|
*x = AddSubredditRequest{}
|
|
mi := &file_redditreader_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddSubredditRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddSubredditRequest) ProtoMessage() {}
|
|
|
|
func (x *AddSubredditRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddSubredditRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddSubredditRequest) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *AddSubredditRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddSubredditRequest) GetPollSort() string {
|
|
if x != nil {
|
|
return x.PollSort
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RemoveRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveRequest) Reset() {
|
|
*x = RemoveRequest{}
|
|
mi := &file_redditreader_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveRequest) ProtoMessage() {}
|
|
|
|
func (x *RemoveRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.
|
|
func (*RemoveRequest) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *RemoveRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FilterMsg struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Subreddit string `protobuf:"bytes,2,opt,name=subreddit,proto3" json:"subreddit,omitempty"`
|
|
Pattern string `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"`
|
|
IsRegex bool `protobuf:"varint,4,opt,name=is_regex,json=isRegex,proto3" json:"is_regex,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterMsg) Reset() {
|
|
*x = FilterMsg{}
|
|
mi := &file_redditreader_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterMsg) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterMsg) ProtoMessage() {}
|
|
|
|
func (x *FilterMsg) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterMsg.ProtoReflect.Descriptor instead.
|
|
func (*FilterMsg) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *FilterMsg) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FilterMsg) GetSubreddit() string {
|
|
if x != nil {
|
|
return x.Subreddit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FilterMsg) GetPattern() string {
|
|
if x != nil {
|
|
return x.Pattern
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FilterMsg) GetIsRegex() bool {
|
|
if x != nil {
|
|
return x.IsRegex
|
|
}
|
|
return false
|
|
}
|
|
|
|
type FilterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Subreddit string `protobuf:"bytes,1,opt,name=subreddit,proto3" json:"subreddit,omitempty"`
|
|
Filters []*FilterMsg `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterRequest) Reset() {
|
|
*x = FilterRequest{}
|
|
mi := &file_redditreader_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterRequest) ProtoMessage() {}
|
|
|
|
func (x *FilterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterRequest.ProtoReflect.Descriptor instead.
|
|
func (*FilterRequest) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *FilterRequest) GetSubreddit() string {
|
|
if x != nil {
|
|
return x.Subreddit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FilterRequest) GetFilters() []*FilterMsg {
|
|
if x != nil {
|
|
return x.Filters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FilterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Filters []*FilterMsg `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterResponse) Reset() {
|
|
*x = FilterResponse{}
|
|
mi := &file_redditreader_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterResponse) ProtoMessage() {}
|
|
|
|
func (x *FilterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterResponse.ProtoReflect.Descriptor instead.
|
|
func (*FilterResponse) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *FilterResponse) GetFilters() []*FilterMsg {
|
|
if x != nil {
|
|
return x.Filters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Empty struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Empty) Reset() {
|
|
*x = Empty{}
|
|
mi := &file_redditreader_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Empty) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Empty) ProtoMessage() {}
|
|
|
|
func (x *Empty) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
type StatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UptimeSeconds int64 `protobuf:"varint,1,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"`
|
|
LastPoll string `protobuf:"bytes,2,opt,name=last_poll,json=lastPoll,proto3" json:"last_poll,omitempty"`
|
|
TotalPosts int32 `protobuf:"varint,3,opt,name=total_posts,json=totalPosts,proto3" json:"total_posts,omitempty"`
|
|
UnreadPosts int32 `protobuf:"varint,4,opt,name=unread_posts,json=unreadPosts,proto3" json:"unread_posts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatusResponse) Reset() {
|
|
*x = StatusResponse{}
|
|
mi := &file_redditreader_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusResponse) ProtoMessage() {}
|
|
|
|
func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_redditreader_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_redditreader_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *StatusResponse) GetUptimeSeconds() int64 {
|
|
if x != nil {
|
|
return x.UptimeSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatusResponse) GetLastPoll() string {
|
|
if x != nil {
|
|
return x.LastPoll
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StatusResponse) GetTotalPosts() int32 {
|
|
if x != nil {
|
|
return x.TotalPosts
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatusResponse) GetUnreadPosts() int32 {
|
|
if x != nil {
|
|
return x.UnreadPosts
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_redditreader_proto protoreflect.FileDescriptor
|
|
|
|
const file_redditreader_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x12redditreader.proto\x12\fredditreader\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc7\x03\n" +
|
|
"\x04Post\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" +
|
|
"\tsubreddit\x18\x02 \x01(\tR\tsubreddit\x12\x14\n" +
|
|
"\x05title\x18\x03 \x01(\tR\x05title\x12\x16\n" +
|
|
"\x06author\x18\x04 \x01(\tR\x06author\x12\x10\n" +
|
|
"\x03url\x18\x05 \x01(\tR\x03url\x12\x1b\n" +
|
|
"\tself_text\x18\x06 \x01(\tR\bselfText\x12\x14\n" +
|
|
"\x05score\x18\a \x01(\x05R\x05score\x12;\n" +
|
|
"\vcreated_utc\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"createdUtc\x129\n" +
|
|
"\n" +
|
|
"fetched_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tfetchedAt\x12!\n" +
|
|
"\trelevance\x18\n" +
|
|
" \x01(\x01H\x00R\trelevance\x88\x01\x01\x12\x1d\n" +
|
|
"\asummary\x18\v \x01(\tH\x01R\asummary\x88\x01\x01\x12\x12\n" +
|
|
"\x04read\x18\f \x01(\bR\x04read\x12\x18\n" +
|
|
"\astarred\x18\r \x01(\bR\astarred\x12\x1c\n" +
|
|
"\tdismissed\x18\x0e \x01(\bR\tdismissedB\f\n" +
|
|
"\n" +
|
|
"_relevanceB\n" +
|
|
"\n" +
|
|
"\b_summary\"\x0f\n" +
|
|
"\rStreamRequest\"\xc5\x01\n" +
|
|
"\vListRequest\x12\x1c\n" +
|
|
"\tsubreddit\x18\x01 \x01(\tR\tsubreddit\x12\x1b\n" +
|
|
"\x06unread\x18\x02 \x01(\bH\x00R\x06unread\x88\x01\x01\x12\x1d\n" +
|
|
"\astarred\x18\x03 \x01(\bH\x01R\astarred\x88\x01\x01\x12!\n" +
|
|
"\tdismissed\x18\x04 \x01(\bH\x02R\tdismissed\x88\x01\x01\x12\x14\n" +
|
|
"\x05limit\x18\x05 \x01(\x05R\x05limitB\t\n" +
|
|
"\a_unreadB\n" +
|
|
"\n" +
|
|
"\b_starredB\f\n" +
|
|
"\n" +
|
|
"_dismissed\"8\n" +
|
|
"\fListResponse\x12(\n" +
|
|
"\x05posts\x18\x01 \x03(\v2\x12.redditreader.PostR\x05posts\"\x9d\x01\n" +
|
|
"\rUpdateRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\x04read\x18\x02 \x01(\bH\x00R\x04read\x88\x01\x01\x12\x1d\n" +
|
|
"\astarred\x18\x03 \x01(\bH\x01R\astarred\x88\x01\x01\x12!\n" +
|
|
"\tdismissed\x18\x04 \x01(\bH\x02R\tdismissed\x88\x01\x01B\a\n" +
|
|
"\x05_readB\n" +
|
|
"\n" +
|
|
"\b_starredB\f\n" +
|
|
"\n" +
|
|
"_dismissed\">\n" +
|
|
"\x0fFeedbackRequest\x12\x17\n" +
|
|
"\apost_id\x18\x01 \x01(\tR\x06postId\x12\x12\n" +
|
|
"\x04vote\x18\x02 \x01(\x05R\x04vote\"\x12\n" +
|
|
"\x10FeedbackResponse\"Y\n" +
|
|
"\fSubredditMsg\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
|
|
"\aenabled\x18\x02 \x01(\bR\aenabled\x12\x1b\n" +
|
|
"\tpoll_sort\x18\x03 \x01(\tR\bpollSort\"K\n" +
|
|
"\rSubredditList\x12:\n" +
|
|
"\n" +
|
|
"subreddits\x18\x01 \x03(\v2\x1a.redditreader.SubredditMsgR\n" +
|
|
"subreddits\"F\n" +
|
|
"\x13AddSubredditRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n" +
|
|
"\tpoll_sort\x18\x02 \x01(\tR\bpollSort\"#\n" +
|
|
"\rRemoveRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\"n\n" +
|
|
"\tFilterMsg\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1c\n" +
|
|
"\tsubreddit\x18\x02 \x01(\tR\tsubreddit\x12\x18\n" +
|
|
"\apattern\x18\x03 \x01(\tR\apattern\x12\x19\n" +
|
|
"\bis_regex\x18\x04 \x01(\bR\aisRegex\"`\n" +
|
|
"\rFilterRequest\x12\x1c\n" +
|
|
"\tsubreddit\x18\x01 \x01(\tR\tsubreddit\x121\n" +
|
|
"\afilters\x18\x02 \x03(\v2\x17.redditreader.FilterMsgR\afilters\"C\n" +
|
|
"\x0eFilterResponse\x121\n" +
|
|
"\afilters\x18\x01 \x03(\v2\x17.redditreader.FilterMsgR\afilters\"\a\n" +
|
|
"\x05Empty\"\x98\x01\n" +
|
|
"\x0eStatusResponse\x12%\n" +
|
|
"\x0euptime_seconds\x18\x01 \x01(\x03R\ruptimeSeconds\x12\x1b\n" +
|
|
"\tlast_poll\x18\x02 \x01(\tR\blastPoll\x12\x1f\n" +
|
|
"\vtotal_posts\x18\x03 \x01(\x05R\n" +
|
|
"totalPosts\x12!\n" +
|
|
"\funread_posts\x18\x04 \x01(\x05R\vunreadPosts2\x85\x05\n" +
|
|
"\fRedditReader\x12@\n" +
|
|
"\vStreamPosts\x12\x1b.redditreader.StreamRequest\x1a\x12.redditreader.Post0\x01\x12B\n" +
|
|
"\tListPosts\x12\x19.redditreader.ListRequest\x1a\x1a.redditreader.ListResponse\x12=\n" +
|
|
"\n" +
|
|
"UpdatePost\x12\x1b.redditreader.UpdateRequest\x1a\x12.redditreader.Post\x12O\n" +
|
|
"\x0eSubmitFeedback\x12\x1d.redditreader.FeedbackRequest\x1a\x1e.redditreader.FeedbackResponse\x12B\n" +
|
|
"\x0eListSubreddits\x12\x13.redditreader.Empty\x1a\x1b.redditreader.SubredditList\x12M\n" +
|
|
"\fAddSubreddit\x12!.redditreader.AddSubredditRequest\x1a\x1a.redditreader.SubredditMsg\x12C\n" +
|
|
"\x0fRemoveSubreddit\x12\x1b.redditreader.RemoveRequest\x1a\x13.redditreader.Empty\x12J\n" +
|
|
"\rUpdateFilters\x12\x1b.redditreader.FilterRequest\x1a\x1c.redditreader.FilterResponse\x12;\n" +
|
|
"\x06Status\x12\x13.redditreader.Empty\x1a\x1c.redditreader.StatusResponseB8Z6somegit.dev/vikingowl/reddit-reader/proto/redditreaderb\x06proto3"
|
|
|
|
var (
|
|
file_redditreader_proto_rawDescOnce sync.Once
|
|
file_redditreader_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_redditreader_proto_rawDescGZIP() []byte {
|
|
file_redditreader_proto_rawDescOnce.Do(func() {
|
|
file_redditreader_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_redditreader_proto_rawDesc), len(file_redditreader_proto_rawDesc)))
|
|
})
|
|
return file_redditreader_proto_rawDescData
|
|
}
|
|
|
|
var file_redditreader_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_redditreader_proto_goTypes = []any{
|
|
(*Post)(nil), // 0: redditreader.Post
|
|
(*StreamRequest)(nil), // 1: redditreader.StreamRequest
|
|
(*ListRequest)(nil), // 2: redditreader.ListRequest
|
|
(*ListResponse)(nil), // 3: redditreader.ListResponse
|
|
(*UpdateRequest)(nil), // 4: redditreader.UpdateRequest
|
|
(*FeedbackRequest)(nil), // 5: redditreader.FeedbackRequest
|
|
(*FeedbackResponse)(nil), // 6: redditreader.FeedbackResponse
|
|
(*SubredditMsg)(nil), // 7: redditreader.SubredditMsg
|
|
(*SubredditList)(nil), // 8: redditreader.SubredditList
|
|
(*AddSubredditRequest)(nil), // 9: redditreader.AddSubredditRequest
|
|
(*RemoveRequest)(nil), // 10: redditreader.RemoveRequest
|
|
(*FilterMsg)(nil), // 11: redditreader.FilterMsg
|
|
(*FilterRequest)(nil), // 12: redditreader.FilterRequest
|
|
(*FilterResponse)(nil), // 13: redditreader.FilterResponse
|
|
(*Empty)(nil), // 14: redditreader.Empty
|
|
(*StatusResponse)(nil), // 15: redditreader.StatusResponse
|
|
(*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp
|
|
}
|
|
var file_redditreader_proto_depIdxs = []int32{
|
|
16, // 0: redditreader.Post.created_utc:type_name -> google.protobuf.Timestamp
|
|
16, // 1: redditreader.Post.fetched_at:type_name -> google.protobuf.Timestamp
|
|
0, // 2: redditreader.ListResponse.posts:type_name -> redditreader.Post
|
|
7, // 3: redditreader.SubredditList.subreddits:type_name -> redditreader.SubredditMsg
|
|
11, // 4: redditreader.FilterRequest.filters:type_name -> redditreader.FilterMsg
|
|
11, // 5: redditreader.FilterResponse.filters:type_name -> redditreader.FilterMsg
|
|
1, // 6: redditreader.RedditReader.StreamPosts:input_type -> redditreader.StreamRequest
|
|
2, // 7: redditreader.RedditReader.ListPosts:input_type -> redditreader.ListRequest
|
|
4, // 8: redditreader.RedditReader.UpdatePost:input_type -> redditreader.UpdateRequest
|
|
5, // 9: redditreader.RedditReader.SubmitFeedback:input_type -> redditreader.FeedbackRequest
|
|
14, // 10: redditreader.RedditReader.ListSubreddits:input_type -> redditreader.Empty
|
|
9, // 11: redditreader.RedditReader.AddSubreddit:input_type -> redditreader.AddSubredditRequest
|
|
10, // 12: redditreader.RedditReader.RemoveSubreddit:input_type -> redditreader.RemoveRequest
|
|
12, // 13: redditreader.RedditReader.UpdateFilters:input_type -> redditreader.FilterRequest
|
|
14, // 14: redditreader.RedditReader.Status:input_type -> redditreader.Empty
|
|
0, // 15: redditreader.RedditReader.StreamPosts:output_type -> redditreader.Post
|
|
3, // 16: redditreader.RedditReader.ListPosts:output_type -> redditreader.ListResponse
|
|
0, // 17: redditreader.RedditReader.UpdatePost:output_type -> redditreader.Post
|
|
6, // 18: redditreader.RedditReader.SubmitFeedback:output_type -> redditreader.FeedbackResponse
|
|
8, // 19: redditreader.RedditReader.ListSubreddits:output_type -> redditreader.SubredditList
|
|
7, // 20: redditreader.RedditReader.AddSubreddit:output_type -> redditreader.SubredditMsg
|
|
14, // 21: redditreader.RedditReader.RemoveSubreddit:output_type -> redditreader.Empty
|
|
13, // 22: redditreader.RedditReader.UpdateFilters:output_type -> redditreader.FilterResponse
|
|
15, // 23: redditreader.RedditReader.Status:output_type -> redditreader.StatusResponse
|
|
15, // [15:24] is the sub-list for method output_type
|
|
6, // [6:15] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_redditreader_proto_init() }
|
|
func file_redditreader_proto_init() {
|
|
if File_redditreader_proto != nil {
|
|
return
|
|
}
|
|
file_redditreader_proto_msgTypes[0].OneofWrappers = []any{}
|
|
file_redditreader_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_redditreader_proto_msgTypes[4].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_redditreader_proto_rawDesc), len(file_redditreader_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_redditreader_proto_goTypes,
|
|
DependencyIndexes: file_redditreader_proto_depIdxs,
|
|
MessageInfos: file_redditreader_proto_msgTypes,
|
|
}.Build()
|
|
File_redditreader_proto = out.File
|
|
file_redditreader_proto_goTypes = nil
|
|
file_redditreader_proto_depIdxs = nil
|
|
}
|