From b64e0a9c8b8edd7f110f8c5ce211c2a88ba7fe4f Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 1 Jul 2024 17:39:28 -0400 Subject: fix buf Signed-off-by: Xe Iaso --- buf/external/jsonfeed/jsonfeed.pb.go | 751 +++++++++++++++ buf/external/jsonfeed/jsonfeed.proto | 160 +++ buf/future-sight/future-sight.pb.go | 145 +++ buf/future-sight/future-sight.proto | 5 + buf/mi/mi.pb.go | 1009 +++++++++++++++++++ buf/mi/mi.proto | 94 ++ buf/mi/miconnect/mi.connect.go | 412 ++++++++ buf/mimi/announce/announce.pb.go | 80 ++ buf/mimi/announce/announce.proto | 10 + .../announce/announceconnect/announce.connect.go | 114 +++ buf/mimi/statuspage/statuspage.pb.go | 1019 ++++++++++++++++++++ buf/mimi/statuspage/statuspage.proto | 80 ++ .../statuspageconnect/statuspage.connect.go | 113 +++ buf/sanguisuga/sanguisuga.pb.go | 631 ++++++++++++ buf/sanguisuga/sanguisuga.proto | 48 + .../sanguisugaconnect/sanguisuga.connect.go | 361 +++++++ buf/x/future-sight/future-sight.pb.go | 145 --- buf/x/future-sight/future-sight.proto | 5 - 18 files changed, 5032 insertions(+), 150 deletions(-) create mode 100644 buf/external/jsonfeed/jsonfeed.pb.go create mode 100644 buf/external/jsonfeed/jsonfeed.proto create mode 100644 buf/future-sight/future-sight.pb.go create mode 100644 buf/future-sight/future-sight.proto create mode 100644 buf/mi/mi.pb.go create mode 100644 buf/mi/mi.proto create mode 100644 buf/mi/miconnect/mi.connect.go create mode 100644 buf/mimi/announce/announce.pb.go create mode 100644 buf/mimi/announce/announce.proto create mode 100644 buf/mimi/announce/announceconnect/announce.connect.go create mode 100644 buf/mimi/statuspage/statuspage.pb.go create mode 100644 buf/mimi/statuspage/statuspage.proto create mode 100644 buf/mimi/statuspage/statuspageconnect/statuspage.connect.go create mode 100644 buf/sanguisuga/sanguisuga.pb.go create mode 100644 buf/sanguisuga/sanguisuga.proto create mode 100644 buf/sanguisuga/sanguisugaconnect/sanguisuga.connect.go delete mode 100644 buf/x/future-sight/future-sight.pb.go delete mode 100644 buf/x/future-sight/future-sight.proto (limited to 'buf') diff --git a/buf/external/jsonfeed/jsonfeed.pb.go b/buf/external/jsonfeed/jsonfeed.pb.go new file mode 100644 index 0000000..0703abd --- /dev/null +++ b/buf/external/jsonfeed/jsonfeed.pb.go @@ -0,0 +1,751 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: external/jsonfeed/jsonfeed.proto + +package jsonfeed + +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" +) + +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) +) + +// Feed is the root of a Proto Feed document. A feed must at least contain a +// title and items. +type Feed struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // (required, string) is the name of the feed, which will often correspond to + // the name of the website (blog, for instance), though not necessarily. + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // (optional but strongly recommended, string) is the URL of the resource that + // the feed describes. This resource may or may not actually be a “home” page, + // but it should be an HTML page. If a feed is published on the public web, + // this should be considered as required. But it may not make sense in the + // case of a file created on a desktop computer, when that file is not shared + // or is shared only privately. + HomePageUrl string `protobuf:"bytes,3,opt,name=home_page_url,json=homePageUrl,proto3" json:"home_page_url,omitempty"` + // (optional but strongly recommended, string) is the URL of the feed, and + // serves as the unique identifier for the feed. As with home_page_url, this + // should be considered required for feeds on the public web. + FeedUrl string `protobuf:"bytes,4,opt,name=feed_url,json=feedUrl,proto3" json:"feed_url,omitempty"` + // (optional, string) provides more detail, beyond the title, on what the feed + // is about. A feed reader may display this text. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // (optional, string) is a description of the purpose of the feed. This is for + // the use of people looking at the raw Protobuf, and should be ignored by + // feed readers. + UserComment string `protobuf:"bytes,6,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"` + // (optional, string) is the URL of an image for the feed suitable to be used + // in a source list. It should be square and relatively large — such as 512 x + // 512 — so that it can be scaled down and so that it can look good on retina + // displays. It should use transparency where appropriate, since it may be + // rendered on a non-white background. + Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"` + // (optional, string) is the URL of an image for the feed suitable to be used + // in a source list. It should be square and relatively small, but not smaller + // than 64 x 64. + Favicon string `protobuf:"bytes,8,opt,name=favicon,proto3" json:"favicon,omitempty"` + // (optional, array of objects) specifies the feed authors. + Authors []*Author `protobuf:"bytes,9,rep,name=authors,proto3" json:"authors,omitempty"` + // (optional, string) is the primary language for the feed. + Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"` + // (optional, boolean) says whether or not the feed is finished — that is, + // whether or not it will ever update again. A feed for a temporary event, + // such as an instance of the Olympics, could expire. If the value is true, + // then it’s expired. Any other value, or the absence of expired, means the + // feed may continue to update. + Expired bool `protobuf:"varint,11,opt,name=expired,proto3" json:"expired,omitempty"` + // (required, array of objects) contains the items in the feed. This is the + // most important element of the feed after the version field. Each item is a + // story, blog post, article, photograph, video, or other thing. For example, + // if a feed contains a long article, a podcast episode, and a photo, those + // three items would be included in items. + Items []*Item `protobuf:"bytes,12,rep,name=items,proto3" json:"items,omitempty"` +} + +func (x *Feed) Reset() { + *x = Feed{} + if protoimpl.UnsafeEnabled { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Feed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Feed) ProtoMessage() {} + +func (x *Feed) ProtoReflect() protoreflect.Message { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Feed.ProtoReflect.Descriptor instead. +func (*Feed) Descriptor() ([]byte, []int) { + return file_external_jsonfeed_jsonfeed_proto_rawDescGZIP(), []int{0} +} + +func (x *Feed) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Feed) GetHomePageUrl() string { + if x != nil { + return x.HomePageUrl + } + return "" +} + +func (x *Feed) GetFeedUrl() string { + if x != nil { + return x.FeedUrl + } + return "" +} + +func (x *Feed) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Feed) GetUserComment() string { + if x != nil { + return x.UserComment + } + return "" +} + +func (x *Feed) GetIcon() string { + if x != nil { + return x.Icon + } + return "" +} + +func (x *Feed) GetFavicon() string { + if x != nil { + return x.Favicon + } + return "" +} + +func (x *Feed) GetAuthors() []*Author { + if x != nil { + return x.Authors + } + return nil +} + +func (x *Feed) GetLanguage() string { + if x != nil { + return x.Language + } + return "" +} + +func (x *Feed) GetExpired() bool { + if x != nil { + return x.Expired + } + return false +} + +func (x *Feed) GetItems() []*Item { + if x != nil { + return x.Items + } + return nil +} + +// Author is an object representing the author of the feed or item. +type Author struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // (optional, string) is the author’s name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // (optional, string) is the URL of a site owned by the author. It could be a + // blog, micro-blog, Twitter account, and so on. Ideally the linked-to page + // provides a way to contact the author, but that’s not required. The URL + // could be a mailto: link, though we suspect that will be rare. + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + // (optional, string) is the URL for an image for the author. As with icon, it + // should be square and relatively large — such as 512 x 512 pixels — and + // should use transparency where appropriate, since it may be rendered on a + // non-white background. + Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` +} + +func (x *Author) Reset() { + *x = Author{} + if protoimpl.UnsafeEnabled { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Author) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Author) ProtoMessage() {} + +func (x *Author) ProtoReflect() protoreflect.Message { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Author.ProtoReflect.Descriptor instead. +func (*Author) Descriptor() ([]byte, []int) { + return file_external_jsonfeed_jsonfeed_proto_rawDescGZIP(), []int{1} +} + +func (x *Author) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Author) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Author) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +// Item is an object representing a single story, blog post, article, +// photograph, video, or other thing within a feed. +type Item struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // (required, string) is unique for that item for that feed over time. If an + // item is ever updated, the id should be unchanged. New items should never + // use a previously-used id. If an id is presented as a number or other type, + // a JSON Feed reader must coerce it to a string. Ideally, the id is the full + // URL of the resource described by the item, since URLs make great unique + // identifiers. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // (optional, string) is the URL of the resource described by the item. It’s + // the permalink. This may be the same as the id — but should be present + // regardless. + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + // (optional, string) is the URL of a page elsewhere. This is especially + // useful for linkblogs. If url links to where you’re talking about a thing, + // then external_url links to the thing you’re talking about. + ExternalUrl string `protobuf:"bytes,3,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"` + // (optional, string) is plain text. Microblog items in particular may omit + // titles. + Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` + // (optional, string) is the body of the item. It can be plain text, HTML, or + // a snippet of Markdown. (It should not be the entire Markdown document; just + // a snippet.) This is complete enough that it can be displayed alone in a + // reader. + ContentText string `protobuf:"bytes,5,opt,name=content_text,json=contentText,proto3" json:"content_text,omitempty"` + // (optional, string) is the body of the item. It can be plain text, HTML, or + // a snippet of Markdown. (It should not be the entire Markdown document; just + // a snippet.) This is complete enough that it can be displayed alone in a + // reader. + ContentHtml string `protobuf:"bytes,6,opt,name=content_html,json=contentHtml,proto3" json:"content_html,omitempty"` + // (optional, string) is a plain text sentence or two describing the item. + // This might be presented in a timeline, for instance, where a detail view + // would display all of content_html or content_text. + Summary string `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"` + // (optional, string) is the URL of the main image for the item. This image + // may also appear in the content_html — if so, it’s a hint to the feed reader + // that this is the main, featured image. Even if it’s not, it will appear in + // the detail view. Images should be square, with a 4:3 aspect ratio. (We will + // be flexible on this in the future.) + Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` + // (optional, string) is the URL of an image to use as a banner. Some blogging + // systems (such as Medium) display a different banner image in the list view + // from the detail view. In those systems, this image should be used in the + // list view, and image in the detail view. + BannerImage string `protobuf:"bytes,9,opt,name=banner_image,json=bannerImage,proto3" json:"banner_image,omitempty"` + // (optional, string) specifies the date in RFC 3339 format. + DatePublished *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=date_published,json=datePublished,proto3" json:"date_published,omitempty"` + // (optional, string) specifies the modification date in RFC 3339 format. + DateModified *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=date_modified,json=dateModified,proto3" json:"date_modified,omitempty"` + // (optional, array of objects) has the same structure as the top-level + // authors. If not specified in an item, then the top-level authors, if + // present, are the authors of the item. + Authors []*Author `protobuf:"bytes,12,rep,name=authors,proto3" json:"authors,omitempty"` + // (optional, array of strings) can have any plain text values you want. Tags + // tend to be just one word, but they may be anything. Note: they are not the + // equivalent of Twitter hashtags. Some blogging systems and other feed + // formats call these categories. + Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"` + // (optional, string) is the language for this item, using the same format as + // the top-level language field. The value can be different than the primary + // language for the feed when a specific item is written in a different + // language than other items in the feed. + Language string `protobuf:"bytes,14,opt,name=language,proto3" json:"language,omitempty"` + // (optional, array of objects) specifies the attachments associated with the + // item. Attachments are files that are associated with an item. The value of + // the attachments field is an array of objects, each of which has a url + // field, and other fields as specified in the attachment object definition. + Attachments []*Attachment `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"` +} + +func (x *Item) Reset() { + *x = Item{} + if protoimpl.UnsafeEnabled { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Item) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Item) ProtoMessage() {} + +func (x *Item) ProtoReflect() protoreflect.Message { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Item.ProtoReflect.Descriptor instead. +func (*Item) Descriptor() ([]byte, []int) { + return file_external_jsonfeed_jsonfeed_proto_rawDescGZIP(), []int{2} +} + +func (x *Item) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Item) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Item) GetExternalUrl() string { + if x != nil { + return x.ExternalUrl + } + return "" +} + +func (x *Item) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Item) GetContentText() string { + if x != nil { + return x.ContentText + } + return "" +} + +func (x *Item) GetContentHtml() string { + if x != nil { + return x.ContentHtml + } + return "" +} + +func (x *Item) GetSummary() string { + if x != nil { + return x.Summary + } + return "" +} + +func (x *Item) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *Item) GetBannerImage() string { + if x != nil { + return x.BannerImage + } + return "" +} + +func (x *Item) GetDatePublished() *timestamppb.Timestamp { + if x != nil { + return x.DatePublished + } + return nil +} + +func (x *Item) GetDateModified() *timestamppb.Timestamp { + if x != nil { + return x.DateModified + } + return nil +} + +func (x *Item) GetAuthors() []*Author { + if x != nil { + return x.Authors + } + return nil +} + +func (x *Item) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *Item) GetLanguage() string { + if x != nil { + return x.Language + } + return "" +} + +func (x *Item) GetAttachments() []*Attachment { + if x != nil { + return x.Attachments + } + return nil +} + +// Attachment is an object representing a file associated with an item. +type Attachment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // (required, string) specifies the location of the attachment. + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + // (required, string) specifies the type of the attachment, such as + // “audio/mpeg.” + MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + // (optional, string) specifies the title of the attachment. + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + // (optional, number) specifies how large the file is. + SizeInBytes int32 `protobuf:"varint,4,opt,name=size_in_bytes,json=sizeInBytes,proto3" json:"size_in_bytes,omitempty"` + // (optional, number) specifies how long it takes to listen to or watch, when + // played at normal speed. + DurationInSeconds int32 `protobuf:"varint,5,opt,name=duration_in_seconds,json=durationInSeconds,proto3" json:"duration_in_seconds,omitempty"` +} + +func (x *Attachment) Reset() { + *x = Attachment{} + if protoimpl.UnsafeEnabled { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Attachment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Attachment) ProtoMessage() {} + +func (x *Attachment) ProtoReflect() protoreflect.Message { + mi := &file_external_jsonfeed_jsonfeed_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Attachment.ProtoReflect.Descriptor instead. +func (*Attachment) Descriptor() ([]byte, []int) { + return file_external_jsonfeed_jsonfeed_proto_rawDescGZIP(), []int{3} +} + +func (x *Attachment) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Attachment) GetMimeType() string { + if x != nil { + return x.MimeType + } + return "" +} + +func (x *Attachment) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Attachment) GetSizeInBytes() int32 { + if x != nil { + return x.SizeInBytes + } + return 0 +} + +func (x *Attachment) GetDurationInSeconds() int32 { + if x != nil { + return x.DurationInSeconds + } + return 0 +} + +var File_external_jsonfeed_jsonfeed_proto protoreflect.FileDescriptor + +var file_external_jsonfeed_jsonfeed_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x66, + 0x65, 0x65, 0x64, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x65, 0x65, 0x64, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x02, + 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, + 0x68, 0x6f, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, + 0x12, 0x19, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, + 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x2a, + 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, + 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, + 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, + 0x12, 0x24, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0e, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, + 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x46, 0x0a, 0x06, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x22, 0x92, + 0x04, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x65, + 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x48, 0x74, 0x6d, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, + 0x61, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x61, 0x6e, 0x6e, + 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0d, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x3f, + 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, + 0x2a, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, + 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x74, 0x74, 0x61, + 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x69, 0x7a, 0x65, 0x5f, + 0x69, 0x6e, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, + 0x73, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 0x28, 0x5a, 0x26, 0x77, + 0x69, 0x74, 0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x2f, 0x78, 0x2f, + 0x62, 0x75, 0x66, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6a, 0x73, 0x6f, + 0x6e, 0x66, 0x65, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_external_jsonfeed_jsonfeed_proto_rawDescOnce sync.Once + file_external_jsonfeed_jsonfeed_proto_rawDescData = file_external_jsonfeed_jsonfeed_proto_rawDesc +) + +func file_external_jsonfeed_jsonfeed_proto_rawDescGZIP() []byte { + file_external_jsonfeed_jsonfeed_proto_rawDescOnce.Do(func() { + file_external_jsonfeed_jsonfeed_proto_rawDescData = protoimpl.X.CompressGZIP(file_external_jsonfeed_jsonfeed_proto_rawDescData) + }) + return file_external_jsonfeed_jsonfeed_proto_rawDescData +} + +var file_external_jsonfeed_jsonfeed_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_external_jsonfeed_jsonfeed_proto_goTypes = []any{ + (*Feed)(nil), // 0: jsonfeed.Feed + (*Author)(nil), // 1: jsonfeed.Author + (*Item)(nil), // 2: jsonfeed.Item + (*Attachment)(nil), // 3: jsonfeed.Attachment + (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp +} +var file_external_jsonfeed_jsonfeed_proto_depIdxs = []int32{ + 1, // 0: jsonfeed.Feed.authors:type_name -> jsonfeed.Author + 2, // 1: jsonfeed.Feed.items:type_name -> jsonfeed.Item + 4, // 2: jsonfeed.Item.date_published:type_name -> google.protobuf.Timestamp + 4, // 3: jsonfeed.Item.date_modified:type_name -> google.protobuf.Timestamp + 1, // 4: jsonfeed.Item.authors:type_name -> jsonfeed.Author + 3, // 5: jsonfeed.Item.attachments:type_name -> jsonfeed.Attachment + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] 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_external_jsonfeed_jsonfeed_proto_init() } +func file_external_jsonfeed_jsonfeed_proto_init() { + if File_external_jsonfeed_jsonfeed_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_external_jsonfeed_jsonfeed_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*Feed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_external_jsonfeed_jsonfeed_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*Author); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_external_jsonfeed_jsonfeed_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*Item); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_external_jsonfeed_jsonfeed_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*Attachment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_external_jsonfeed_jsonfeed_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_external_jsonfeed_jsonfeed_proto_goTypes, + DependencyIndexes: file_external_jsonfeed_jsonfeed_proto_depIdxs, + MessageInfos: file_external_jsonfeed_jsonfeed_proto_msgTypes, + }.Build() + File_external_jsonfeed_jsonfeed_proto = out.File + file_external_jsonfeed_jsonfeed_proto_rawDesc = nil + file_external_jsonfeed_jsonfeed_proto_goTypes = nil + file_external_jsonfeed_jsonfeed_proto_depIdxs = nil +} diff --git a/buf/external/jsonfeed/jsonfeed.proto b/buf/external/jsonfeed/jsonfeed.proto new file mode 100644 index 0000000..fbd51b6 --- /dev/null +++ b/buf/external/jsonfeed/jsonfeed.proto @@ -0,0 +1,160 @@ +syntax = "proto3"; +package jsonfeed; +option go_package = "within.website/x/buf/external/jsonfeed"; + +import "google/protobuf/timestamp.proto"; + +// Feed is the root of a Proto Feed document. A feed must at least contain a +// title and items. +message Feed { + // (required, string) is the name of the feed, which will often correspond to + // the name of the website (blog, for instance), though not necessarily. + string title = 2; + // (optional but strongly recommended, string) is the URL of the resource that + // the feed describes. This resource may or may not actually be a “home” page, + // but it should be an HTML page. If a feed is published on the public web, + // this should be considered as required. But it may not make sense in the + // case of a file created on a desktop computer, when that file is not shared + // or is shared only privately. + string home_page_url = 3; + // (optional but strongly recommended, string) is the URL of the feed, and + // serves as the unique identifier for the feed. As with home_page_url, this + // should be considered required for feeds on the public web. + string feed_url = 4; + // (optional, string) provides more detail, beyond the title, on what the feed + // is about. A feed reader may display this text. + string description = 5; + // (optional, string) is a description of the purpose of the feed. This is for + // the use of people looking at the raw Protobuf, and should be ignored by + // feed readers. + string user_comment = 6; + // (optional, string) is the URL of an image for the feed suitable to be used + // in a source list. It should be square and relatively large — such as 512 x + // 512 — so that it can be scaled down and so that it can look good on retina + // displays. It should use transparency where appropriate, since it may be + // rendered on a non-white background. + string icon = 7; + // (optional, string) is the URL of an image for the feed suitable to be used + // in a source list. It should be square and relatively small, but not smaller + // than 64 x 64. + string favicon = 8; + // (optional, array of objects) specifies the feed authors. + repeated Author authors = 9; + // (optional, string) is the primary language for the feed. + string language = 10; + // (optional, boolean) says whether or not the feed is finished — that is, + // whether or not it will ever update again. A feed for a temporary event, + // such as an instance of the Olympics, could expire. If the value is true, + // then it’s expired. Any other value, or the absence of expired, means the + // feed may continue to update. + bool expired = 11; + // (required, array of objects) contains the items in the feed. This is the + // most important element of the feed after the version field. Each item is a + // story, blog post, article, photograph, video, or other thing. For example, + // if a feed contains a long article, a podcast episode, and a photo, those + // three items would be included in items. + repeated Item items = 12; +} + +// Author is an object representing the author of the feed or item. +message Author { + // (optional, string) is the author’s name. + string name = 1; + // (optional, string) is the URL of a site owned by the author. It could be a + // blog, micro-blog, Twitter account, and so on. Ideally the linked-to page + // provides a way to contact the author, but that’s not required. The URL + // could be a mailto: link, though we suspect that will be rare. + string url = 2; + // (optional, string) is the URL for an image for the author. As with icon, it + // should be square and relatively large — such as 512 x 512 pixels — and + // should use transparency where appropriate, since it may be rendered on a + // non-white background. + string avatar = 3; +} + +// Item is an object representing a single story, blog post, article, +// photograph, video, or other thing within a feed. +message Item { + // (required, string) is unique for that item for that feed over time. If an + // item is ever updated, the id should be unchanged. New items should never + // use a previously-used id. If an id is presented as a number or other type, + // a JSON Feed reader must coerce it to a string. Ideally, the id is the full + // URL of the resource described by the item, since URLs make great unique + // identifiers. + string id = 1; + // (optional, string) is the URL of the resource described by the item. It’s + // the permalink. This may be the same as the id — but should be present + // regardless. + string url = 2; + // (optional, string) is the URL of a page elsewhere. This is especially + // useful for linkblogs. If url links to where you’re talking about a thing, + // then external_url links to the thing you’re talking about. + string external_url = 3; + // (optional, string) is plain text. Microblog items in particular may omit + // titles. + string title = 4; + // (optional, string) is the body of the item. It can be plain text, HTML, or + // a snippet of Markdown. (It should not be the entire Markdown document; just + // a snippet.) This is complete enough that it can be displayed alone in a + // reader. + string content_text = 5; + // (optional, string) is the body of the item. It can be plain text, HTML, or + // a snippet of Markdown. (It should not be the entire Markdown document; just + // a snippet.) This is complete enough that it can be displayed alone in a + // reader. + string content_html = 6; + // (optional, string) is a plain text sentence or two describing the item. + // This might be presented in a timeline, for instance, where a detail view + // would display all of content_html or content_text. + string summary = 7; + // (optional, string) is the URL of the main image for the item. This image + // may also appear in the content_html — if so, it’s a hint to the feed reader + // that this is the main, featured image. Even if it’s not, it will appear in + // the detail view. Images should be square, with a 4:3 aspect ratio. (We will + // be flexible on this in the future.) + string image = 8; + // (optional, string) is the URL of an image to use as a banner. Some blogging + // systems (such as Medium) display a different banner image in the list view + // from the detail view. In those systems, this image should be used in the + // list view, and image in the detail view. + string banner_image = 9; + // (optional, string) specifies the date in RFC 3339 format. + google.protobuf.Timestamp date_published = 10; + // (optional, string) specifies the modification date in RFC 3339 format. + google.protobuf.Timestamp date_modified = 11; + // (optional, array of objects) has the same structure as the top-level + // authors. If not specified in an item, then the top-level authors, if + // present, are the authors of the item. + repeated Author authors = 12; + // (optional, array of strings) can have any plain text values you want. Tags + // tend to be just one word, but they may be anything. Note: they are not the + // equivalent of Twitter hashtags. Some blogging systems and other feed + // formats call these categories. + repeated string tags = 13; + // (optional, string) is the language for this item, using the same format as + // the top-level language field. The value can be different than the primary + // language for the feed when a specific item is written in a different + // language than other items in the feed. + string language = 14; + // (optional, array of objects) specifies the attachments associated with the + // item. Attachments are files that are associated with an item. The value of + // the attachments field is an array of objects, each of which has a url + // field, and other fields as specified in the attachment object definition. + repeated Attachment attachments = 15; +} + +// Attachment is an object representing a file associated with an item. +message Attachment { + // (required, string) specifies the location of the attachment. + string url = 1; + // (required, string) specifies the type of the attachment, such as + // “audio/mpeg.” + string mime_type = 2; + // (optional, string) specifies the title of the attachment. + string title = 3; + // (optional, number) specifies how large the file is. + int32 size_in_bytes = 4; + // (optional, number) specifies how long it takes to listen to or watch, when + // played at normal speed. + int32 duration_in_seconds = 5; +} \ No newline at end of file diff --git a/buf/future-sight/future-sight.pb.go b/buf/future-sight/future-sight.pb.go new file mode 100644 index 0000000..4c2b93f --- /dev/null +++ b/buf/future-sight/future-sight.pb.go @@ -0,0 +1,145 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: future-sight/future-sight.proto + +package future_sight + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 NewVersion struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` +} + +func (x *NewVersion) Reset() { + *x = NewVersion{} + if protoimpl.UnsafeEnabled { + mi := &file_future_sight_future_sight_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NewVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewVersion) ProtoMessage() {} + +func (x *NewVersion) ProtoReflect() protoreflect.Message { + mi := &file_future_sight_future_sight_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NewVersion.ProtoReflect.Descriptor instead. +func (*NewVersion) Descriptor() ([]byte, []int) { + return file_future_sight_future_sight_proto_rawDescGZIP(), []int{0} +} + +func (x *NewVersion) GetSlug() string { + if x != nil { + return x.Slug + } + return "" +} + +var File_future_sight_future_sight_proto protoreflect.FileDescriptor + +var file_future_sight_future_sight_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x66, 0x75, 0x74, 0x75, 0x72, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x68, 0x74, 0x2f, 0x66, + 0x75, 0x74, 0x75, 0x72, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x68, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x1d, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, + 0x65, 0x2e, 0x78, 0x2e, 0x66, 0x75, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x68, 0x74, + 0x22, 0x20, 0x0a, 0x0a, 0x4e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x6c, + 0x75, 0x67, 0x42, 0x23, 0x5a, 0x21, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, + 0x73, 0x69, 0x74, 0x65, 0x2f, 0x78, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x75, 0x74, 0x75, 0x72, + 0x65, 0x2d, 0x73, 0x69, 0x67, 0x68, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_future_sight_future_sight_proto_rawDescOnce sync.Once + file_future_sight_future_sight_proto_rawDescData = file_future_sight_future_sight_proto_rawDesc +) + +func file_future_sight_future_sight_proto_rawDescGZIP() []byte { + file_future_sight_future_sight_proto_rawDescOnce.Do(func() { + file_future_sight_future_sight_proto_rawDescData = protoimpl.X.CompressGZIP(file_future_sight_future_sight_proto_rawDescData) + }) + return file_future_sight_future_sight_proto_rawDescData +} + +var file_future_sight_future_sight_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_future_sight_future_sight_proto_goTypes = []any{ + (*NewVersion)(nil), // 0: within.website.x.future_sight.NewVersion +} +var file_future_sight_future_sight_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_future_sight_future_sight_proto_init() } +func file_future_sight_future_sight_proto_init() { + if File_future_sight_future_sight_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_future_sight_future_sight_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*NewVersion); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_future_sight_future_sight_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_future_sight_future_sight_proto_goTypes, + DependencyIndexes: file_future_sight_future_sight_proto_depIdxs, + MessageInfos: file_future_sight_future_sight_proto_msgTypes, + }.Build() + File_future_sight_future_sight_proto = out.File + file_future_sight_future_sight_proto_rawDesc = nil + file_future_sight_future_sight_proto_goTypes = nil + file_future_sight_future_sight_proto_depIdxs = nil +} diff --git a/buf/future-sight/future-sight.proto b/buf/future-sight/future-sight.proto new file mode 100644 index 0000000..a87f975 --- /dev/null +++ b/buf/future-sight/future-sight.proto @@ -0,0 +1,5 @@ +syntax = "proto3"; +package within.website.x.future_sight; +option go_package = "within.website/x/buf/future-sight"; + +message NewVersion { string slug = 1; } \ No newline at end of file diff --git a/buf/mi/mi.pb.go b/buf/mi/mi.pb.go new file mode 100644 index 0000000..1e67373 --- /dev/null +++ b/buf/mi/mi.pb.go @@ -0,0 +1,1009 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: mi/mi.proto + +package mi + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +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 MembersResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` // required +} + +func (x *MembersResp) Reset() { + *x = MembersResp{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MembersResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MembersResp) ProtoMessage() {} + +func (x *MembersResp) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MembersResp.ProtoReflect.Descriptor instead. +func (*MembersResp) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{0} +} + +func (x *MembersResp) GetMembers() []*Member { + if x != nil { + return x.Members + } + return nil +} + +type Member struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // required + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // required + AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // required +} + +func (x *Member) Reset() { + *x = Member{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Member) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Member) ProtoMessage() {} + +func (x *Member) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Member.ProtoReflect.Descriptor instead. +func (*Member) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{1} +} + +func (x *Member) GetId() int32 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *Member) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Member) GetAvatarUrl() string { + if x != nil { + return x.AvatarUrl + } + return "" +} + +type Switch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // required + MemberId int32 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // required + StartedAt string `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` // RFC 3339, required + EndedAt string `protobuf:"bytes,4,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` // RFC 3339, optional if switch is current +} + +func (x *Switch) Reset() { + *x = Switch{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Switch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Switch) ProtoMessage() {} + +func (x *Switch) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Switch.ProtoReflect.Descriptor instead. +func (*Switch) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{2} +} + +func (x *Switch) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Switch) GetMemberId() int32 { + if x != nil { + return x.MemberId + } + return 0 +} + +func (x *Switch) GetStartedAt() string { + if x != nil { + return x.StartedAt + } + return "" +} + +func (x *Switch) GetEndedAt() string { + if x != nil { + return x.EndedAt + } + return "" +} + +type SwitchReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MemberName string `protobuf:"bytes,1,opt,name=member_name,json=memberName,proto3" json:"member_name,omitempty"` // required +} + +func (x *SwitchReq) Reset() { + *x = SwitchReq{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SwitchReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SwitchReq) ProtoMessage() {} + +func (x *SwitchReq) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SwitchReq.ProtoReflect.Descriptor instead. +func (*SwitchReq) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{3} +} + +func (x *SwitchReq) GetMemberName() string { + if x != nil { + return x.MemberName + } + return "" +} + +type SwitchResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Old *Switch `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"` // required + Current *Switch `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"` // required +} + +func (x *SwitchResp) Reset() { + *x = SwitchResp{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SwitchResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SwitchResp) ProtoMessage() {} + +func (x *SwitchResp) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SwitchResp.ProtoReflect.Descriptor instead. +func (*SwitchResp) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{4} +} + +func (x *SwitchResp) GetOld() *Switch { + if x != nil { + return x.Old + } + return nil +} + +func (x *SwitchResp) GetCurrent() *Switch { + if x != nil { + return x.Current + } + return nil +} + +type GetSwitchReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // required +} + +func (x *GetSwitchReq) Reset() { + *x = GetSwitchReq{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSwitchReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSwitchReq) ProtoMessage() {} + +func (x *GetSwitchReq) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSwitchReq.ProtoReflect.Descriptor instead. +func (*GetSwitchReq) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{5} +} + +func (x *GetSwitchReq) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type FrontChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Switch *Switch `protobuf:"bytes,1,opt,name=switch,proto3" json:"switch,omitempty"` // required + Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"` // required +} + +func (x *FrontChange) Reset() { + *x = FrontChange{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FrontChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FrontChange) ProtoMessage() {} + +func (x *FrontChange) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FrontChange.ProtoReflect.Descriptor instead. +func (*FrontChange) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{6} +} + +func (x *FrontChange) GetSwitch() *Switch { + if x != nil { + return x.Switch + } + return nil +} + +func (x *FrontChange) GetMember() *Member { + if x != nil { + return x.Member + } + return nil +} + +type ListSwitchesReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // required + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // required +} + +func (x *ListSwitchesReq) Reset() { + *x = ListSwitchesReq{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSwitchesReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSwitchesReq) ProtoMessage() {} + +func (x *ListSwitchesReq) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSwitchesReq.ProtoReflect.Descriptor instead. +func (*ListSwitchesReq) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{7} +} + +func (x *ListSwitchesReq) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *ListSwitchesReq) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +type ListSwitchesResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Switches []*FrontChange `protobuf:"bytes,1,rep,name=switches,proto3" json:"switches,omitempty"` +} + +func (x *ListSwitchesResp) Reset() { + *x = ListSwitchesResp{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSwitchesResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSwitchesResp) ProtoMessage() {} + +func (x *ListSwitchesResp) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSwitchesResp.ProtoReflect.Descriptor instead. +func (*ListSwitchesResp) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{8} +} + +func (x *ListSwitchesResp) GetSwitches() []*FrontChange { + if x != nil { + return x.Switches + } + return nil +} + +// Event represents an event that Xe will be attending. +type Event struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the event + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The URL for the event + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + // The day the event starts + StartDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + // The day the event ends + EndDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + // The location of the event (human-readable) + Location string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"` + // Id of the event + Id int32 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` + // The description of the event + Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` + // If the event is syndicated to Flyght Tracker + Syndicate bool `protobuf:"varint,8,opt,name=syndicate,proto3" json:"syndicate,omitempty"` +} + +func (x *Event) Reset() { + *x = Event{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Event.ProtoReflect.Descriptor instead. +func (*Event) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{9} +} + +func (x *Event) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Event) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Event) GetStartDate() *timestamppb.Timestamp { + if x != nil { + return x.StartDate + } + return nil +} + +func (x *Event) GetEndDate() *timestamppb.Timestamp { + if x != nil { + return x.EndDate + } + return nil +} + +func (x *Event) GetLocation() string { + if x != nil { + return x.Location + } + return "" +} + +func (x *Event) GetId() int32 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *Event) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Event) GetSyndicate() bool { + if x != nil { + return x.Syndicate + } + return false +} + +// A feed of events, result from mi query. +type EventFeed struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The events in the feed + Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` +} + +func (x *EventFeed) Reset() { + *x = EventFeed{} + if protoimpl.UnsafeEnabled { + mi := &file_mi_mi_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventFeed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventFeed) ProtoMessage() {} + +func (x *EventFeed) ProtoReflect() protoreflect.Message { + mi := &file_mi_mi_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EventFeed.ProtoReflect.Descriptor instead. +func (*EventFeed) Descriptor() ([]byte, []int) { + return file_mi_mi_proto_rawDescGZIP(), []int{10} +} + +func (x *EventFeed) GetEvents() []*Event { + if x != nil { + return x.Events + } + return nil +} + +var File_mi_mi_proto protoreflect.FileDescriptor + +var file_mi_mi_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x6d, 0x69, 0x2f, 0x6d, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x77, + 0x69, 0x74, 0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x2e, 0x78, 0x2e, + 0x6d, 0x69, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x7