// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.30.0 // protoc v3.21.12 // source: okapi-errors.proto package okapi import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type OKAPIErrorCode int32 const ( OKAPIErrorCode_None OKAPIErrorCode = 0 // Invalide configuratie voor de gekozen methode OKAPIErrorCode_InvalidXISAuthConfiguration OKAPIErrorCode = 1 // Onbekende reference meegegeven OKAPIErrorCode_UnkownReference OKAPIErrorCode = 2 // Invalide autorisatietoken voor deze reference OKAPIErrorCode_InvalidAuthorizationToken OKAPIErrorCode = 3 // Onbekende service OKAPIErrorCode_UnknownService OKAPIErrorCode = 4 // Onbekende protocol OKAPIErrorCode_UnknownProtocol OKAPIErrorCode = 5 // Invalide procotol configuratie voor het aangegeven protocol OKAPIErrorCode_InvalidProcotolConfig OKAPIErrorCode = 6 // Authenticatie methode onbekend OKAPIErrorCode_UnknownAuthMethod OKAPIErrorCode = 7 // Invalide authorisatie configuratie voor het aangegeven protocol OKAPIErrorCode_InvalidProcotolAuthConfig OKAPIErrorCode = 8 // Er zijn niet genoeg events om deze pagina te bereiken OKAPIErrorCode_InvalidPage OKAPIErrorCode = 9 // Er wordt geprobeerd een patient af te melden die niet is ingeschreven OKAPIErrorCode_AlreadyUnsubscribed OKAPIErrorCode = 10 // De service is al actief OKAPIErrorCode_ServiceAlreadyActivated OKAPIErrorCode = 11 // De service is niet actief OKAPIErrorCode_ServiceNotActive OKAPIErrorCode = 12 // Een generieke error code die terug wordt gegeven met en omschrijving die // meer informatie geeft over wat er fout is gegaan OKAPIErrorCode_GenericException OKAPIErrorCode = 999 ) // Enum value maps for OKAPIErrorCode. var ( OKAPIErrorCode_name = map[int32]string{ 0: "None", 1: "InvalidXISAuthConfiguration", 2: "UnkownReference", 3: "InvalidAuthorizationToken", 4: "UnknownService", 5: "UnknownProtocol", 6: "InvalidProcotolConfig", 7: "UnknownAuthMethod", 8: "InvalidProcotolAuthConfig", 9: "InvalidPage", 10: "AlreadyUnsubscribed", 11: "ServiceAlreadyActivated", 12: "ServiceNotActive", 999: "GenericException", } OKAPIErrorCode_value = map[string]int32{ "None": 0, "InvalidXISAuthConfiguration": 1, "UnkownReference": 2, "InvalidAuthorizationToken": 3, "UnknownService": 4, "UnknownProtocol": 5, "InvalidProcotolConfig": 6, "UnknownAuthMethod": 7, "InvalidProcotolAuthConfig": 8, "InvalidPage": 9, "AlreadyUnsubscribed": 10, "ServiceAlreadyActivated": 11, "ServiceNotActive": 12, "GenericException": 999, } ) func (x OKAPIErrorCode) Enum() *OKAPIErrorCode { p := new(OKAPIErrorCode) *p = x return p } func (x OKAPIErrorCode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (OKAPIErrorCode) Descriptor() protoreflect.EnumDescriptor { return file_okapi_errors_proto_enumTypes[0].Descriptor() } func (OKAPIErrorCode) Type() protoreflect.EnumType { return &file_okapi_errors_proto_enumTypes[0] } func (x OKAPIErrorCode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use OKAPIErrorCode.Descriptor instead. func (OKAPIErrorCode) EnumDescriptor() ([]byte, []int) { return file_okapi_errors_proto_rawDescGZIP(), []int{0} } type OKAPIError struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code OKAPIErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=OKAPIErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } func (x *OKAPIError) Reset() { *x = OKAPIError{} if protoimpl.UnsafeEnabled { mi := &file_okapi_errors_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *OKAPIError) String() string { return protoimpl.X.MessageStringOf(x) } func (*OKAPIError) ProtoMessage() {} func (x *OKAPIError) ProtoReflect() protoreflect.Message { mi := &file_okapi_errors_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 OKAPIError.ProtoReflect.Descriptor instead. func (*OKAPIError) Descriptor() ([]byte, []int) { return file_okapi_errors_proto_rawDescGZIP(), []int{0} } func (x *OKAPIError) GetCode() OKAPIErrorCode { if x != nil { return x.Code } return OKAPIErrorCode_None } func (x *OKAPIError) GetMessage() string { if x != nil { return x.Message } return "" } var File_okapi_errors_proto protoreflect.FileDescriptor var file_okapi_errors_proto_rawDesc = []byte{ 0x0a, 0x12, 0x6f, 0x6b, 0x61, 0x70, 0x69, 0x2d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x0a, 0x4f, 0x4b, 0x41, 0x50, 0x49, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x4f, 0x4b, 0x41, 0x50, 0x49, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0xdd, 0x02, 0x0a, 0x0e, 0x4f, 0x4b, 0x41, 0x50, 0x49, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x58, 0x49, 0x53, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x6e, 0x6b, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x72, 0x6f, 0x63, 0x6f, 0x74, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x10, 0x07, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x72, 0x6f, 0x63, 0x6f, 0x74, 0x6f, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x61, 0x67, 0x65, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x64, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x10, 0x0b, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x10, 0x0c, 0x12, 0x15, 0x0a, 0x10, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0xe7, 0x07, 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_errors_proto_rawDescOnce sync.Once file_okapi_errors_proto_rawDescData = file_okapi_errors_proto_rawDesc ) func file_okapi_errors_proto_rawDescGZIP() []byte { file_okapi_errors_proto_rawDescOnce.Do(func() { file_okapi_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_okapi_errors_proto_rawDescData) }) return file_okapi_errors_proto_rawDescData } var file_okapi_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_okapi_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_okapi_errors_proto_goTypes = []interface{}{ (OKAPIErrorCode)(0), // 0: OKAPIErrorCode (*OKAPIError)(nil), // 1: OKAPIError } var file_okapi_errors_proto_depIdxs = []int32{ 0, // 0: OKAPIError.code:type_name -> OKAPIErrorCode 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_okapi_errors_proto_init() } func file_okapi_errors_proto_init() { if File_okapi_errors_proto != nil { return } if !protoimpl.UnsafeEnabled { file_okapi_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OKAPIError); 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_errors_proto_rawDesc, NumEnums: 1, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, GoTypes: file_okapi_errors_proto_goTypes, DependencyIndexes: file_okapi_errors_proto_depIdxs, EnumInfos: file_okapi_errors_proto_enumTypes, MessageInfos: file_okapi_errors_proto_msgTypes, }.Build() File_okapi_errors_proto = out.File file_okapi_errors_proto_rawDesc = nil file_okapi_errors_proto_goTypes = nil file_okapi_errors_proto_depIdxs = nil }