You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
520 lines
16 KiB
520 lines
16 KiB
1 year ago
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.30.0
|
||
|
// protoc v3.21.12
|
||
|
// source: okapi-events.proto
|
||
|
|
||
|
package okapi
|
||
|
|
||
|
import (
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
structpb "google.golang.org/protobuf/types/known/structpb"
|
||
|
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)
|
||
|
)
|
||
|
|
||
|
// Should events payloads be documented by for example json schema?
|
||
|
type Event struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||
|
ServiceId string `protobuf:"bytes,3,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
|
||
|
PatientId string `protobuf:"bytes,4,opt,name=patientId,proto3" json:"patientId,omitempty"`
|
||
|
Payload *structpb.Struct `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // string schema = 6; // ? do we need a schema in the event itself
|
||
|
}
|
||
|
|
||
|
func (x *Event) Reset() {
|
||
|
*x = Event{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_okapi_events_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Event) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Event) ProtoMessage() {}
|
||
|
|
||
|
func (x *Event) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_okapi_events_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 Event.ProtoReflect.Descriptor instead.
|
||
|
func (*Event) Descriptor() ([]byte, []int) {
|
||
|
return file_okapi_events_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *Event) GetTimestamp() uint64 {
|
||
|
if x != nil {
|
||
|
return x.Timestamp
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Event) GetType() string {
|
||
|
if x != nil {
|
||
|
return x.Type
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Event) GetServiceId() string {
|
||
|
if x != nil {
|
||
|
return x.ServiceId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Event) GetPatientId() string {
|
||
|
if x != nil {
|
||
|
return x.PatientId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Event) GetPayload() *structpb.Struct {
|
||
|
if x != nil {
|
||
|
return x.Payload
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type Query struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
|
||
|
End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
|
||
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||
|
ServiceId string `protobuf:"bytes,4,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
|
||
|
PatientId string `protobuf:"bytes,5,opt,name=patientId,proto3" json:"patientId,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *Query) Reset() {
|
||
|
*x = Query{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_okapi_events_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Query) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Query) ProtoMessage() {}
|
||
|
|
||
|
func (x *Query) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_okapi_events_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 Query.ProtoReflect.Descriptor instead.
|
||
|
func (*Query) Descriptor() ([]byte, []int) {
|
||
|
return file_okapi_events_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *Query) GetStart() uint64 {
|
||
|
if x != nil {
|
||
|
return x.Start
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Query) GetEnd() uint64 {
|
||
|
if x != nil {
|
||
|
return x.End
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Query) GetType() string {
|
||
|
if x != nil {
|
||
|
return x.Type
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Query) GetServiceId() string {
|
||
|
if x != nil {
|
||
|
return x.ServiceId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Query) GetPatientId() string {
|
||
|
if x != nil {
|
||
|
return x.PatientId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type GetEventsRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
|
||
|
PerPage int32 `protobuf:"varint,3,opt,name=perPage,proto3" json:"perPage,omitempty"`
|
||
|
Query []*Query `protobuf:"bytes,4,rep,name=query,proto3" json:"query,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsRequest) Reset() {
|
||
|
*x = GetEventsRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_okapi_events_proto_msgTypes[2]
|
||
|
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_okapi_events_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 GetEventsRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*GetEventsRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_okapi_events_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsRequest) GetPage() int32 {
|
||
|
if x != nil {
|
||
|
return x.Page
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsRequest) GetPerPage() int32 {
|
||
|
if x != nil {
|
||
|
return x.PerPage
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsRequest) GetQuery() []*Query {
|
||
|
if x != nil {
|
||
|
return x.Query
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type GetEventsResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
|
||
|
PerPage int32 `protobuf:"varint,3,opt,name=perPage,proto3" json:"perPage,omitempty"`
|
||
|
Events []*Event `protobuf:"bytes,4,rep,name=events,proto3" json:"events,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsResponse) Reset() {
|
||
|
*x = GetEventsResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_okapi_events_proto_msgTypes[3]
|
||
|
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_okapi_events_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 GetEventsResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*GetEventsResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_okapi_events_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsResponse) GetPage() int32 {
|
||
|
if x != nil {
|
||
|
return x.Page
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsResponse) GetPerPage() int32 {
|
||
|
if x != nil {
|
||
|
return x.PerPage
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsResponse) GetEvents() []*Event {
|
||
|
if x != nil {
|
||
|
return x.Events
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type GetEventsStreamRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Query []*Query `protobuf:"bytes,2,rep,name=query,proto3" json:"query,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsStreamRequest) Reset() {
|
||
|
*x = GetEventsStreamRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_okapi_events_proto_msgTypes[4]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsStreamRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*GetEventsStreamRequest) ProtoMessage() {}
|
||
|
|
||
|
func (x *GetEventsStreamRequest) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_okapi_events_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 GetEventsStreamRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*GetEventsStreamRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_okapi_events_proto_rawDescGZIP(), []int{4}
|
||
|
}
|
||
|
|
||
|
func (x *GetEventsStreamRequest) GetQuery() []*Query {
|
||
|
if x != nil {
|
||
|
return x.Query
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var File_okapi_events_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_okapi_events_proto_rawDesc = []byte{
|
||
|
0x0a, 0x12, 0x6f, 0x6b, 0x61, 0x70, 0x69, 0x2d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70,
|
||
|
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
|
||
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
|
||
|
0x74, 0x6f, 0x22, 0xa8, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09,
|
||
|
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
|
||
|
0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
|
||
|
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c,
|
||
|
0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||
|
0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09,
|
||
|
0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
|
0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x61,
|
||
|
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x05, 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, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x7f, 0x0a,
|
||
|
0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18,
|
||
|
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03,
|
||
|
0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x12,
|
||
|
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79,
|
||
|
0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18,
|
||
|
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64,
|
||
|
0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x05, 0x20,
|
||
|
0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x5e,
|
||
|
0x0a, 0x10, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||
|
0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||
|
0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65, 0x72, 0x50, 0x61, 0x67,
|
||
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x65, 0x72, 0x50, 0x61, 0x67, 0x65,
|
||
|
0x12, 0x1c, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||
|
0x06, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x61,
|
||
|
0x0a, 0x11, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||
|
0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||
|
0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65, 0x72, 0x50, 0x61,
|
||
|
0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x65, 0x72, 0x50, 0x61, 0x67,
|
||
|
0x65, 0x12, 0x1e, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
|
||
|
0x0b, 0x32, 0x06, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74,
|
||
|
0x73, 0x22, 0x36, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x74,
|
||
|
0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x05, 0x71,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x51, 0x75, 0x65,
|
||
|
0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x1a, 0x5a, 0x18, 0x77, 0x68, 0x69,
|
||
|
0x74, 0x65, 0x62, 0x6f, 0x78, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x2e, 0x6e, 0x6c, 0x2f,
|
||
|
0x6f, 0x6b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_okapi_events_proto_rawDescOnce sync.Once
|
||
|
file_okapi_events_proto_rawDescData = file_okapi_events_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_okapi_events_proto_rawDescGZIP() []byte {
|
||
|
file_okapi_events_proto_rawDescOnce.Do(func() {
|
||
|
file_okapi_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_okapi_events_proto_rawDescData)
|
||
|
})
|
||
|
return file_okapi_events_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_okapi_events_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||
|
var file_okapi_events_proto_goTypes = []interface{}{
|
||
|
(*Event)(nil), // 0: Event
|
||
|
(*Query)(nil), // 1: Query
|
||
|
(*GetEventsRequest)(nil), // 2: GetEventsRequest
|
||
|
(*GetEventsResponse)(nil), // 3: GetEventsResponse
|
||
|
(*GetEventsStreamRequest)(nil), // 4: GetEventsStreamRequest
|
||
|
(*structpb.Struct)(nil), // 5: google.protobuf.Struct
|
||
|
}
|
||
|
var file_okapi_events_proto_depIdxs = []int32{
|
||
|
5, // 0: Event.payload:type_name -> google.protobuf.Struct
|
||
|
1, // 1: GetEventsRequest.query:type_name -> Query
|
||
|
0, // 2: GetEventsResponse.events:type_name -> Event
|
||
|
1, // 3: GetEventsStreamRequest.query:type_name -> Query
|
||
|
4, // [4:4] is the sub-list for method output_type
|
||
|
4, // [4:4] is the sub-list for method input_type
|
||
|
4, // [4:4] is the sub-list for extension type_name
|
||
|
4, // [4:4] is the sub-list for extension extendee
|
||
|
0, // [0:4] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_okapi_events_proto_init() }
|
||
|
func file_okapi_events_proto_init() {
|
||
|
if File_okapi_events_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_okapi_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Event); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_okapi_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Query); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_okapi_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*GetEventsRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_okapi_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*GetEventsResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_okapi_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*GetEventsStreamRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_okapi_events_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 5,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 0,
|
||
|
},
|
||
|
GoTypes: file_okapi_events_proto_goTypes,
|
||
|
DependencyIndexes: file_okapi_events_proto_depIdxs,
|
||
|
MessageInfos: file_okapi_events_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_okapi_events_proto = out.File
|
||
|
file_okapi_events_proto_rawDesc = nil
|
||
|
file_okapi_events_proto_goTypes = nil
|
||
|
file_okapi_events_proto_depIdxs = nil
|
||
|
}
|