Loading rtapi/realtime.pb.go 0 → 100644 +273 −0 Original line number Diff line number Diff line // Code generated by protoc-gen-go. DO NOT EDIT. // source: rtapi/realtime.proto /* Package rtapi is a generated protocol buffer package. It is generated from these files: rtapi/realtime.proto It has these top-level messages: Envelope Error */ package rtapi import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import nakama_api "github.com/heroiclabs/nakama/api" // 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.ProtoPackageIsVersion2 // please upgrade the proto package // The selection of possible error codes. type Error_Code int32 const ( // An unexpected result from the server. Error_RUNTIME_EXCEPTION Error_Code = 0 // The server received a message which is not recognised. Error_UNRECOGNIZED_PAYLOAD Error_Code = 1 // A message was expected but contains no content. Error_MISSING_PAYLOAD Error_Code = 2 // Fields in the message have an invalid format. Error_BAD_INPUT Error_Code = 3 // The match id was not found. Error_MATCH_NOT_FOUND Error_Code = 4 // The runtime function does not exist on the server. Error_RUNTIME_FUNCTION_NOT_FOUND Error_Code = 5 // The runtime function executed with an error. Error_RUNTIME_FUNCTION_EXCEPTION Error_Code = 6 ) var Error_Code_name = map[int32]string{ 0: "RUNTIME_EXCEPTION", 1: "UNRECOGNIZED_PAYLOAD", 2: "MISSING_PAYLOAD", 3: "BAD_INPUT", 4: "MATCH_NOT_FOUND", 5: "RUNTIME_FUNCTION_NOT_FOUND", 6: "RUNTIME_FUNCTION_EXCEPTION", } var Error_Code_value = map[string]int32{ "RUNTIME_EXCEPTION": 0, "UNRECOGNIZED_PAYLOAD": 1, "MISSING_PAYLOAD": 2, "BAD_INPUT": 3, "MATCH_NOT_FOUND": 4, "RUNTIME_FUNCTION_NOT_FOUND": 5, "RUNTIME_FUNCTION_EXCEPTION": 6, } func (x Error_Code) String() string { return proto.EnumName(Error_Code_name, int32(x)) } func (Error_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } // * // An envelope for a realtime message. type Envelope struct { // Types that are valid to be assigned to Message: // *Envelope_Error // *Envelope_ChannelId Message isEnvelope_Message `protobuf_oneof:"message"` } func (m *Envelope) Reset() { *m = Envelope{} } func (m *Envelope) String() string { return proto.CompactTextString(m) } func (*Envelope) ProtoMessage() {} func (*Envelope) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type isEnvelope_Message interface { isEnvelope_Message() } type Envelope_Error struct { Error *Error `protobuf:"bytes,1,opt,name=error,oneof"` } type Envelope_ChannelId struct { ChannelId *nakama_api.ChannelId `protobuf:"bytes,2,opt,name=channel_id,json=channelId,oneof"` } func (*Envelope_Error) isEnvelope_Message() {} func (*Envelope_ChannelId) isEnvelope_Message() {} func (m *Envelope) GetMessage() isEnvelope_Message { if m != nil { return m.Message } return nil } func (m *Envelope) GetError() *Error { if x, ok := m.GetMessage().(*Envelope_Error); ok { return x.Error } return nil } func (m *Envelope) GetChannelId() *nakama_api.ChannelId { if x, ok := m.GetMessage().(*Envelope_ChannelId); ok { return x.ChannelId } return nil } // XXX_OneofFuncs is for the internal use of the proto package. func (*Envelope) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Envelope_OneofMarshaler, _Envelope_OneofUnmarshaler, _Envelope_OneofSizer, []interface{}{ (*Envelope_Error)(nil), (*Envelope_ChannelId)(nil), } } func _Envelope_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*Envelope) // message switch x := m.Message.(type) { case *Envelope_Error: b.EncodeVarint(1<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Error); err != nil { return err } case *Envelope_ChannelId: b.EncodeVarint(2<<3 | proto.WireBytes) if err := b.EncodeMessage(x.ChannelId); err != nil { return err } case nil: default: return fmt.Errorf("Envelope.Message has unexpected type %T", x) } return nil } func _Envelope_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Envelope) switch tag { case 1: // message.error if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Error) err := b.DecodeMessage(msg) m.Message = &Envelope_Error{msg} return true, err case 2: // message.channel_id if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(nakama_api.ChannelId) err := b.DecodeMessage(msg) m.Message = &Envelope_ChannelId{msg} return true, err default: return false, nil } } func _Envelope_OneofSizer(msg proto.Message) (n int) { m := msg.(*Envelope) // message switch x := m.Message.(type) { case *Envelope_Error: s := proto.Size(x.Error) n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *Envelope_ChannelId: s := proto.Size(x.ChannelId) n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) } return n } // * // A logical error which may occur on the server. type Error struct { // The error code which should be one of "Error.Code" enums. Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` // A message in English to help developers debug the response. Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` // Additional error details which may be different for each response. Context map[string]string `protobuf:"bytes,3,rep,name=context" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` } func (m *Error) Reset() { *m = Error{} } func (m *Error) String() string { return proto.CompactTextString(m) } func (*Error) ProtoMessage() {} func (*Error) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *Error) GetCode() int32 { if m != nil { return m.Code } return 0 } func (m *Error) GetMessage() string { if m != nil { return m.Message } return "" } func (m *Error) GetContext() map[string]string { if m != nil { return m.Context } return nil } func init() { proto.RegisterType((*Envelope)(nil), "nakama.realtime.Envelope") proto.RegisterType((*Error)(nil), "nakama.realtime.Error") proto.RegisterEnum("nakama.realtime.Error_Code", Error_Code_name, Error_Code_value) } func init() { proto.RegisterFile("rtapi/realtime.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ // 430 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x52, 0x4f, 0x6b, 0xdb, 0x30, 0x14, 0x8f, 0x9d, 0x38, 0x9d, 0x5f, 0xb7, 0xd5, 0xd3, 0x92, 0x61, 0x72, 0x18, 0x25, 0xbb, 0x94, 0x1d, 0x1c, 0xe8, 0x60, 0x8c, 0xc2, 0x60, 0xb1, 0xa3, 0x36, 0x66, 0xab, 0x6c, 0x54, 0x1b, 0xb6, 0x5e, 0x8c, 0xe2, 0x88, 0xc6, 0xd4, 0xb6, 0x8c, 0xe2, 0x96, 0xf5, 0xb0, 0x2f, 0xb3, 0xe3, 0x4e, 0xfb, 0x4e, 0xfb, 0x22, 0xc3, 0x72, 0xdd, 0x96, 0xd2, 0x93, 0xf4, 0xde, 0xef, 0xdf, 0xe3, 0xf1, 0x60, 0x24, 0x6b, 0x56, 0x65, 0x33, 0xc9, 0x59, 0x5e, 0x67, 0x05, 0x77, 0x2a, 0x29, 0x6a, 0x81, 0xf6, 0x4a, 0x76, 0xc9, 0x0a, 0xe6, 0x74, 0xed, 0xc9, 0xfb, 0x8b, 0xac, 0xde, 0x5c, 0xad, 0x9c, 0x54, 0x14, 0xb3, 0x0d, 0x97, 0x22, 0x4b, 0x73, 0xb6, 0xda, 0xce, 0x5a, 0xda, 0xac, 0x71, 0x60, 0x55, 0xd6, 0x8a, 0xa7, 0xbf, 0xe0, 0x19, 0x2e, 0xaf, 0x79, 0x2e, 0x2a, 0x8e, 0x1c, 0x30, 0xb8, 0x94, 0x42, 0xda, 0xda, 0xbe, 0x76, 0xb0, 0x7b, 0xf8, 0xc6, 0x79, 0x64, 0xec, 0xe0, 0x06, 0x5d, 0xf6, 0x68, 0x4b, 0x43, 0x1f, 0x01, 0xd2, 0x0d, 0x2b, 0x4b, 0x9e, 0x27, 0xd9,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4c, 0x16, 0xd6, 0x00, 0xbd, 0x85, 0x49, 0x97, 0x74, 0x1c, 0x13, 0xaf, 0x09, 0x7a, 0x80, 0x1b, 0x4f, 0xe2, 0xf7, 0x23, 0x0d, 0xdd, 0x2f, 0x30, 0x4e, 0x45, 0xe1, 0xdc, 0xdf, 0xc2, 0xed, 0xb2, 0xdc, 0x97, 0x44, 0xbd, 0xf4, 0x76, 0x67, 0xa1, 0x76, 0x6e, 0xa8, 0x13, 0xfb, 0xad, 0x0f, 0xc8, 0xd7, 0xd0, 0xfd, 0xa3, 0x0f, 0x5b, 0xc2, 0x6a, 0xa8, 0xae, 0xe5, 0xc3, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x0e, 0xeb, 0xda, 0x82, 0x02, 0x00, 0x00, } rtapi/realtime.proto 0 → 100644 +74 −0 Original line number Diff line number Diff line // Copyright 2018 The Nakama Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * The realtime protocol for Nakama server. */ syntax = "proto3"; package nakama.realtime; import "github.com/heroiclabs/nakama/api/api.proto"; option go_package = "rtapi"; option java_multiple_files = true; option java_outer_classname = "NakamaRealtime"; option java_package = "com.heroiclabs.nakama"; option csharp_namespace = "Nakama"; option objc_class_prefix = "NKPB"; /** * An envelope for a realtime message. */ message Envelope { oneof message { // Describes an error which occurred on the server. Error error = 1; nakama.api.ChannelId channel_id = 2; // TODO(zyro): replace with real imported message. } } /** * A logical error which may occur on the server. */ message Error { // The selection of possible error codes. enum Code { // An unexpected result from the server. RUNTIME_EXCEPTION = 0; // The server received a message which is not recognised. UNRECOGNIZED_PAYLOAD = 1; // A message was expected but contains no content. MISSING_PAYLOAD = 2; // Fields in the message have an invalid format. BAD_INPUT = 3; // The match id was not found. MATCH_NOT_FOUND = 4; // The runtime function does not exist on the server. RUNTIME_FUNCTION_NOT_FOUND = 5; // The runtime function executed with an error. RUNTIME_FUNCTION_EXCEPTION = 6; } // The error code which should be one of "Error.Code" enums. int32 code = 1; // A message in English to help developers debug the response. string message = 2; // Additional error details which may be different for each response. map<string, string> context = 3; } Loading
rtapi/realtime.pb.go 0 → 100644 +273 −0 Original line number Diff line number Diff line // Code generated by protoc-gen-go. DO NOT EDIT. // source: rtapi/realtime.proto /* Package rtapi is a generated protocol buffer package. It is generated from these files: rtapi/realtime.proto It has these top-level messages: Envelope Error */ package rtapi import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import nakama_api "github.com/heroiclabs/nakama/api" // 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.ProtoPackageIsVersion2 // please upgrade the proto package // The selection of possible error codes. type Error_Code int32 const ( // An unexpected result from the server. Error_RUNTIME_EXCEPTION Error_Code = 0 // The server received a message which is not recognised. Error_UNRECOGNIZED_PAYLOAD Error_Code = 1 // A message was expected but contains no content. Error_MISSING_PAYLOAD Error_Code = 2 // Fields in the message have an invalid format. Error_BAD_INPUT Error_Code = 3 // The match id was not found. Error_MATCH_NOT_FOUND Error_Code = 4 // The runtime function does not exist on the server. Error_RUNTIME_FUNCTION_NOT_FOUND Error_Code = 5 // The runtime function executed with an error. Error_RUNTIME_FUNCTION_EXCEPTION Error_Code = 6 ) var Error_Code_name = map[int32]string{ 0: "RUNTIME_EXCEPTION", 1: "UNRECOGNIZED_PAYLOAD", 2: "MISSING_PAYLOAD", 3: "BAD_INPUT", 4: "MATCH_NOT_FOUND", 5: "RUNTIME_FUNCTION_NOT_FOUND", 6: "RUNTIME_FUNCTION_EXCEPTION", } var Error_Code_value = map[string]int32{ "RUNTIME_EXCEPTION": 0, "UNRECOGNIZED_PAYLOAD": 1, "MISSING_PAYLOAD": 2, "BAD_INPUT": 3, "MATCH_NOT_FOUND": 4, "RUNTIME_FUNCTION_NOT_FOUND": 5, "RUNTIME_FUNCTION_EXCEPTION": 6, } func (x Error_Code) String() string { return proto.EnumName(Error_Code_name, int32(x)) } func (Error_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } // * // An envelope for a realtime message. type Envelope struct { // Types that are valid to be assigned to Message: // *Envelope_Error // *Envelope_ChannelId Message isEnvelope_Message `protobuf_oneof:"message"` } func (m *Envelope) Reset() { *m = Envelope{} } func (m *Envelope) String() string { return proto.CompactTextString(m) } func (*Envelope) ProtoMessage() {} func (*Envelope) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type isEnvelope_Message interface { isEnvelope_Message() } type Envelope_Error struct { Error *Error `protobuf:"bytes,1,opt,name=error,oneof"` } type Envelope_ChannelId struct { ChannelId *nakama_api.ChannelId `protobuf:"bytes,2,opt,name=channel_id,json=channelId,oneof"` } func (*Envelope_Error) isEnvelope_Message() {} func (*Envelope_ChannelId) isEnvelope_Message() {} func (m *Envelope) GetMessage() isEnvelope_Message { if m != nil { return m.Message } return nil } func (m *Envelope) GetError() *Error { if x, ok := m.GetMessage().(*Envelope_Error); ok { return x.Error } return nil } func (m *Envelope) GetChannelId() *nakama_api.ChannelId { if x, ok := m.GetMessage().(*Envelope_ChannelId); ok { return x.ChannelId } return nil } // XXX_OneofFuncs is for the internal use of the proto package. func (*Envelope) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Envelope_OneofMarshaler, _Envelope_OneofUnmarshaler, _Envelope_OneofSizer, []interface{}{ (*Envelope_Error)(nil), (*Envelope_ChannelId)(nil), } } func _Envelope_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*Envelope) // message switch x := m.Message.(type) { case *Envelope_Error: b.EncodeVarint(1<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Error); err != nil { return err } case *Envelope_ChannelId: b.EncodeVarint(2<<3 | proto.WireBytes) if err := b.EncodeMessage(x.ChannelId); err != nil { return err } case nil: default: return fmt.Errorf("Envelope.Message has unexpected type %T", x) } return nil } func _Envelope_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Envelope) switch tag { case 1: // message.error if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Error) err := b.DecodeMessage(msg) m.Message = &Envelope_Error{msg} return true, err case 2: // message.channel_id if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(nakama_api.ChannelId) err := b.DecodeMessage(msg) m.Message = &Envelope_ChannelId{msg} return true, err default: return false, nil } } func _Envelope_OneofSizer(msg proto.Message) (n int) { m := msg.(*Envelope) // message switch x := m.Message.(type) { case *Envelope_Error: s := proto.Size(x.Error) n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *Envelope_ChannelId: s := proto.Size(x.ChannelId) n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) } return n } // * // A logical error which may occur on the server. type Error struct { // The error code which should be one of "Error.Code" enums. Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` // A message in English to help developers debug the response. Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` // Additional error details which may be different for each response. Context map[string]string `protobuf:"bytes,3,rep,name=context" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` } func (m *Error) Reset() { *m = Error{} } func (m *Error) String() string { return proto.CompactTextString(m) } func (*Error) ProtoMessage() {} func (*Error) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *Error) GetCode() int32 { if m != nil { return m.Code } return 0 } func (m *Error) GetMessage() string { if m != nil { return m.Message } return "" } func (m *Error) GetContext() map[string]string { if m != nil { return m.Context } return nil } func init() { proto.RegisterType((*Envelope)(nil), "nakama.realtime.Envelope") proto.RegisterType((*Error)(nil), "nakama.realtime.Error") proto.RegisterEnum("nakama.realtime.Error_Code", Error_Code_name, Error_Code_value) } func init() { proto.RegisterFile("rtapi/realtime.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ // 430 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x52, 0x4f, 0x6b, 0xdb, 0x30, 0x14, 0x8f, 0x9d, 0x38, 0x9d, 0x5f, 0xb7, 0xd5, 0xd3, 0x92, 0x61, 0x72, 0x18, 0x25, 0xbb, 0x94, 0x1d, 0x1c, 0xe8, 0x60, 0x8c, 0xc2, 0x60, 0xb1, 0xa3, 0x36, 0x66, 0xab, 0x6c, 0x54, 0x1b, 0xb6, 0x5e, 0x8c, 0xe2, 0x88, 0xc6, 0xd4, 0xb6, 0x8c, 0xe2, 0x96, 0xf5, 0xb0, 0x2f, 0xb3, 0xe3, 0x4e, 0xfb, 0x4e, 0xfb, 0x22, 0xc3, 0x72, 0xdd, 0x96, 0xd2, 0x93, 0xf4, 0xde, 0xef, 0xdf, 0xe3, 0xf1, 0x60, 0x24, 0x6b, 0x56, 0x65, 0x33, 0xc9, 0x59, 0x5e, 0x67, 0x05, 0x77, 0x2a, 0x29, 0x6a, 0x81, 0xf6, 0x4a, 0x76, 0xc9, 0x0a, 0xe6, 0x74, 0xed, 0xc9, 0xfb, 0x8b, 0xac, 0xde, 0x5c, 0xad, 0x9c, 0x54, 0x14, 0xb3, 0x0d, 0x97, 0x22, 0x4b, 0x73, 0xb6, 0xda, 0xce, 0x5a, 0xda, 0xac, 0x71, 0x60, 0x55, 0xd6, 0x8a, 0xa7, 0xbf, 0xe0, 0x19, 0x2e, 0x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 0xc2, 0xd2, 0xd0, 0x6b, 0xd8, 0x3b, 0xf5, 0xcf, 0xce, 0x7c, 0x72, 0x72, 0xd7, 0xd4, 0xd1, 0x0b, 0x30, 0xdd, 0xf9, 0x22, 0xf1, 0x49, 0x18, 0x47, 0x56, 0x5f, 0x71, 0xe6, 0x91, 0xb7, 0x4c, 0x48, 0x10, 0x25, 0xc7, 0x41, 0x4c, 0x16, 0xd6, 0x00, 0xbd, 0x85, 0x49, 0x97, 0x74, 0x1c, 0x13, 0xaf, 0x09, 0x7a, 0x80, 0x1b, 0x4f, 0xe2, 0xf7, 0x23, 0x0d, 0xdd, 0x2f, 0x30, 0x4e, 0x45, 0xe1, 0xdc, 0xdf, 0xc2, 0xed, 0xb2, 0xdc, 0x97, 0x44, 0xbd, 0xf4, 0x76, 0x67, 0xa1, 0x76, 0x6e, 0xa8, 0x13, 0xfb, 0xad, 0x0f, 0xc8, 0xd7, 0xd0, 0xfd, 0xa3, 0x0f, 0x5b, 0xc2, 0x6a, 0xa8, 0xae, 0xe5, 0xc3, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x0e, 0xeb, 0xda, 0x82, 0x02, 0x00, 0x00, }
rtapi/realtime.proto 0 → 100644 +74 −0 Original line number Diff line number Diff line // Copyright 2018 The Nakama Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * The realtime protocol for Nakama server. */ syntax = "proto3"; package nakama.realtime; import "github.com/heroiclabs/nakama/api/api.proto"; option go_package = "rtapi"; option java_multiple_files = true; option java_outer_classname = "NakamaRealtime"; option java_package = "com.heroiclabs.nakama"; option csharp_namespace = "Nakama"; option objc_class_prefix = "NKPB"; /** * An envelope for a realtime message. */ message Envelope { oneof message { // Describes an error which occurred on the server. Error error = 1; nakama.api.ChannelId channel_id = 2; // TODO(zyro): replace with real imported message. } } /** * A logical error which may occur on the server. */ message Error { // The selection of possible error codes. enum Code { // An unexpected result from the server. RUNTIME_EXCEPTION = 0; // The server received a message which is not recognised. UNRECOGNIZED_PAYLOAD = 1; // A message was expected but contains no content. MISSING_PAYLOAD = 2; // Fields in the message have an invalid format. BAD_INPUT = 3; // The match id was not found. MATCH_NOT_FOUND = 4; // The runtime function does not exist on the server. RUNTIME_FUNCTION_NOT_FOUND = 5; // The runtime function executed with an error. RUNTIME_FUNCTION_EXCEPTION = 6; } // The error code which should be one of "Error.Code" enums. int32 code = 1; // A message in English to help developers debug the response. string message = 2; // Additional error details which may be different for each response. map<string, string> context = 3; }