diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-07-01 17:39:28 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-07-01 17:39:28 -0400 |
| commit | b64e0a9c8b8edd7f110f8c5ce211c2a88ba7fe4f (patch) | |
| tree | 2d35a454673c7187bb85a9582e31cf1f5374d313 /buf/mimi | |
| parent | 0a905ce935191132939843943a128b82d1b2acd5 (diff) | |
| download | x-b64e0a9c8b8edd7f110f8c5ce211c2a88ba7fe4f.tar.xz x-b64e0a9c8b8edd7f110f8c5ce211c2a88ba7fe4f.zip | |
fix buf
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'buf/mimi')
| -rw-r--r-- | buf/mimi/announce/announce.pb.go | 80 | ||||
| -rw-r--r-- | buf/mimi/announce/announce.proto | 10 | ||||
| -rw-r--r-- | buf/mimi/announce/announceconnect/announce.connect.go | 114 | ||||
| -rw-r--r-- | buf/mimi/statuspage/statuspage.pb.go | 1019 | ||||
| -rw-r--r-- | buf/mimi/statuspage/statuspage.proto | 80 | ||||
| -rw-r--r-- | buf/mimi/statuspage/statuspageconnect/statuspage.connect.go | 113 |
6 files changed, 1416 insertions, 0 deletions
diff --git a/buf/mimi/announce/announce.pb.go b/buf/mimi/announce/announce.pb.go new file mode 100644 index 0000000..46b23d6 --- /dev/null +++ b/buf/mimi/announce/announce.pb.go @@ -0,0 +1,80 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: mimi/announce/announce.proto + +package announce + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + jsonfeed "within.website/x/buf/external/jsonfeed" +) + +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) +) + +var File_mimi_announce_announce_proto protoreflect.FileDescriptor + +var file_mimi_announce_announce_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6d, 0x69, 0x6d, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x2f, + 0x61, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, + 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x2e, 0x78, + 0x2e, 0x6d, 0x69, 0x6d, 0x69, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 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, 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, 0x32, 0x40, 0x0a, + 0x08, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x41, 0x6e, 0x6e, + 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x65, 0x65, 0x64, + 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, + 0x24, 0x5a, 0x22, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, + 0x65, 0x2f, 0x78, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x6d, 0x69, 0x6d, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_mimi_announce_announce_proto_goTypes = []any{ + (*jsonfeed.Item)(nil), // 0: jsonfeed.Item + (*emptypb.Empty)(nil), // 1: google.protobuf.Empty +} +var file_mimi_announce_announce_proto_depIdxs = []int32{ + 0, // 0: within.website.x.mimi.announce.Announce.Announce:input_type -> jsonfeed.Item + 1, // 1: within.website.x.mimi.announce.Announce.Announce:output_type -> google.protobuf.Empty + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] 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_mimi_announce_announce_proto_init() } +func file_mimi_announce_announce_proto_init() { + if File_mimi_announce_announce_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mimi_announce_announce_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_mimi_announce_announce_proto_goTypes, + DependencyIndexes: file_mimi_announce_announce_proto_depIdxs, + }.Build() + File_mimi_announce_announce_proto = out.File + file_mimi_announce_announce_proto_rawDesc = nil + file_mimi_announce_announce_proto_goTypes = nil + file_mimi_announce_announce_proto_depIdxs = nil +} diff --git a/buf/mimi/announce/announce.proto b/buf/mimi/announce/announce.proto new file mode 100644 index 0000000..9d23516 --- /dev/null +++ b/buf/mimi/announce/announce.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; +package within.website.x.mimi.announce; +option go_package = "within.website/x/buf/mimi/announce"; + +import "google/protobuf/empty.proto"; +import "external/jsonfeed/jsonfeed.proto"; + +service Announce { + rpc Announce(jsonfeed.Item) returns (google.protobuf.Empty) {} +}
\ No newline at end of file diff --git a/buf/mimi/announce/announceconnect/announce.connect.go b/buf/mimi/announce/announceconnect/announce.connect.go new file mode 100644 index 0000000..9eaf1b3 --- /dev/null +++ b/buf/mimi/announce/announceconnect/announce.connect.go @@ -0,0 +1,114 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: mimi/announce/announce.proto + +package announceconnect + +import ( + connect "connectrpc.com/connect" + context "context" + errors "errors" + emptypb "google.golang.org/protobuf/types/known/emptypb" + http "net/http" + strings "strings" + jsonfeed "within.website/x/buf/external/jsonfeed" + announce "within.website/x/buf/mimi/announce" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect.IsAtLeastVersion1_13_0 + +const ( + // AnnounceName is the fully-qualified name of the Announce service. + AnnounceName = "within.website.x.mimi.announce.Announce" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // AnnounceAnnounceProcedure is the fully-qualified name of the Announce's Announce RPC. + AnnounceAnnounceProcedure = "/within.website.x.mimi.announce.Announce/Announce" +) + +// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. +var ( + announceServiceDescriptor = announce.File_mimi_announce_announce_proto.Services().ByName("Announce") + announceAnnounceMethodDescriptor = announceServiceDescriptor.Methods().ByName("Announce") +) + +// AnnounceClient is a client for the within.website.x.mimi.announce.Announce service. +type AnnounceClient interface { + Announce(context.Context, *connect.Request[jsonfeed.Item]) (*connect.Response[emptypb.Empty], error) +} + +// NewAnnounceClient constructs a client for the within.website.x.mimi.announce.Announce service. By +// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, +// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the +// connect.WithGRPC() or connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewAnnounceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AnnounceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &announceClient{ + announce: connect.NewClient[jsonfeed.Item, emptypb.Empty]( + httpClient, + baseURL+AnnounceAnnounceProcedure, + connect.WithSchema(announceAnnounceMethodDescriptor), + connect.WithClientOptions(opts...), + ), + } +} + +// announceClient implements AnnounceClient. +type announceClient struct { + announce *connect.Client[jsonfeed.Item, emptypb.Empty] +} + +// Announce calls within.website.x.mimi.announce.Announce.Announce. +func (c *announceClient) Announce(ctx context.Context, req *connect.Request[jsonfeed.Item]) (*connect.Response[emptypb.Empty], error) { + return c.announce.CallUnary(ctx, req) +} + +// AnnounceHandler is an implementation of the within.website.x.mimi.announce.Announce service. +type AnnounceHandler interface { + Announce(context.Context, *connect.Request[jsonfeed.Item]) (*connect.Response[emptypb.Empty], error) +} + +// NewAnnounceHandler builds an HTTP handler from the service implementation. It returns the path on +// which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewAnnounceHandler(svc AnnounceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + announceAnnounceHandler := connect.NewUnaryHandler( + AnnounceAnnounceProcedure, + svc.Announce, + connect.WithSchema(announceAnnounceMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) + return "/within.website.x.mimi.announce.Announce/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case AnnounceAnnounceProcedure: + announceAnnounceHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) +} + +// UnimplementedAnnounceHandler returns CodeUnimplemented from all methods. +type UnimplementedAnnounceHandler struct{} + +func (UnimplementedAnnounceHandler) Announce(context.Context, *connect.Request[jsonfeed.Item]) (*connect.Response[emptypb.Empty], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("within.website.x.mimi.announce.Announce.Announce is not implemented")) +} diff --git a/buf/mimi/statuspage/statuspage.pb.go b/buf/mimi/statuspage/statuspage.pb.go new file mode 100644 index 0000000..dd3993d --- /dev/null +++ b/buf/mimi/statuspage/statuspage.pb.go @@ -0,0 +1,1019 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: mimi/statuspage/statuspage.proto + +package statuspage + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + 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 Meta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unsubscribe string `protobuf:"bytes,1,opt,name=unsubscribe,proto3" json:"unsubscribe,omitempty"` + Documentation string `protobuf:"bytes,2,opt,name=documentation,proto3" json:"documentation,omitempty"` +} + +func (x *Meta) Reset() { + *x = Meta{} + if protoimpl.UnsafeEnabled { + mi := &file_mimi_statuspage_statuspage_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Meta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Meta) ProtoMessage() {} + +func (x *Meta) ProtoReflect() protoreflect.Message { + mi := &file_mimi_statuspage_statuspage_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 Meta.ProtoReflect.Descriptor instead. +func (*Meta) Descriptor() ([]byte, []int) { + return file_mimi_statuspage_statuspage_proto_rawDescGZIP(), []int{0} +} + +func (x *Meta) GetUnsubscribe() string { + if x != nil { + return x.Unsubscribe + } + return "" +} + +func (x *Meta) GetDocumentation() string { + if x != nil { + return x.Documentation + } + return "" +} + +type Page struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + StatusIndicator string `protobuf:"bytes,2,opt,name=status_indicator,json=statusIndicator,proto3" json:"status_indicator,omitempty"` + StatusDescription string `protobuf:"bytes,3,opt,name=status_description,json=statusDescription,proto3" json:"status_description,omitempty"` +} + +func (x *Page) Reset() { + *x = Page{} + if protoimpl.UnsafeEnabled { + mi := &file_mimi_statuspage_statuspage_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Page) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Page) ProtoMessage() {} + +func (x *Page) ProtoReflect() protoreflect.Message { + mi := &file_mimi_statuspage_statuspage_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 Page.ProtoReflect.Descriptor instead. +func (*Page) Descriptor() ([]byte, []int) { + return file_mimi_statuspage_statuspage_proto_rawDescGZIP(), []int{1} +} + +func (x *Page) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Page) GetStatusIndicator() string { + if x != nil { + return x.StatusIndicator + } + return "" +} + +func (x *Page) GetStatusDescription() string { + if x != nil { + return x.StatusDescription + } + return "" +} + +type ComponentUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CreatedAt string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + NewStatus string `protobuf:"bytes,2,opt,name=new_status,json=newStatus,proto3" json:"new_status,omitempty"` + OldStatus string `protobuf:"bytes,3,opt,name=old_status,json=oldStatus,proto3" json:"old_status,omitempty"` + Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + ComponentId string `protobuf:"bytes,5,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` +} + +func (x *ComponentUpdate) Reset() { + *x = ComponentUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_mimi_statuspage_statuspage_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComponentUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComponentUpdate) ProtoMessage() {} + +func (x *ComponentUpdate) ProtoReflect() protoreflect.Message { + mi := &file_mimi_statuspage_statuspage_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 ComponentUpdate.ProtoReflect.Descriptor instead. +func (*ComponentUpdate) Descriptor() ([]byte, []int) { + return file_mimi_statuspage_statuspage_proto_rawDescGZIP(), []int{2} +} + +func (x *ComponentUpdate) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *ComponentUpdate) GetNewStatus() string { + if x != nil { + return x.NewStatus + } + return "" +} + +func (x *ComponentUpdate) GetOldStatus() string { + if x != nil { + return x.OldStatus + } + return "" +} + +func (x *ComponentUpdate) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ComponentUpdate) GetComponentId() string { + if x != nil { + return x.ComponentId + } + return "" +} + +type Component struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CreatedAt string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *Component) Reset() { + *x = Component{} + if protoimpl.UnsafeEnabled { + mi := &file_mimi_statuspage_statuspage_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Component) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Component) ProtoMessage() {} + +func (x *Component) ProtoReflect() protoreflect.Message { + mi := &file_mimi_statuspage_statuspage_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 Component.ProtoReflect.Descriptor instead. +func (*Component) Descriptor() ([]byte, []int) { + return file_mimi_statuspage_statuspage_proto_rawDescGZIP(), []int{3} +} + +func (x *Component) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *Component) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Component) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Component) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +type IncidentUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + CreatedAt string `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + DisplayAt string `protobuf:"bytes,3,opt,name=display_at,json=displayAt,proto3" json:"display_at,omitempty"` + Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` + TwitterUpdatedAt string `protobuf:"bytes,5,opt,name=twitter_updated_at,json=twitterUpdatedAt,proto3" json:"twitter_updated_at,omitempty"` + UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + WantsTwitterUpdate bool `protobuf:"varint,7,opt,name=wants_twitter_update,json=wantsTwitterUpdate,proto3" json:"wants_twitter_update,omitempty"` + Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` + IncidentId string `protobuf:"bytes,9,opt,name=incident_id,json=incidentId,proto3" json:"incident_id,omitempty"` +} + +func (x *IncidentUpdate) Reset() { + *x = IncidentUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_mimi_statuspage_statuspage_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IncidentUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IncidentUpdate) ProtoMessage() {} + +func (x *IncidentUpdate) ProtoReflect() protoreflect.Message { + mi := &file_mimi_statuspage_statuspage_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 IncidentUpdate.ProtoReflect.Descriptor instead. +func (*IncidentUpdate) Descriptor() ([]byte, []int) { + return file_mimi_statuspage_statuspage_proto_rawDescGZIP(), []int{4} +} + +func (x *IncidentUpdate) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *IncidentUpdate) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *IncidentUpdate) GetDisplayAt() string { + if x != nil { + return x.DisplayAt + } + return "" +} + +func (x *IncidentUpdate) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *IncidentUpdate) GetTwitterUpdatedAt() string { + if x != nil { + return x.TwitterUpdatedAt + } + return "" +} + +func (x *IncidentUpdate) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *IncidentUpdate) GetWantsTwitterUpdate() bool { + if x != nil { + return x.WantsTwitterUpdate + } + return false +} + +func (x *IncidentUpdate) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *IncidentUpdate) GetIncidentId() string { + if x != nil { + return x.IncidentId + } + return "" +} + +type Incident struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Backfilled bool `protobuf:"varint,1,opt,name=backfilled,proto3" json:"backfilled,omitempty"` + CreatedAt string `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Impact string `protobuf:"bytes,3,opt,name=impact,proto3" json:"impact,omitempty"` + ImpactOverride string `protobuf:"bytes,4,opt,name=impact_override,json=impactOverride,proto3" json:"impact_override,omitempty"` + MonitoringAt string `protobuf:"bytes,5,opt,name=monitoring_at,json=monitoringAt,proto3" json:"monitoring_at,omitempty"` + PostmortemBody string `protobuf:"bytes,6,opt,name=postmortem_body,json=postmortemBody,proto3" json:"postmortem_body,omitempty"` + PostmortemBodyLastUpdatedAt string `protobuf:"bytes,7,opt,name=postmortem_body_last_updated_at,json=postmortemBodyLastUpdatedAt,proto3" json:"postmortem_body_last_updated_at,omitempty"` + PostmortemIgnored bool `protobuf:"varint,8,opt,name=postmortem_ignored,json=postmortemIgnored,proto3" json:"postmortem_ignored,omitempty"` + PostmortemNotifiedSubscribers bool `protobuf:"varint,9,opt,name=postmortem_notified_subscribers,json=postmortemNotifiedSubscribers,proto3" json:"postmortem_notified_subscribers,omitempty"` + PostmortemNotifiedTwitter bool `protobuf:"varint,10,opt,name=postmortem_notified_twitter,json=postmortemNotifiedTwitter,proto3" json:"postmortem_notified_twitter,omitempty"` + PostmortemPublishedAt string `protobuf:"bytes,11,opt,name=postmortem_published_at,json=postmortemPublishedAt,proto3" json:"postmortem_published_at,omitempty"` + ResolvedAt string `protobuf:"bytes,12,opt,name=resolved_at,json=resolvedAt,proto3" json:"resolved_at,omitempty"` + ScheduledAutoTransition bool `protobuf:"varint,13,opt,name=scheduled_auto_transition,json=scheduledAutoTransition,proto3" json:"scheduled_auto_transition,omitempty"` + ScheduledFor string `protobuf:"bytes,14,opt,name=scheduled_for,json=scheduledFor,proto3" json:"scheduled_for,omitempty"` + ScheduledRemindPrior bool `protobuf:"varint,15,opt,name=scheduled_remind_prior,json=scheduledRemindPrior,proto3" json:"scheduled_remind_prior,omitempty"` + ScheduledRemindedAt string `protobuf:"bytes,16,opt,name=scheduled_reminded_at,json=scheduledRemindedAt,proto3" json:"scheduled_reminded_at,omitempty"` + ScheduledUntil string `protobuf:"bytes,17,opt,name=scheduled_until,json=scheduledUntil,proto3" json:"scheduled_until,omitempty"` + Shortlink string `protobuf:"bytes,18,opt,name=shortlink,proto3" json:"shortlink,omitempty"` + Status string `protobuf:"bytes,19,opt,name=status,proto3" json:"status,omitempty"` + UpdatedAt string `protobuf:"bytes,20,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + Id string `protobuf:"bytes,21,opt,name=id,proto3" json:"id,omitempty"` + OrganizationId string `protobuf:"bytes,22,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + IncidentUpdates []*IncidentUpdate `protobuf:"bytes,23,rep,name=incident_updates,json=incidentUpdates,proto3" json:"incident_updates,omitempty"` + Name string `protobuf:"bytes,24,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *Incident) Reset() { + *x = Incident{} + if protoimpl.UnsafeEnabled { + mi := &file_mimi_statuspage_statuspage_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Incident) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Incident) ProtoMessage() {} + +func (x *Incident) ProtoReflect() protoreflect.Message { + mi := &file_mimi_statuspage_statuspage_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 Incident.ProtoReflect.Descriptor instead. +func (*Incident) Descriptor() ([]byte, []int) { + return file_mimi_statuspage_statuspage_proto_rawDescGZIP(), []int{5} +} + +func (x *Incident) GetBackfilled() bool { + if x != nil { + return x.Backfilled + } + return false +} + +func (x *Incident) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *Incident) GetImpact() string { + if x != nil { + return x.Impact + } + return "" +} + +func (x *Incident) GetImpactOverride() string { + if x != nil { + return x.ImpactOverride + } + return "" +} + +func (x *Incident) GetMonitoringAt() string { + if x != nil { + return x.MonitoringAt + } + return "" +} + +func (x *Incident) GetPostmortemBody() string { + if x != nil { + return x.PostmortemBody + } + return "" +} + +func (x *Incident) GetPostmortemBodyLastUpdatedAt() string { + if x != nil { + return x.PostmortemBodyLastUpdatedAt + } + return "" +} + +func (x *Incident) GetPostmortemIgnored() bool { + if x != nil { + return x.PostmortemIgnored + } + return false +} + +func (x *Incident) GetPostmortemNotifiedSubscribers() bool { + if x != nil { + return x.PostmortemNotifiedSubscribers + } + return false +} + +func (x *Incident) GetPostmortemNotifiedTwitter() bool { + if x != nil { + return x.PostmortemNotifiedTwitter + } + return false +} + +func (x *Incident) GetPostmortemPublishedAt() string { + if x != nil { + return x.PostmortemPublishedAt + } + return "" +} + +func (x *Incident) GetResolvedAt() string { + if x != nil { + return x.ResolvedAt + } + return "" +} + +func (x *Incident) GetScheduledAutoTransition() bool { + if x != nil { + return x.ScheduledAutoTransition + } + return false +} + +func (x *Incident) GetScheduledFor() string { + if x != nil { + return x.ScheduledFor + } + return "" +} + +func (x *Incident) GetScheduledRemindPrior() bool { + if x != nil { + return x.ScheduledRemindPrior + } + return false +} + +func (x *Incident) GetScheduledRemindedAt() string { + if x != nil { + return x.ScheduledRemindedAt + } + return "" +} + +func (x *Incident) GetScheduledUntil() string { + if x != nil { + return x.ScheduledUntil + } + return "" +} + +func (x *Incident) GetShortlink() string { + if x != nil { + return x.Shortlink + } + return "" +} + +func (x *Incident) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *Incident) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *Incident) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Incident) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *Incident) GetIncidentUpdates() []*IncidentUpdate { + if x != nil { + return x.IncidentUpdates + } + return nil +} + +func (x *Incident) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type StatusUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Page *Page `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` + Incident *Incident `protobuf:"bytes,3,opt,name=incident,proto3" json:"incident,omitempty"` + Component *Component `protobuf:"bytes,4,opt,name=component,proto3" json:"component,omitempty"` + ComponentUpdate *ComponentUpdate `protobuf:"bytes,5,opt,name=component_update,json=componentUpdate,proto3" json:"component_update,omitempty"` +} + +func (x *StatusUpdate) Reset() { + *x = StatusUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_mimi_statuspage_statuspage_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatusUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatusUpdate) ProtoMessage() {} + +func (x *StatusUpdate) ProtoReflect() protoreflect.Message { + mi := &file_mimi_statuspage_statuspage_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 StatusUpdate.ProtoReflect.Descriptor instead. +func (*StatusUpdate) Descriptor() ([]byte, []int) { + return file_mimi_statuspage_statuspage_proto_rawDescGZIP(), []int{6} +} + +func (x *StatusUpdate) GetMeta() *Meta { + if x != nil { + return x.Meta + } + return nil +} + +func (x *StatusUpdate) GetPage() *Page { + if x != nil { + return x.Page + } + return nil +} + +func (x *StatusUpdate) GetIncident() *Incident { + if x != nil { + return x.Incident + } + return nil +} + +func (x *StatusUpdate) GetComponent() *Component { + if x != nil { + return x.Component + } + return nil +} + +func (x *StatusUpdate) GetComponentUpdate() *ComponentUpdate { + if x != nil { + return x.ComponentUpdate + } + return nil +} + +var File_mimi_statuspage_statuspage_proto protoreflect.FileDescriptor + +var file_mimi_statuspage_statuspage_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x6d, 0x69, 0x6d, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x70, 0x61, 0x67, + 0x65, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x20, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, + 0x74, 0x65, 0x2e, 0x78, 0x2e, 0x6d, 0x69, 0x6d, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x70, 0x61, 0x67, 0x65, 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, 0x22, 0x4e, 0x0a, 0x04, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x75, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x64, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x70, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x5f, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x49, 0x6e, 0x64, 0x69, 0x63, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x11, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x6c, 0x64, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x6c, 0x64, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x66, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, + 0xaa, 0x02, 0x0a, 0x0e, 0x49, 0x6e, 0x63, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, 0x0a, 0x12, |
