1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: v1/RoomAdmin.proto
- package v1
- import proto "github.com/gogo/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "github.com/gogo/protobuf/gogoproto"
- import io "io"
- // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
- type RoomAdminIsRoomAdminReq struct {
- // 用户id
- Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
- // 主播的用户 roomid
- Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
- // 主播的用户 anchor_id
- AnchorId int64 `protobuf:"varint,3,opt,name=anchor_id,json=anchorId,proto3" json:"anchor_id"`
- }
- func (m *RoomAdminIsRoomAdminReq) Reset() { *m = RoomAdminIsRoomAdminReq{} }
- func (m *RoomAdminIsRoomAdminReq) String() string { return proto.CompactTextString(m) }
- func (*RoomAdminIsRoomAdminReq) ProtoMessage() {}
- func (*RoomAdminIsRoomAdminReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_RoomAdmin_00e9d4c4f349d463, []int{0}
- }
- func (m *RoomAdminIsRoomAdminReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *RoomAdminIsRoomAdminReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_RoomAdminIsRoomAdminReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (dst *RoomAdminIsRoomAdminReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_RoomAdminIsRoomAdminReq.Merge(dst, src)
- }
- func (m *RoomAdminIsRoomAdminReq) XXX_Size() int {
- return m.Size()
- }
- func (m *RoomAdminIsRoomAdminReq) XXX_DiscardUnknown() {
- xxx_messageInfo_RoomAdminIsRoomAdminReq.DiscardUnknown(m)
- }
- var xxx_messageInfo_RoomAdminIsRoomAdminReq proto.InternalMessageInfo
- func (m *RoomAdminIsRoomAdminReq) GetUid() string {
- if m != nil {
- return m.Uid
- }
- return ""
- }
- func (m *RoomAdminIsRoomAdminReq) GetRoomid() int64 {
- if m != nil {
- return m.Roomid
- }
- return 0
- }
- func (m *RoomAdminIsRoomAdminReq) GetAnchorId() int64 {
- if m != nil {
- return m.AnchorId
- }
- return 0
- }
- type RoomAdminIsRoomAdminResp struct {
- // code
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
- // msg
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
- //
- Data *RoomAdminIsRoomAdminResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
- }
- func (m *RoomAdminIsRoomAdminResp) Reset() { *m = RoomAdminIsRoomAdminResp{} }
- func (m *RoomAdminIsRoomAdminResp) String() string { return proto.CompactTextString(m) }
- func (*RoomAdminIsRoomAdminResp) ProtoMessage() {}
- func (*RoomAdminIsRoomAdminResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_RoomAdmin_00e9d4c4f349d463, []int{1}
- }
- func (m *RoomAdminIsRoomAdminResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *RoomAdminIsRoomAdminResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_RoomAdminIsRoomAdminResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (dst *RoomAdminIsRoomAdminResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_RoomAdminIsRoomAdminResp.Merge(dst, src)
- }
- func (m *RoomAdminIsRoomAdminResp) XXX_Size() int {
- return m.Size()
- }
- func (m *RoomAdminIsRoomAdminResp) XXX_DiscardUnknown() {
- xxx_messageInfo_RoomAdminIsRoomAdminResp.DiscardUnknown(m)
- }
- var xxx_messageInfo_RoomAdminIsRoomAdminResp proto.InternalMessageInfo
- func (m *RoomAdminIsRoomAdminResp) GetCode() int64 {
- if m != nil {
- return m.Code
- }
- return 0
- }
- func (m *RoomAdminIsRoomAdminResp) GetMsg() string {
- if m != nil {
- return m.Msg
- }
- return ""
- }
- func (m *RoomAdminIsRoomAdminResp) GetData() *RoomAdminIsRoomAdminResp_Data {
- if m != nil {
- return m.Data
- }
- return nil
- }
- type RoomAdminIsRoomAdminResp_UI struct {
- // 用户id
- Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
- // 用户名
- Uname string `protobuf:"bytes,2,opt,name=uname,proto3" json:"uname"`
- }
- func (m *RoomAdminIsRoomAdminResp_UI) Reset() { *m = RoomAdminIsRoomAdminResp_UI{} }
- func (m *RoomAdminIsRoomAdminResp_UI) String() string { return proto.CompactTextString(m) }
- func (*RoomAdminIsRoomAdminResp_UI) ProtoMessage() {}
- func (*RoomAdminIsRoomAdminResp_UI) Descriptor() ([]byte, []int) {
- return fileDescriptor_RoomAdmin_00e9d4c4f349d463, []int{1, 0}
- }
- func (m *RoomAdminIsRoomAdminResp_UI) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *RoomAdminIsRoomAdminResp_UI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_RoomAdminIsRoomAdminResp_UI.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (dst *RoomAdminIsRoomAdminResp_UI) XXX_Merge(src proto.Message) {
- xxx_messageInfo_RoomAdminIsRoomAdminResp_UI.Merge(dst, src)
- }
- func (m *RoomAdminIsRoomAdminResp_UI) XXX_Size() int {
- return m.Size()
- }
- func (m *RoomAdminIsRoomAdminResp_UI) XXX_DiscardUnknown() {
- xxx_messageInfo_RoomAdminIsRoomAdminResp_UI.DiscardUnknown(m)
- }
- var xxx_messageInfo_RoomAdminIsRoomAdminResp_UI proto.InternalMessageInfo
- func (m *RoomAdminIsRoomAdminResp_UI) GetUid() int64 {
- if m != nil {
- return m.Uid
- }
- return 0
- }
- func (m *RoomAdminIsRoomAdminResp_UI) GetUname() string {
- if m != nil {
- return m.Uname
- }
- return ""
- }
- type RoomAdminIsRoomAdminResp_Data struct {
- // banner
- Userinfo *RoomAdminIsRoomAdminResp_UI `protobuf:"bytes,1,opt,name=userinfo" json:"userinfo"`
- // 房管的用户id
- Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid"`
- // 房间号
- Roomid int64 `protobuf:"varint,3,opt,name=roomid,proto3" json:"roomid"`
- // 创建时间 "2017-07-26 17:12:51"
- Ctime string `protobuf:"bytes,4,opt,name=ctime,proto3" json:"ctime"`
- }
- func (m *RoomAdminIsRoomAdminResp_Data) Reset() { *m = RoomAdminIsRoomAdminResp_Data{} }
- func (m *RoomAdminIsRoomAdminResp_Data) String() string { return proto.CompactTextString(m) }
- func (*RoomAdminIsRoomAdminResp_Data) ProtoMessage() {}
- func (*RoomAdminIsRoomAdminResp_Data) Descriptor() ([]byte, []int) {
- return fileDescriptor_RoomAdmin_00e9d4c4f349d463, []int{1, 1}
- }
- func (m *RoomAdminIsRoomAdminResp_Data) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *RoomAdminIsRoomAdminResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_RoomAdminIsRoomAdminResp_Data.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (dst *RoomAdminIsRoomAdminResp_Data) XXX_Merge(src proto.Message) {
- xxx_messageInfo_RoomAdminIsRoomAdminResp_Data.Merge(dst, src)
- }
- func (m *RoomAdminIsRoomAdminResp_Data) XXX_Size() int {
- return m.Size()
- }
- func (m *RoomAdminIsRoomAdminResp_Data) XXX_DiscardUnknown() {
- xxx_messageInfo_RoomAdminIsRoomAdminResp_Data.DiscardUnknown(m)
- }
- var xxx_messageInfo_RoomAdminIsRoomAdminResp_Data proto.InternalMessageInfo
- func (m *RoomAdminIsRoomAdminResp_Data) GetUserinfo() *RoomAdminIsRoomAdminResp_UI {
- if m != nil {
- return m.Userinfo
- }
- return nil
- }
- func (m *RoomAdminIsRoomAdminResp_Data) GetUid() int64 {
- if m != nil {
- return m.Uid
- }
- return 0
- }
- func (m *RoomAdminIsRoomAdminResp_Data) GetRoomid() int64 {
- if m != nil {
- return m.Roomid
- }
- return 0
- }
- func (m *RoomAdminIsRoomAdminResp_Data) GetCtime() string {
- if m != nil {
- return m.Ctime
- }
- return ""
- }
- func init() {
- proto.RegisterType((*RoomAdminIsRoomAdminReq)(nil), "live_user.v1.RoomAdminIsRoomAdminReq")
- proto.RegisterType((*RoomAdminIsRoomAdminResp)(nil), "live_user.v1.RoomAdminIsRoomAdminResp")
- proto.RegisterType((*RoomAdminIsRoomAdminResp_UI)(nil), "live_user.v1.RoomAdminIsRoomAdminResp.UI")
- proto.RegisterType((*RoomAdminIsRoomAdminResp_Data)(nil), "live_user.v1.RoomAdminIsRoomAdminResp.Data")
- }
- func (m *RoomAdminIsRoomAdminReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *RoomAdminIsRoomAdminReq) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Uid) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(len(m.Uid)))
- i += copy(dAtA[i:], m.Uid)
- }
- if m.Roomid != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.Roomid))
- }
- if m.AnchorId != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.AnchorId))
- }
- return i, nil
- }
- func (m *RoomAdminIsRoomAdminResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *RoomAdminIsRoomAdminResp) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Code != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.Code))
- }
- if len(m.Msg) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(len(m.Msg)))
- i += copy(dAtA[i:], m.Msg)
- }
- if m.Data != nil {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.Data.Size()))
- n1, err := m.Data.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n1
- }
- return i, nil
- }
- func (m *RoomAdminIsRoomAdminResp_UI) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *RoomAdminIsRoomAdminResp_UI) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Uid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.Uid))
- }
- if len(m.Uname) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(len(m.Uname)))
- i += copy(dAtA[i:], m.Uname)
- }
- return i, nil
- }
- func (m *RoomAdminIsRoomAdminResp_Data) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *RoomAdminIsRoomAdminResp_Data) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Userinfo != nil {
- dAtA[i] = 0xa
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.Userinfo.Size()))
- n2, err := m.Userinfo.MarshalTo(dAtA[i:])
- if err != nil {
- return 0, err
- }
- i += n2
- }
- if m.Uid != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.Uid))
- }
- if m.Roomid != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(m.Roomid))
- }
- if len(m.Ctime) > 0 {
- dAtA[i] = 0x22
- i++
- i = encodeVarintRoomAdmin(dAtA, i, uint64(len(m.Ctime)))
- i += copy(dAtA[i:], m.Ctime)
- }
- return i, nil
- }
- func encodeVarintRoomAdmin(dAtA []byte, offset int, v uint64) int {
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return offset + 1
- }
- func (m *RoomAdminIsRoomAdminReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Uid)
- if l > 0 {
- n += 1 + l + sovRoomAdmin(uint64(l))
- }
- if m.Roomid != 0 {
- n += 1 + sovRoomAdmin(uint64(m.Roomid))
- }
- if m.AnchorId != 0 {
- n += 1 + sovRoomAdmin(uint64(m.AnchorId))
- }
- return n
- }
- func (m *RoomAdminIsRoomAdminResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Code != 0 {
- n += 1 + sovRoomAdmin(uint64(m.Code))
- }
- l = len(m.Msg)
- if l > 0 {
- n += 1 + l + sovRoomAdmin(uint64(l))
- }
- if m.Data != nil {
- l = m.Data.Size()
- n += 1 + l + sovRoomAdmin(uint64(l))
- }
- return n
- }
- func (m *RoomAdminIsRoomAdminResp_UI) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Uid != 0 {
- n += 1 + sovRoomAdmin(uint64(m.Uid))
- }
- l = len(m.Uname)
- if l > 0 {
- n += 1 + l + sovRoomAdmin(uint64(l))
- }
- return n
- }
- func (m *RoomAdminIsRoomAdminResp_Data) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Userinfo != nil {
- l = m.Userinfo.Size()
- n += 1 + l + sovRoomAdmin(uint64(l))
- }
- if m.Uid != 0 {
- n += 1 + sovRoomAdmin(uint64(m.Uid))
- }
- if m.Roomid != 0 {
- n += 1 + sovRoomAdmin(uint64(m.Roomid))
- }
- l = len(m.Ctime)
- if l > 0 {
- n += 1 + l + sovRoomAdmin(uint64(l))
- }
- return n
- }
- func sovRoomAdmin(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozRoomAdmin(x uint64) (n int) {
- return sovRoomAdmin(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (m *RoomAdminIsRoomAdminReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RoomAdminIsRoomAdminReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RoomAdminIsRoomAdminReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Uid = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
- }
- m.Roomid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Roomid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AnchorId", wireType)
- }
- m.AnchorId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AnchorId |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipRoomAdmin(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *RoomAdminIsRoomAdminResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RoomAdminIsRoomAdminResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RoomAdminIsRoomAdminResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
- }
- m.Code = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Code |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Msg = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- postIndex := iNdEx + msglen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Data == nil {
- m.Data = &RoomAdminIsRoomAdminResp_Data{}
- }
- if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRoomAdmin(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *RoomAdminIsRoomAdminResp_UI) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: UI: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UI: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
- }
- m.Uid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Uid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Uname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Uname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRoomAdmin(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *RoomAdminIsRoomAdminResp_Data) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Data: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Userinfo", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- postIndex := iNdEx + msglen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Userinfo == nil {
- m.Userinfo = &RoomAdminIsRoomAdminResp_UI{}
- }
- if err := m.Userinfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
- }
- m.Uid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Uid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
- }
- m.Roomid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Roomid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Ctime = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipRoomAdmin(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthRoomAdmin
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipRoomAdmin(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- return iNdEx, nil
- case 1:
- iNdEx += 8
- return iNdEx, nil
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- iNdEx += length
- if length < 0 {
- return 0, ErrInvalidLengthRoomAdmin
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowRoomAdmin
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- innerWire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- innerWireType := int(innerWire & 0x7)
- if innerWireType == 4 {
- break
- }
- next, err := skipRoomAdmin(dAtA[start:])
- if err != nil {
- return 0, err
- }
- iNdEx = start + next
- }
- return iNdEx, nil
- case 4:
- return iNdEx, nil
- case 5:
- iNdEx += 4
- return iNdEx, nil
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- }
- panic("unreachable")
- }
- var (
- ErrInvalidLengthRoomAdmin = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowRoomAdmin = fmt.Errorf("proto: integer overflow")
- )
- func init() { proto.RegisterFile("v1/RoomAdmin.proto", fileDescriptor_RoomAdmin_00e9d4c4f349d463) }
- var fileDescriptor_RoomAdmin_00e9d4c4f349d463 = []byte{
- // 410 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4d, 0x8e, 0xd3, 0x30,
- 0x14, 0xc7, 0xeb, 0x24, 0x33, 0x34, 0x6f, 0x66, 0x36, 0xde, 0x10, 0xa2, 0x51, 0x3c, 0xaa, 0x04,
- 0x1a, 0x40, 0xa4, 0x6a, 0xb9, 0x00, 0x44, 0x6c, 0xb2, 0x35, 0x9a, 0x0d, 0x0b, 0xa2, 0x34, 0xc9,
- 0xa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