From bd480e875aae2d7c4ae442f6314943405775887e Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 14:54:23 +0100 Subject: [PATCH] add new proto --- grpcapi/agenda.pb.go | 1327 ++++++++++++++++++++----------------- grpcapi/agenda.proto | 5 +- grpcapi/agenda_grpc.pb.go | 1 - 3 files changed, 714 insertions(+), 619 deletions(-) diff --git a/grpcapi/agenda.pb.go b/grpcapi/agenda.pb.go index 61e8821..4d27540 100644 --- a/grpcapi/agenda.pb.go +++ b/grpcapi/agenda.pb.go @@ -1,3 +1,5 @@ +//COOPGO Agenda gRPC service definition + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 @@ -7,11 +9,6 @@ package grpcapi import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - math "math" _struct "github.com/golang/protobuf/ptypes/struct" timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -20,258 +17,296 @@ import ( sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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 CreateEventRequest struct { - Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` } -func (m *CreateEventRequest) Reset() { *m = CreateEventRequest{} } -func (m *CreateEventRequest) String() string { return proto.CompactTextString(m) } -func (*CreateEventRequest) ProtoMessage() {} +func (x *CreateEventRequest) Reset() { + *x = CreateEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateEventRequest) ProtoMessage() {} + +func (x *CreateEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 CreateEventRequest.ProtoReflect.Descriptor instead. func (*CreateEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{0} + return file_agenda_proto_rawDescGZIP(), []int{0} } -func (m *CreateEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateEventRequest.Unmarshal(m, b) -} -func (m *CreateEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateEventRequest.Marshal(b, m, deterministic) -} -func (m *CreateEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateEventRequest.Merge(m, src) -} -func (m *CreateEventRequest) XXX_Size() int { - return xxx_messageInfo_CreateEventRequest.Size(m) -} -func (m *CreateEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateEventRequest proto.InternalMessageInfo - -func (m *CreateEventRequest) GetEvent() *Event { - if m != nil { - return m.Event +func (x *CreateEventRequest) GetEvent() *Event { + if x != nil { + return x.Event } return nil } type CreateEventResponse struct { - Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` } -func (m *CreateEventResponse) Reset() { *m = CreateEventResponse{} } -func (m *CreateEventResponse) String() string { return proto.CompactTextString(m) } -func (*CreateEventResponse) ProtoMessage() {} +func (x *CreateEventResponse) Reset() { + *x = CreateEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateEventResponse) ProtoMessage() {} + +func (x *CreateEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 CreateEventResponse.ProtoReflect.Descriptor instead. func (*CreateEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{1} + return file_agenda_proto_rawDescGZIP(), []int{1} } -func (m *CreateEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateEventResponse.Unmarshal(m, b) -} -func (m *CreateEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateEventResponse.Marshal(b, m, deterministic) -} -func (m *CreateEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateEventResponse.Merge(m, src) -} -func (m *CreateEventResponse) XXX_Size() int { - return xxx_messageInfo_CreateEventResponse.Size(m) -} -func (m *CreateEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateEventResponse proto.InternalMessageInfo - -func (m *CreateEventResponse) GetEvent() *Event { - if m != nil { - return m.Event +func (x *CreateEventResponse) GetEvent() *Event { + if x != nil { + return x.Event } return nil } type GetEventRequest struct { - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` } -func (m *GetEventRequest) Reset() { *m = GetEventRequest{} } -func (m *GetEventRequest) String() string { return proto.CompactTextString(m) } -func (*GetEventRequest) ProtoMessage() {} +func (x *GetEventRequest) Reset() { + *x = GetEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetEventRequest) ProtoMessage() {} + +func (x *GetEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 GetEventRequest.ProtoReflect.Descriptor instead. func (*GetEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{2} + return file_agenda_proto_rawDescGZIP(), []int{2} } -func (m *GetEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetEventRequest.Unmarshal(m, b) -} -func (m *GetEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetEventRequest.Marshal(b, m, deterministic) -} -func (m *GetEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetEventRequest.Merge(m, src) -} -func (m *GetEventRequest) XXX_Size() int { - return xxx_messageInfo_GetEventRequest.Size(m) -} -func (m *GetEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetEventRequest proto.InternalMessageInfo - -func (m *GetEventRequest) GetId() string { - if m != nil { - return m.Id +func (x *GetEventRequest) GetId() string { + if x != nil { + return x.Id } return "" } type GetEventResponse struct { - Event *Event `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Event *Event `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` } -func (m *GetEventResponse) Reset() { *m = GetEventResponse{} } -func (m *GetEventResponse) String() string { return proto.CompactTextString(m) } -func (*GetEventResponse) ProtoMessage() {} +func (x *GetEventResponse) Reset() { + *x = GetEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetEventResponse) ProtoMessage() {} + +func (x *GetEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 GetEventResponse.ProtoReflect.Descriptor instead. func (*GetEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{3} + return file_agenda_proto_rawDescGZIP(), []int{3} } -func (m *GetEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetEventResponse.Unmarshal(m, b) -} -func (m *GetEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetEventResponse.Marshal(b, m, deterministic) -} -func (m *GetEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetEventResponse.Merge(m, src) -} -func (m *GetEventResponse) XXX_Size() int { - return xxx_messageInfo_GetEventResponse.Size(m) -} -func (m *GetEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetEventResponse proto.InternalMessageInfo - -func (m *GetEventResponse) GetEvent() *Event { - if m != nil { - return m.Event +func (x *GetEventResponse) GetEvent() *Event { + if x != nil { + return x.Event } return nil } type DeleteEventRequest struct { - Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` } -func (m *DeleteEventRequest) Reset() { *m = DeleteEventRequest{} } -func (m *DeleteEventRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteEventRequest) ProtoMessage() {} +func (x *DeleteEventRequest) Reset() { + *x = DeleteEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteEventRequest) ProtoMessage() {} + +func (x *DeleteEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 DeleteEventRequest.ProtoReflect.Descriptor instead. func (*DeleteEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{4} + return file_agenda_proto_rawDescGZIP(), []int{4} } -func (m *DeleteEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteEventRequest.Unmarshal(m, b) -} -func (m *DeleteEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteEventRequest.Marshal(b, m, deterministic) -} -func (m *DeleteEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteEventRequest.Merge(m, src) -} -func (m *DeleteEventRequest) XXX_Size() int { - return xxx_messageInfo_DeleteEventRequest.Size(m) -} -func (m *DeleteEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteEventRequest proto.InternalMessageInfo - -func (m *DeleteEventRequest) GetId() string { - if m != nil { - return m.Id +func (x *DeleteEventRequest) GetId() string { + if x != nil { + return x.Id } return "" } type DeleteEventResponse struct { - Ok bool `protobuf:"varint,6,opt,name=ok,proto3" json:"ok,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,6,opt,name=ok,proto3" json:"ok,omitempty"` } -func (m *DeleteEventResponse) Reset() { *m = DeleteEventResponse{} } -func (m *DeleteEventResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteEventResponse) ProtoMessage() {} +func (x *DeleteEventResponse) Reset() { + *x = DeleteEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteEventResponse) ProtoMessage() {} + +func (x *DeleteEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 DeleteEventResponse.ProtoReflect.Descriptor instead. func (*DeleteEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{5} + return file_agenda_proto_rawDescGZIP(), []int{5} } -func (m *DeleteEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteEventResponse.Unmarshal(m, b) -} -func (m *DeleteEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteEventResponse.Marshal(b, m, deterministic) -} -func (m *DeleteEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteEventResponse.Merge(m, src) -} -func (m *DeleteEventResponse) XXX_Size() int { - return xxx_messageInfo_DeleteEventResponse.Size(m) -} -func (m *DeleteEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteEventResponse proto.InternalMessageInfo - -func (m *DeleteEventResponse) GetOk() bool { - if m != nil { - return m.Ok +func (x *DeleteEventResponse) GetOk() bool { + if x != nil { + return x.Ok } return false } type GetEventsRequest struct { - Namespaces []string `protobuf:"bytes,10,rep,name=namespaces,proto3" json:"namespaces,omitempty"` - Mindate *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=mindate,proto3" json:"mindate,omitempty"` - Maxdate *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=maxdate,proto3" json:"maxdate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -281,34 +316,41 @@ type GetEventsRequest struct { Maxdate *timestamp.Timestamp `protobuf:"bytes,12,opt,name=maxdate,proto3" json:"maxdate,omitempty"` } -func (m *GetEventsRequest) Reset() { *m = GetEventsRequest{} } -func (m *GetEventsRequest) String() string { return proto.CompactTextString(m) } -func (*GetEventsRequest) ProtoMessage() {} +func (x *GetEventsRequest) Reset() { + *x = GetEventsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetEventsRequest) ProtoMessage() {} + +func (x *GetEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 GetEventsRequest.ProtoReflect.Descriptor instead. func (*GetEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{6} + return file_agenda_proto_rawDescGZIP(), []int{6} } -func (m *GetEventsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetEventsRequest.Unmarshal(m, b) -} -func (m *GetEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetEventsRequest.Marshal(b, m, deterministic) -} -func (m *GetEventsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetEventsRequest.Merge(m, src) -} -func (m *GetEventsRequest) XXX_Size() int { - return xxx_messageInfo_GetEventsRequest.Size(m) -} -func (m *GetEventsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetEventsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetEventsRequest proto.InternalMessageInfo - -func (m *GetEventsRequest) GetNamespaces() []string { - if m != nil { - return m.Namespaces +func (x *GetEventsRequest) GetNamespaces() []string { + if x != nil { + return x.Namespaces } return nil } @@ -328,51 +370,53 @@ func (x *GetEventsRequest) GetMaxdate() *timestamp.Timestamp { } type GetEventsResponse struct { - Events []*Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Events []*Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"` } -func (m *GetEventsResponse) Reset() { *m = GetEventsResponse{} } -func (m *GetEventsResponse) String() string { return proto.CompactTextString(m) } -func (*GetEventsResponse) ProtoMessage() {} +func (x *GetEventsResponse) Reset() { + *x = GetEventsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetEventsResponse) ProtoMessage() {} + +func (x *GetEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 GetEventsResponse.ProtoReflect.Descriptor instead. func (*GetEventsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{7} + return file_agenda_proto_rawDescGZIP(), []int{7} } -func (m *GetEventsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetEventsResponse.Unmarshal(m, b) -} -func (m *GetEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetEventsResponse.Marshal(b, m, deterministic) -} -func (m *GetEventsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetEventsResponse.Merge(m, src) -} -func (m *GetEventsResponse) XXX_Size() int { - return xxx_messageInfo_GetEventsResponse.Size(m) -} -func (m *GetEventsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetEventsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetEventsResponse proto.InternalMessageInfo - -func (m *GetEventsResponse) GetEvents() []*Event { - if m != nil { - return m.Events +func (x *GetEventsResponse) GetEvents() []*Event { + if x != nil { + return x.Events } return nil } type SubscribeEventRequest struct { - Subscriber string `protobuf:"bytes,20,opt,name=subscriber,proto3" json:"subscriber,omitempty"` - Eventid string `protobuf:"bytes,21,opt,name=eventid,proto3" json:"eventid,omitempty"` - Data *structpb.Struct `protobuf:"bytes,22,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -382,48 +426,52 @@ type SubscribeEventRequest struct { Data *_struct.Struct `protobuf:"bytes,22,opt,name=data,proto3" json:"data,omitempty"` } -func (m *SubscribeEventRequest) Reset() { *m = SubscribeEventRequest{} } -func (m *SubscribeEventRequest) String() string { return proto.CompactTextString(m) } -func (*SubscribeEventRequest) ProtoMessage() {} +func (x *SubscribeEventRequest) Reset() { + *x = SubscribeEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SubscribeEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SubscribeEventRequest) ProtoMessage() {} + +func (x *SubscribeEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 SubscribeEventRequest.ProtoReflect.Descriptor instead. func (*SubscribeEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{8} + return file_agenda_proto_rawDescGZIP(), []int{8} } -func (m *SubscribeEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeEventRequest.Unmarshal(m, b) -} -func (m *SubscribeEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeEventRequest.Marshal(b, m, deterministic) -} -func (m *SubscribeEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeEventRequest.Merge(m, src) -} -func (m *SubscribeEventRequest) XXX_Size() int { - return xxx_messageInfo_SubscribeEventRequest.Size(m) -} -func (m *SubscribeEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SubscribeEventRequest proto.InternalMessageInfo - -func (m *SubscribeEventRequest) GetSubscriber() string { - if m != nil { - return m.Subscriber +func (x *SubscribeEventRequest) GetSubscriber() string { + if x != nil { + return x.Subscriber } return "" } -func (m *SubscribeEventRequest) GetEventid() string { - if m != nil { - return m.Eventid +func (x *SubscribeEventRequest) GetEventid() string { + if x != nil { + return x.Eventid } return "" } -func (m *SubscribeEventRequest) GetData() *structpb.Struct { - if m != nil { - return m.Data func (x *SubscribeEventRequest) GetData() *_struct.Struct { if x != nil { return x.Data @@ -432,149 +480,276 @@ func (x *SubscribeEventRequest) GetData() *_struct.Struct { } type SubscribeEventResponse struct { - Ok bool `protobuf:"varint,29,opt,name=ok,proto3" json:"ok,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,29,opt,name=ok,proto3" json:"ok,omitempty"` } -func (m *SubscribeEventResponse) Reset() { *m = SubscribeEventResponse{} } -func (m *SubscribeEventResponse) String() string { return proto.CompactTextString(m) } -func (*SubscribeEventResponse) ProtoMessage() {} +func (x *SubscribeEventResponse) Reset() { + *x = SubscribeEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SubscribeEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SubscribeEventResponse) ProtoMessage() {} + +func (x *SubscribeEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 SubscribeEventResponse.ProtoReflect.Descriptor instead. func (*SubscribeEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{9} + return file_agenda_proto_rawDescGZIP(), []int{9} } -func (m *SubscribeEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeEventResponse.Unmarshal(m, b) -} -func (m *SubscribeEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeEventResponse.Marshal(b, m, deterministic) -} -func (m *SubscribeEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeEventResponse.Merge(m, src) -} -func (m *SubscribeEventResponse) XXX_Size() int { - return xxx_messageInfo_SubscribeEventResponse.Size(m) -} -func (m *SubscribeEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SubscribeEventResponse proto.InternalMessageInfo - -func (m *SubscribeEventResponse) GetOk() bool { - if m != nil { - return m.Ok +func (x *SubscribeEventResponse) GetOk() bool { + if x != nil { + return x.Ok } return false } type UnsubscribeEventRequest struct { - Subscriber string `protobuf:"bytes,30,opt,name=subscriber,proto3" json:"subscriber,omitempty"` - Eventid string `protobuf:"bytes,31,opt,name=eventid,proto3" json:"eventid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Subscriber string `protobuf:"bytes,30,opt,name=subscriber,proto3" json:"subscriber,omitempty"` + Eventid string `protobuf:"bytes,31,opt,name=eventid,proto3" json:"eventid,omitempty"` } -func (m *UnsubscribeEventRequest) Reset() { *m = UnsubscribeEventRequest{} } -func (m *UnsubscribeEventRequest) String() string { return proto.CompactTextString(m) } -func (*UnsubscribeEventRequest) ProtoMessage() {} +func (x *UnsubscribeEventRequest) Reset() { + *x = UnsubscribeEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsubscribeEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsubscribeEventRequest) ProtoMessage() {} + +func (x *UnsubscribeEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_agenda_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 UnsubscribeEventRequest.ProtoReflect.Descriptor instead. func (*UnsubscribeEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{10} + return file_agenda_proto_rawDescGZIP(), []int{10} } -func (m *UnsubscribeEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnsubscribeEventRequest.Unmarshal(m, b) -} -func (m *UnsubscribeEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnsubscribeEventRequest.Marshal(b, m, deterministic) -} -func (m *UnsubscribeEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnsubscribeEventRequest.Merge(m, src) -} -func (m *UnsubscribeEventRequest) XXX_Size() int { - return xxx_messageInfo_UnsubscribeEventRequest.Size(m) -} -func (m *UnsubscribeEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UnsubscribeEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UnsubscribeEventRequest proto.InternalMessageInfo - -func (m *UnsubscribeEventRequest) GetSubscriber() string { - if m != nil { - return m.Subscriber +func (x *UnsubscribeEventRequest) GetSubscriber() string { + if x != nil { + return x.Subscriber } return "" } -func (m *UnsubscribeEventRequest) GetEventid() string { - if m != nil { - return m.Eventid +func (x *UnsubscribeEventRequest) GetEventid() string { + if x != nil { + return x.Eventid } return "" } type UnsubscribeEventResponse struct { - Ok bool `protobuf:"varint,39,opt,name=ok,proto3" json:"ok,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,39,opt,name=ok,proto3" json:"ok,omitempty"` } -func (m *UnsubscribeEventResponse) Reset() { *m = UnsubscribeEventResponse{} } -func (m *UnsubscribeEventResponse) String() string { return proto.CompactTextString(m) } -func (*UnsubscribeEventResponse) ProtoMessage() {} +func (x *UnsubscribeEventResponse) Reset() { + *x = UnsubscribeEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsubscribeEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsubscribeEventResponse) ProtoMessage() {} + +func (x *UnsubscribeEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_agenda_proto_msgTypes[11] + 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 UnsubscribeEventResponse.ProtoReflect.Descriptor instead. func (*UnsubscribeEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{11} + return file_agenda_proto_rawDescGZIP(), []int{11} } -func (m *UnsubscribeEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnsubscribeEventResponse.Unmarshal(m, b) -} -func (m *UnsubscribeEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnsubscribeEventResponse.Marshal(b, m, deterministic) -} -func (m *UnsubscribeEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnsubscribeEventResponse.Merge(m, src) -} -func (m *UnsubscribeEventResponse) XXX_Size() int { - return xxx_messageInfo_UnsubscribeEventResponse.Size(m) -} -func (m *UnsubscribeEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UnsubscribeEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UnsubscribeEventResponse proto.InternalMessageInfo - -func (m *UnsubscribeEventResponse) GetOk() bool { - if m != nil { - return m.Ok +func (x *UnsubscribeEventResponse) GetOk() bool { + if x != nil { + return x.Ok } return false } type DeleteSubscriptionRequest struct { - Subscriber string `protobuf:"bytes,32,opt,name=subscriber,proto3" json:"subscriber,omitempty"` - Eventid string `protobuf:"bytes,33,opt,name=eventid,proto3" json:"eventid,omitempty"` - Data *structpb.Struct `protobuf:"bytes,34,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Subscriber string `protobuf:"bytes,32,opt,name=subscriber,proto3" json:"subscriber,omitempty"` + Eventid string `protobuf:"bytes,33,opt,name=eventid,proto3" json:"eventid,omitempty"` + Data *_struct.Struct `protobuf:"bytes,34,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *DeleteSubscriptionRequest) Reset() { + *x = DeleteSubscriptionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteSubscriptionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSubscriptionRequest) ProtoMessage() {} + +func (x *DeleteSubscriptionRequest) ProtoReflect() protoreflect.Message { + mi := &file_agenda_proto_msgTypes[12] + 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 DeleteSubscriptionRequest.ProtoReflect.Descriptor instead. +func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int) { + return file_agenda_proto_rawDescGZIP(), []int{12} +} + +func (x *DeleteSubscriptionRequest) GetSubscriber() string { + if x != nil { + return x.Subscriber + } + return "" +} + +func (x *DeleteSubscriptionRequest) GetEventid() string { + if x != nil { + return x.Eventid + } + return "" +} + +func (x *DeleteSubscriptionRequest) GetData() *_struct.Struct { + if x != nil { + return x.Data + } + return nil +} + +type DeleteSubscriptionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,41,opt,name=ok,proto3" json:"ok,omitempty"` +} + +func (x *DeleteSubscriptionResponse) Reset() { + *x = DeleteSubscriptionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agenda_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteSubscriptionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSubscriptionResponse) ProtoMessage() {} + +func (x *DeleteSubscriptionResponse) ProtoReflect() protoreflect.Message { + mi := &file_agenda_proto_msgTypes[13] + 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 DeleteSubscriptionResponse.ProtoReflect.Descriptor instead. +func (*DeleteSubscriptionResponse) Descriptor() ([]byte, []int) { + return file_agenda_proto_rawDescGZIP(), []int{13} +} + +func (x *DeleteSubscriptionResponse) GetOk() bool { + if x != nil { + return x.Ok + } + return false +} + type UpdateEventRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Event *Event `protobuf:"bytes,32,opt,name=event,proto3" json:"event,omitempty"` + Event *Event `protobuf:"bytes,52,opt,name=event,proto3" json:"event,omitempty"` } func (x *UpdateEventRequest) Reset() { *x = UpdateEventRequest{} if protoimpl.UnsafeEnabled { - mi := &file_agenda_proto_msgTypes[12] + mi := &file_agenda_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -587,7 +762,7 @@ func (x *UpdateEventRequest) String() string { func (*UpdateEventRequest) ProtoMessage() {} func (x *UpdateEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_agenda_proto_msgTypes[12] + mi := &file_agenda_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -600,7 +775,7 @@ func (x *UpdateEventRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEventRequest.ProtoReflect.Descriptor instead. func (*UpdateEventRequest) Descriptor() ([]byte, []int) { - return file_agenda_proto_rawDescGZIP(), []int{12} + return file_agenda_proto_rawDescGZIP(), []int{14} } func (x *UpdateEventRequest) GetEvent() *Event { @@ -615,13 +790,13 @@ type UpdateEventResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Event *Event `protobuf:"bytes,33,opt,name=event,proto3" json:"event,omitempty"` + Event *Event `protobuf:"bytes,53,opt,name=event,proto3" json:"event,omitempty"` } func (x *UpdateEventResponse) Reset() { *x = UpdateEventResponse{} if protoimpl.UnsafeEnabled { - mi := &file_agenda_proto_msgTypes[13] + mi := &file_agenda_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -634,7 +809,7 @@ func (x *UpdateEventResponse) String() string { func (*UpdateEventResponse) ProtoMessage() {} func (x *UpdateEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_agenda_proto_msgTypes[13] + mi := &file_agenda_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -647,7 +822,7 @@ func (x *UpdateEventResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEventResponse.ProtoReflect.Descriptor instead. func (*UpdateEventResponse) Descriptor() ([]byte, []int) { - return file_agenda_proto_rawDescGZIP(), []int{13} + return file_agenda_proto_rawDescGZIP(), []int{15} } func (x *UpdateEventResponse) GetEvent() *Event { @@ -714,240 +889,136 @@ var file_agenda_proto_rawDesc = []byte{ 0x28, 0x09, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x18, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x27, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x32, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, - 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x33, 0x0a, 0x13, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x21, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x06, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x32, 0xb5, 0x03, 0x0a, 0x06, 0x41, 0x67, 0x65, 0x6e, 0x64, 0x61, 0x12, 0x3a, 0x0a, 0x0b, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x14, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x10, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x09, 0x47, 0x65, - 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x11, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x47, 0x65, 0x74, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x3a, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, - 0x13, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0b, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x2e, 0x55, 0x70, + 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x82, 0x01, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x72, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x69, 0x64, + 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x69, 0x64, 0x12, + 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2c, 0x0a, 0x1a, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, + 0x18, 0x29, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x32, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x14, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x2e, 0x53, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, - 0x10, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x18, 0x2e, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x55, 0x6e, - 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x2e, - 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, - 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x64, 0x61, - 0x2f, 0x67, 0x72, 0x70, 0x63, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x1c, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x34, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x06, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x33, + 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x35, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x32, 0x86, 0x04, 0x0a, 0x06, 0x41, 0x67, 0x65, 0x6e, 0x64, 0x61, 0x12, 0x3a, + 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x08, 0x47, 0x65, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, + 0x09, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x11, 0x2e, 0x47, 0x65, 0x74, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x13, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x3a, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x13, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0e, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x2e, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x49, 0x0a, 0x10, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x2e, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, + 0x2e, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x12, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1a, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2e, 0x5a, 0x2c, + 0x67, 0x69, 0x74, 0x2e, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x63, 0x6f, + 0x6f, 0x70, 0x67, 0x6f, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x64, 0x61, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } -func (m *DeleteSubscriptionRequest) Reset() { *m = DeleteSubscriptionRequest{} } -func (m *DeleteSubscriptionRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteSubscriptionRequest) ProtoMessage() {} -func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{12} +var ( + file_agenda_proto_rawDescOnce sync.Once + file_agenda_proto_rawDescData = file_agenda_proto_rawDesc +) + +func file_agenda_proto_rawDescGZIP() []byte { + file_agenda_proto_rawDescOnce.Do(func() { + file_agenda_proto_rawDescData = protoimpl.X.CompressGZIP(file_agenda_proto_rawDescData) + }) + return file_agenda_proto_rawDescData } -func (m *DeleteSubscriptionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteSubscriptionRequest.Unmarshal(m, b) -} -func (m *DeleteSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteSubscriptionRequest.Marshal(b, m, deterministic) -} -func (m *DeleteSubscriptionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteSubscriptionRequest.Merge(m, src) -} -func (m *DeleteSubscriptionRequest) XXX_Size() int { - return xxx_messageInfo_DeleteSubscriptionRequest.Size(m) -} -func (m *DeleteSubscriptionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteSubscriptionRequest.DiscardUnknown(m) -var file_agenda_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_agenda_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_agenda_proto_goTypes = []interface{}{ - (*CreateEventRequest)(nil), // 0: CreateEventRequest - (*CreateEventResponse)(nil), // 1: CreateEventResponse - (*GetEventRequest)(nil), // 2: GetEventRequest - (*GetEventResponse)(nil), // 3: GetEventResponse - (*DeleteEventRequest)(nil), // 4: DeleteEventRequest - (*DeleteEventResponse)(nil), // 5: DeleteEventResponse - (*GetEventsRequest)(nil), // 6: GetEventsRequest - (*GetEventsResponse)(nil), // 7: GetEventsResponse - (*SubscribeEventRequest)(nil), // 8: SubscribeEventRequest - (*SubscribeEventResponse)(nil), // 9: SubscribeEventResponse - (*UnsubscribeEventRequest)(nil), // 10: UnsubscribeEventRequest - (*UnsubscribeEventResponse)(nil), // 11: UnsubscribeEventResponse - (*UpdateEventRequest)(nil), // 12: UpdateEventRequest - (*UpdateEventResponse)(nil), // 13: UpdateEventResponse - (*Event)(nil), // 14: Event - (*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp - (*_struct.Struct)(nil), // 16: google.protobuf.Struct + (*CreateEventRequest)(nil), // 0: CreateEventRequest + (*CreateEventResponse)(nil), // 1: CreateEventResponse + (*GetEventRequest)(nil), // 2: GetEventRequest + (*GetEventResponse)(nil), // 3: GetEventResponse + (*DeleteEventRequest)(nil), // 4: DeleteEventRequest + (*DeleteEventResponse)(nil), // 5: DeleteEventResponse + (*GetEventsRequest)(nil), // 6: GetEventsRequest + (*GetEventsResponse)(nil), // 7: GetEventsResponse + (*SubscribeEventRequest)(nil), // 8: SubscribeEventRequest + (*SubscribeEventResponse)(nil), // 9: SubscribeEventResponse + (*UnsubscribeEventRequest)(nil), // 10: UnsubscribeEventRequest + (*UnsubscribeEventResponse)(nil), // 11: UnsubscribeEventResponse + (*DeleteSubscriptionRequest)(nil), // 12: DeleteSubscriptionRequest + (*DeleteSubscriptionResponse)(nil), // 13: DeleteSubscriptionResponse + (*UpdateEventRequest)(nil), // 14: UpdateEventRequest + (*UpdateEventResponse)(nil), // 15: UpdateEventResponse + (*Event)(nil), // 16: Event + (*timestamp.Timestamp)(nil), // 17: google.protobuf.Timestamp + (*_struct.Struct)(nil), // 18: google.protobuf.Struct } var file_agenda_proto_depIdxs = []int32{ - 14, // 0: CreateEventRequest.event:type_name -> Event - 14, // 1: CreateEventResponse.event:type_name -> Event - 14, // 2: GetEventResponse.event:type_name -> Event - 15, // 3: GetEventsRequest.mindate:type_name -> google.protobuf.Timestamp - 15, // 4: GetEventsRequest.maxdate:type_name -> google.protobuf.Timestamp - 14, // 5: GetEventsResponse.events:type_name -> Event - 16, // 6: SubscribeEventRequest.data:type_name -> google.protobuf.Struct - 14, // 7: UpdateEventRequest.event:type_name -> Event - 14, // 8: UpdateEventResponse.event:type_name -> Event - 0, // 9: Agenda.CreateEvent:input_type -> CreateEventRequest - 2, // 10: Agenda.GetEvent:input_type -> GetEventRequest - 6, // 11: Agenda.GetEvents:input_type -> GetEventsRequest - 4, // 12: Agenda.DeleteEvent:input_type -> DeleteEventRequest - 12, // 13: Agenda.UpdateEvent:input_type -> UpdateEventRequest - 8, // 14: Agenda.SubscribeEvent:input_type -> SubscribeEventRequest - 10, // 15: Agenda.UnsubscribeEvent:input_type -> UnsubscribeEventRequest - 1, // 16: Agenda.CreateEvent:output_type -> CreateEventResponse - 3, // 17: Agenda.GetEvent:output_type -> GetEventResponse - 7, // 18: Agenda.GetEvents:output_type -> GetEventsResponse - 5, // 19: Agenda.DeleteEvent:output_type -> DeleteEventResponse - 13, // 20: Agenda.UpdateEvent:output_type -> UpdateEventResponse - 9, // 21: Agenda.SubscribeEvent:output_type -> SubscribeEventResponse - 11, // 22: Agenda.UnsubscribeEvent:output_type -> UnsubscribeEventResponse - 16, // [16:23] is the sub-list for method output_type - 9, // [9:16] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 16, // 0: CreateEventRequest.event:type_name -> Event + 16, // 1: CreateEventResponse.event:type_name -> Event + 16, // 2: GetEventResponse.event:type_name -> Event + 17, // 3: GetEventsRequest.mindate:type_name -> google.protobuf.Timestamp + 17, // 4: GetEventsRequest.maxdate:type_name -> google.protobuf.Timestamp + 16, // 5: GetEventsResponse.events:type_name -> Event + 18, // 6: SubscribeEventRequest.data:type_name -> google.protobuf.Struct + 18, // 7: DeleteSubscriptionRequest.data:type_name -> google.protobuf.Struct + 16, // 8: UpdateEventRequest.event:type_name -> Event + 16, // 9: UpdateEventResponse.event:type_name -> Event + 0, // 10: Agenda.CreateEvent:input_type -> CreateEventRequest + 2, // 11: Agenda.GetEvent:input_type -> GetEventRequest + 6, // 12: Agenda.GetEvents:input_type -> GetEventsRequest + 4, // 13: Agenda.DeleteEvent:input_type -> DeleteEventRequest + 14, // 14: Agenda.UpdateEvent:input_type -> UpdateEventRequest + 8, // 15: Agenda.SubscribeEvent:input_type -> SubscribeEventRequest + 10, // 16: Agenda.UnsubscribeEvent:input_type -> UnsubscribeEventRequest + 12, // 17: Agenda.DeleteSubscription:input_type -> DeleteSubscriptionRequest + 1, // 18: Agenda.CreateEvent:output_type -> CreateEventResponse + 3, // 19: Agenda.GetEvent:output_type -> GetEventResponse + 7, // 20: Agenda.GetEvents:output_type -> GetEventsResponse + 5, // 21: Agenda.DeleteEvent:output_type -> DeleteEventResponse + 15, // 22: Agenda.UpdateEvent:output_type -> UpdateEventResponse + 9, // 23: Agenda.SubscribeEvent:output_type -> SubscribeEventResponse + 11, // 24: Agenda.UnsubscribeEvent:output_type -> UnsubscribeEventResponse + 13, // 25: Agenda.DeleteSubscription:output_type -> DeleteSubscriptionResponse + 18, // [18:26] is the sub-list for method output_type + 10, // [10:18] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } -var xxx_messageInfo_DeleteSubscriptionRequest proto.InternalMessageInfo - -func (m *DeleteSubscriptionRequest) GetSubscriber() string { - if m != nil { - return m.Subscriber +func init() { file_agenda_proto_init() } +func file_agenda_proto_init() { + if File_agenda_proto != nil { + return } - return "" -} - -func (m *DeleteSubscriptionRequest) GetEventid() string { - if m != nil { - return m.Eventid - } - return "" -} - -func (m *DeleteSubscriptionRequest) GetData() *structpb.Struct { - if m != nil { - return m.Data - } - return nil -} - -type DeleteSubscriptionResponse struct { - Ok bool `protobuf:"varint,41,opt,name=ok,proto3" json:"ok,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteSubscriptionResponse) Reset() { *m = DeleteSubscriptionResponse{} } -func (m *DeleteSubscriptionResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteSubscriptionResponse) ProtoMessage() {} -func (*DeleteSubscriptionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2c165b8e4ed40226, []int{13} -} - -func (m *DeleteSubscriptionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteSubscriptionResponse.Unmarshal(m, b) -} -func (m *DeleteSubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteSubscriptionResponse.Marshal(b, m, deterministic) -} -func (m *DeleteSubscriptionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteSubscriptionResponse.Merge(m, src) -} -func (m *DeleteSubscriptionResponse) XXX_Size() int { - return xxx_messageInfo_DeleteSubscriptionResponse.Size(m) -} -func (m *DeleteSubscriptionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteSubscriptionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteSubscriptionResponse proto.InternalMessageInfo - -func (m *DeleteSubscriptionResponse) GetOk() bool { - if m != nil { - return m.Ok - } - return false -} - -func init() { - proto.RegisterType((*CreateEventRequest)(nil), "CreateEventRequest") - proto.RegisterType((*CreateEventResponse)(nil), "CreateEventResponse") - proto.RegisterType((*GetEventRequest)(nil), "GetEventRequest") - proto.RegisterType((*GetEventResponse)(nil), "GetEventResponse") - proto.RegisterType((*DeleteEventRequest)(nil), "DeleteEventRequest") - proto.RegisterType((*DeleteEventResponse)(nil), "DeleteEventResponse") - proto.RegisterType((*GetEventsRequest)(nil), "GetEventsRequest") - proto.RegisterType((*GetEventsResponse)(nil), "GetEventsResponse") - proto.RegisterType((*SubscribeEventRequest)(nil), "SubscribeEventRequest") - proto.RegisterType((*SubscribeEventResponse)(nil), "SubscribeEventResponse") - proto.RegisterType((*UnsubscribeEventRequest)(nil), "UnsubscribeEventRequest") - proto.RegisterType((*UnsubscribeEventResponse)(nil), "UnsubscribeEventResponse") - proto.RegisterType((*DeleteSubscriptionRequest)(nil), "DeleteSubscriptionRequest") - proto.RegisterType((*DeleteSubscriptionResponse)(nil), "DeleteSubscriptionResponse") -} - -func init() { - proto.RegisterFile("agenda.proto", fileDescriptor_2c165b8e4ed40226) -} - -var fileDescriptor_2c165b8e4ed40226 = []byte{ - // 588 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x41, 0x73, 0xd2, 0x40, - 0x18, 0x4d, 0xa0, 0xa5, 0xed, 0x07, 0x22, 0x5d, 0x28, 0x6c, 0x63, 0xa5, 0xe9, 0x8e, 0x8e, 0xa8, - 0x75, 0x51, 0xe8, 0xc9, 0x9b, 0x56, 0xc7, 0xf1, 0xe4, 0x4c, 0xd0, 0x8b, 0xb7, 0x85, 0x6c, 0x33, - 0x99, 0x42, 0x36, 0x66, 0x17, 0xc7, 0x93, 0x07, 0x7f, 0x88, 0x3f, 0xc8, 0x5f, 0xe5, 0x74, 0x93, - 0x40, 0x12, 0x42, 0x87, 0x1b, 0xfb, 0xed, 0xfb, 0xbe, 0x7d, 0xbc, 0x7d, 0x6f, 0x03, 0x0d, 0xe6, - 0xf1, 0xc0, 0x65, 0x34, 0x8c, 0x84, 0x12, 0xd6, 0xb9, 0x27, 0x84, 0x37, 0xe7, 0x43, 0xbd, 0x9a, - 0x2e, 0x6f, 0x86, 0xca, 0x5f, 0x70, 0xa9, 0xd8, 0x22, 0x4c, 0x00, 0x67, 0x45, 0x80, 0x54, 0xd1, - 0x72, 0xa6, 0x92, 0xdd, 0x06, 0xff, 0xc9, 0x03, 0x25, 0xe3, 0x15, 0x19, 0x01, 0xba, 0x8e, 0x38, - 0x53, 0xfc, 0xe3, 0x5d, 0xd5, 0xe1, 0x3f, 0x96, 0x5c, 0x2a, 0x74, 0x06, 0xfb, 0x1a, 0x85, 0x4d, - 0xdb, 0x1c, 0xd4, 0x47, 0x35, 0x1a, 0xef, 0xc6, 0x45, 0x32, 0x86, 0x76, 0xae, 0x47, 0x86, 0x22, - 0x90, 0x7c, 0xdd, 0x54, 0x29, 0x6b, 0xba, 0x80, 0x87, 0x9f, 0xb8, 0xca, 0x9d, 0xd2, 0x84, 0x8a, - 0xef, 0xe2, 0xaa, 0x6d, 0x0e, 0x8e, 0x9c, 0x8a, 0xef, 0x92, 0xd7, 0xd0, 0x5a, 0x43, 0x8a, 0x43, - 0xf7, 0xca, 0x86, 0x3e, 0x01, 0xf4, 0x81, 0xcf, 0x79, 0x81, 0x7d, 0x3c, 0x77, 0x7f, 0x35, 0xf7, - 0x29, 0xb4, 0x73, 0xa8, 0x64, 0x74, 0x13, 0x2a, 0xe2, 0x16, 0xd7, 0x6c, 0x73, 0x70, 0xe8, 0x54, - 0xc4, 0x2d, 0xf9, 0x6b, 0xae, 0xcf, 0x97, 0xe9, 0xac, 0x3e, 0x40, 0xc0, 0x16, 0x5c, 0x86, 0x6c, - 0xc6, 0x25, 0x06, 0xbb, 0x3a, 0x38, 0x72, 0x32, 0x15, 0x74, 0x05, 0x07, 0x0b, 0x3f, 0x70, 0x99, - 0xe2, 0xb8, 0xae, 0x19, 0x5a, 0x34, 0x56, 0x9f, 0xa6, 0xea, 0xd3, 0xaf, 0xe9, 0xf5, 0x38, 0x29, - 0x54, 0x77, 0xb1, 0x5f, 0xba, 0xab, 0xb1, 0x43, 0x57, 0x0c, 0x25, 0x63, 0x38, 0xce, 0xf0, 0x4b, - 0xfe, 0x45, 0x1f, 0x6a, 0xf1, 0x85, 0xe2, 0x07, 0x76, 0x35, 0xa3, 0x50, 0x52, 0x25, 0xbf, 0xe1, - 0x64, 0xb2, 0x9c, 0xca, 0x59, 0xe4, 0x4f, 0xf3, 0x2a, 0xf5, 0x01, 0x64, 0xba, 0x11, 0xe1, 0x8e, - 0x56, 0x2b, 0x53, 0x41, 0x18, 0x0e, 0xf4, 0x08, 0xdf, 0xc5, 0x27, 0x7a, 0x33, 0x5d, 0xa2, 0x97, - 0xb0, 0xe7, 0x32, 0xc5, 0x70, 0x57, 0x53, 0xef, 0x6d, 0x50, 0x9f, 0x68, 0xbb, 0x39, 0x1a, 0x44, - 0x06, 0xd0, 0x2d, 0x9e, 0x9f, 0xd3, 0xff, 0xf1, 0x4a, 0xff, 0x09, 0xf4, 0xbe, 0x05, 0x72, 0x07, - 0xae, 0xfd, 0xfb, 0xb8, 0x9e, 0xe7, 0xb8, 0x92, 0x17, 0x80, 0x37, 0x87, 0xe6, 0x08, 0x3c, 0x5b, - 0x11, 0xf8, 0x63, 0xc2, 0x69, 0x6c, 0x94, 0x84, 0x71, 0xa8, 0x7c, 0x11, 0x94, 0x73, 0xb0, 0xef, - 0xe3, 0x70, 0x51, 0xae, 0x17, 0xd9, 0x45, 0xaf, 0x4b, 0xb0, 0xca, 0x38, 0xe4, 0x28, 0x3f, 0x4f, - 0x29, 0x8f, 0xfe, 0x55, 0xa1, 0xf6, 0x4e, 0x3f, 0x0e, 0xe8, 0x2d, 0xd4, 0x33, 0xa9, 0x44, 0x6d, - 0xba, 0x99, 0x6b, 0xab, 0x43, 0x4b, 0x82, 0x4b, 0x0c, 0xf4, 0x06, 0x0e, 0x53, 0x67, 0xa1, 0x16, - 0x2d, 0xe4, 0xd4, 0x3a, 0xa6, 0xc5, 0x58, 0x12, 0x03, 0x5d, 0xc1, 0xd1, 0xca, 0x8c, 0x68, 0x8d, - 0x48, 0x83, 0x63, 0x21, 0xba, 0xe1, 0x55, 0x62, 0xdc, 0x91, 0xcc, 0x44, 0x11, 0xb5, 0xe9, 0x66, - 0x7c, 0xad, 0x0e, 0x2d, 0x49, 0x2b, 0x31, 0xd0, 0x35, 0x34, 0xf3, 0x4e, 0x42, 0x5d, 0x5a, 0x6a, - 0x6d, 0xab, 0x47, 0xcb, 0x2d, 0x47, 0x0c, 0xf4, 0x19, 0x5a, 0x45, 0x3f, 0x20, 0x4c, 0xb7, 0xf8, - 0xce, 0x3a, 0xa5, 0xdb, 0xcc, 0x43, 0x0c, 0xf4, 0x25, 0x7d, 0x7c, 0xb2, 0x37, 0x85, 0x2c, 0xba, - 0xd5, 0x42, 0xd6, 0x23, 0xba, 0xfd, 0x6a, 0x89, 0xf1, 0x9e, 0x7e, 0xbf, 0xf4, 0x7c, 0x45, 0x67, - 0x42, 0x84, 0x9e, 0xa0, 0xbe, 0x18, 0xc6, 0xbf, 0x5e, 0x85, 0x73, 0xa6, 0x6e, 0x44, 0xb4, 0x18, - 0xc6, 0x9f, 0x81, 0xa1, 0x17, 0x85, 0x33, 0x16, 0xfa, 0xd3, 0x9a, 0x76, 0xd0, 0xf8, 0x7f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x57, 0xd4, 0x2d, 0xc7, 0x1f, 0x06, 0x00, 0x00, file_events_proto_init() if !protoimpl.UnsafeEnabled { file_agenda_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { @@ -1095,7 +1166,7 @@ var fileDescriptor_2c165b8e4ed40226 = []byte{ } } file_agenda_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateEventRequest); i { + switch v := v.(*DeleteSubscriptionRequest); i { case 0: return &v.state case 1: @@ -1107,6 +1178,30 @@ var fileDescriptor_2c165b8e4ed40226 = []byte{ } } file_agenda_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteSubscriptionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agenda_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateEventRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agenda_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateEventResponse); i { case 0: return &v.state @@ -1125,7 +1220,7 @@ var fileDescriptor_2c165b8e4ed40226 = []byte{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_agenda_proto_rawDesc, NumEnums: 0, - NumMessages: 14, + NumMessages: 16, NumExtensions: 0, NumServices: 1, }, diff --git a/grpcapi/agenda.proto b/grpcapi/agenda.proto index d316ccf..029fcfc 100644 --- a/grpcapi/agenda.proto +++ b/grpcapi/agenda.proto @@ -81,10 +81,11 @@ message DeleteSubscriptionRequest { message DeleteSubscriptionResponse { bool ok = 41; +} message UpdateEventRequest { - Event event = 32; + Event event = 52; } message UpdateEventResponse { - Event event = 33; + Event event = 53; } \ No newline at end of file diff --git a/grpcapi/agenda_grpc.pb.go b/grpcapi/agenda_grpc.pb.go index f88a7ac..37a1a03 100644 --- a/grpcapi/agenda_grpc.pb.go +++ b/grpcapi/agenda_grpc.pb.go @@ -1,7 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.12 // - protoc v3.12.4 // source: agenda.proto