// Code generated by protoc-gen-go. // source: im_proto.proto // DO NOT EDIT! package im import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // 常量 type ConstantE int32 const ( ConstantE_MaxIMMsgId ConstantE = 7 ) var ConstantE_name = map[int32]string{ 7: "MaxIMMsgId", } var ConstantE_value = map[string]int32{ "MaxIMMsgId": 7, } func (x ConstantE) Enum() *ConstantE { p := new(ConstantE) *p = x return p } func (x ConstantE) String() string { return proto.EnumName(ConstantE_name, int32(x)) } func (x *ConstantE) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ConstantE_value, data, "ConstantE") if err != nil { return err } *x = ConstantE(value) return nil } func (ConstantE) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } type IMSocketConnect struct { IsWebsocket *bool `protobuf:"varint,1,opt,name=is_websocket" json:"is_websocket,omitempty"` Host *string `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"` Url *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` QueryStr *string `protobuf:"bytes,4,opt,name=query_str" json:"query_str,omitempty"` XXX_unrecognized []byte `json:"-"` } func (m *IMSocketConnect) Reset() { *m = IMSocketConnect{} } func (m *IMSocketConnect) String() string { return proto.CompactTextString(m) } func (*IMSocketConnect) ProtoMessage() {} func (*IMSocketConnect) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } func (m *IMSocketConnect) GetIsWebsocket() bool { if m != nil && m.IsWebsocket != nil { return *m.IsWebsocket } return false } func (m *IMSocketConnect) GetHost() string { if m != nil && m.Host != nil { return *m.Host } return "" } func (m *IMSocketConnect) GetUrl() string { if m != nil && m.Url != nil { return *m.Url } return "" } func (m *IMSocketConnect) GetQueryStr() string { if m != nil && m.QueryStr != nil { return *m.QueryStr } return "" } type IMSocketDisconnect struct { XXX_unrecognized []byte `json:"-"` } func (m *IMSocketDisconnect) Reset() { *m = IMSocketDisconnect{} } func (m *IMSocketDisconnect) String() string { return proto.CompactTextString(m) } func (*IMSocketDisconnect) ProtoMessage() {} func (*IMSocketDisconnect) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } func init() { proto.RegisterType((*IMSocketConnect)(nil), "im.IMSocketConnect") proto.RegisterType((*IMSocketDisconnect)(nil), "im.IMSocketDisconnect") proto.RegisterEnum("im.ConstantE", ConstantE_name, ConstantE_value) } func init() { proto.RegisterFile("im_proto.proto", fileDescriptor1) } var fileDescriptor1 = []byte{ // 161 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0xcc, 0x8d, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x03, 0x93, 0x42, 0x4c, 0x99, 0xb9, 0x4a, 0xa1, 0x5c, 0xfc, 0x9e, 0xbe, 0xc1, 0xf9, 0xc9, 0xd9, 0xa9, 0x25, 0xce, 0xf9, 0x79, 0x79, 0xa9, 0xc9, 0x25, 0x42, 0x22, 0x5c, 0x3c, 0x99, 0xc5, 0xf1, 0xe5, 0xa9, 0x49, 0xc5, 0x60, 0x61, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x0e, 0x21, 0x1e, 0x2e, 0x96, 0x8c, 0xfc, 0xe2, 0x12, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x4e, 0x21, 0x6e, 0x2e, 0xe6, 0xd2, 0xa2, 0x1c, 0x09, 0x66, 0x30, 0x47, 0x90, 0x8b, 0xb3, 0xb0, 0x34, 0xb5, 0xa8, 0x32, 0xbe, 0xb8, 0xa4, 0x48, 0x82, 0x05, 0x24, 0xa4, 0x24, 0xc2, 0x25, 0x04, 0x33, 0xd6, 0x25, 0xb3, 0x38, 0x19, 0x62, 0xb2, 0x96, 0x0c, 0x17, 0x97, 0x73, 0x7e, 0x5e, 0x71, 0x49, 0x62, 0x5e, 0x49, 0x7c, 0xaa, 0x10, 0x1f, 0x17, 0x97, 0x6f, 0x62, 0x85, 0xa7, 0xaf, 0x6f, 0x71, 0xba, 0x67, 0x8a, 0x00, 0x3b, 0x20, 0x00, 0x00, 0xff, 0xff, 0x62, 0x1d, 0x43, 0x64, 0x9f, 0x00, 0x00, 0x00, }