959 lines
23 KiB
Go
959 lines
23 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||
// source: v1/SilentMng.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 SilentMngIsBlockUserReq struct {
|
||
//
|
||
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
|
||
//
|
||
Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
|
||
// 1表示弹幕禁言,2表示房间信息
|
||
Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type"`
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserReq) Reset() { *m = SilentMngIsBlockUserReq{} }
|
||
func (m *SilentMngIsBlockUserReq) String() string { return proto.CompactTextString(m) }
|
||
func (*SilentMngIsBlockUserReq) ProtoMessage() {}
|
||
func (*SilentMngIsBlockUserReq) Descriptor() ([]byte, []int) {
|
||
return fileDescriptor_SilentMng_e4a1d159043b9556, []int{0}
|
||
}
|
||
func (m *SilentMngIsBlockUserReq) XXX_Unmarshal(b []byte) error {
|
||
return m.Unmarshal(b)
|
||
}
|
||
func (m *SilentMngIsBlockUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
if deterministic {
|
||
return xxx_messageInfo_SilentMngIsBlockUserReq.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 *SilentMngIsBlockUserReq) XXX_Merge(src proto.Message) {
|
||
xxx_messageInfo_SilentMngIsBlockUserReq.Merge(dst, src)
|
||
}
|
||
func (m *SilentMngIsBlockUserReq) XXX_Size() int {
|
||
return m.Size()
|
||
}
|
||
func (m *SilentMngIsBlockUserReq) XXX_DiscardUnknown() {
|
||
xxx_messageInfo_SilentMngIsBlockUserReq.DiscardUnknown(m)
|
||
}
|
||
|
||
var xxx_messageInfo_SilentMngIsBlockUserReq proto.InternalMessageInfo
|
||
|
||
func (m *SilentMngIsBlockUserReq) GetUid() int64 {
|
||
if m != nil {
|
||
return m.Uid
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserReq) GetRoomid() int64 {
|
||
if m != nil {
|
||
return m.Roomid
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserReq) GetType() int64 {
|
||
if m != nil {
|
||
return m.Type
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type SilentMngIsBlockUserResp struct {
|
||
//
|
||
Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
|
||
//
|
||
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
|
||
//
|
||
Data *SilentMngIsBlockUserResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp) Reset() { *m = SilentMngIsBlockUserResp{} }
|
||
func (m *SilentMngIsBlockUserResp) String() string { return proto.CompactTextString(m) }
|
||
func (*SilentMngIsBlockUserResp) ProtoMessage() {}
|
||
func (*SilentMngIsBlockUserResp) Descriptor() ([]byte, []int) {
|
||
return fileDescriptor_SilentMng_e4a1d159043b9556, []int{1}
|
||
}
|
||
func (m *SilentMngIsBlockUserResp) XXX_Unmarshal(b []byte) error {
|
||
return m.Unmarshal(b)
|
||
}
|
||
func (m *SilentMngIsBlockUserResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
if deterministic {
|
||
return xxx_messageInfo_SilentMngIsBlockUserResp.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 *SilentMngIsBlockUserResp) XXX_Merge(src proto.Message) {
|
||
xxx_messageInfo_SilentMngIsBlockUserResp.Merge(dst, src)
|
||
}
|
||
func (m *SilentMngIsBlockUserResp) XXX_Size() int {
|
||
return m.Size()
|
||
}
|
||
func (m *SilentMngIsBlockUserResp) XXX_DiscardUnknown() {
|
||
xxx_messageInfo_SilentMngIsBlockUserResp.DiscardUnknown(m)
|
||
}
|
||
|
||
var xxx_messageInfo_SilentMngIsBlockUserResp proto.InternalMessageInfo
|
||
|
||
func (m *SilentMngIsBlockUserResp) GetCode() int64 {
|
||
if m != nil {
|
||
return m.Code
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp) GetMsg() string {
|
||
if m != nil {
|
||
return m.Msg
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp) GetData() *SilentMngIsBlockUserResp_Data {
|
||
if m != nil {
|
||
return m.Data
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type SilentMngIsBlockUserResp_Data struct {
|
||
//
|
||
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
|
||
//
|
||
Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
|
||
//
|
||
IsBlockUser bool `protobuf:"varint,3,opt,name=is_block_user,json=isBlockUser,proto3" json:"is_block_user"`
|
||
//
|
||
Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type"`
|
||
// 禁言到期时间戳
|
||
BlockEndTime int64 `protobuf:"varint,5,opt,name=block_end_time,json=blockEndTime,proto3" json:"block_end_time"`
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp_Data) Reset() { *m = SilentMngIsBlockUserResp_Data{} }
|
||
func (m *SilentMngIsBlockUserResp_Data) String() string { return proto.CompactTextString(m) }
|
||
func (*SilentMngIsBlockUserResp_Data) ProtoMessage() {}
|
||
func (*SilentMngIsBlockUserResp_Data) Descriptor() ([]byte, []int) {
|
||
return fileDescriptor_SilentMng_e4a1d159043b9556, []int{1, 0}
|
||
}
|
||
func (m *SilentMngIsBlockUserResp_Data) XXX_Unmarshal(b []byte) error {
|
||
return m.Unmarshal(b)
|
||
}
|
||
func (m *SilentMngIsBlockUserResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
if deterministic {
|
||
return xxx_messageInfo_SilentMngIsBlockUserResp_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 *SilentMngIsBlockUserResp_Data) XXX_Merge(src proto.Message) {
|
||
xxx_messageInfo_SilentMngIsBlockUserResp_Data.Merge(dst, src)
|
||
}
|
||
func (m *SilentMngIsBlockUserResp_Data) XXX_Size() int {
|
||
return m.Size()
|
||
}
|
||
func (m *SilentMngIsBlockUserResp_Data) XXX_DiscardUnknown() {
|
||
xxx_messageInfo_SilentMngIsBlockUserResp_Data.DiscardUnknown(m)
|
||
}
|
||
|
||
var xxx_messageInfo_SilentMngIsBlockUserResp_Data proto.InternalMessageInfo
|
||
|
||
func (m *SilentMngIsBlockUserResp_Data) GetUid() int64 {
|
||
if m != nil {
|
||
return m.Uid
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp_Data) GetRoomid() int64 {
|
||
if m != nil {
|
||
return m.Roomid
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp_Data) GetIsBlockUser() bool {
|
||
if m != nil {
|
||
return m.IsBlockUser
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp_Data) GetType() int64 {
|
||
if m != nil {
|
||
return m.Type
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp_Data) GetBlockEndTime() int64 {
|
||
if m != nil {
|
||
return m.BlockEndTime
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func init() {
|
||
proto.RegisterType((*SilentMngIsBlockUserReq)(nil), "banned_service.v1.SilentMngIsBlockUserReq")
|
||
proto.RegisterType((*SilentMngIsBlockUserResp)(nil), "banned_service.v1.SilentMngIsBlockUserResp")
|
||
proto.RegisterType((*SilentMngIsBlockUserResp_Data)(nil), "banned_service.v1.SilentMngIsBlockUserResp.Data")
|
||
}
|
||
func (m *SilentMngIsBlockUserReq) 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 *SilentMngIsBlockUserReq) MarshalTo(dAtA []byte) (int, error) {
|
||
var i int
|
||
_ = i
|
||
var l int
|
||
_ = l
|
||
if m.Uid != 0 {
|
||
dAtA[i] = 0x8
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.Uid))
|
||
}
|
||
if m.Roomid != 0 {
|
||
dAtA[i] = 0x10
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.Roomid))
|
||
}
|
||
if m.Type != 0 {
|
||
dAtA[i] = 0x18
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.Type))
|
||
}
|
||
return i, nil
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp) 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 *SilentMngIsBlockUserResp) MarshalTo(dAtA []byte) (int, error) {
|
||
var i int
|
||
_ = i
|
||
var l int
|
||
_ = l
|
||
if m.Code != 0 {
|
||
dAtA[i] = 0x8
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.Code))
|
||
}
|
||
if len(m.Msg) > 0 {
|
||
dAtA[i] = 0x12
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(len(m.Msg)))
|
||
i += copy(dAtA[i:], m.Msg)
|
||
}
|
||
if m.Data != nil {
|
||
dAtA[i] = 0x1a
|
||
i++
|
||
i = encodeVarintSilentMng(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 *SilentMngIsBlockUserResp_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 *SilentMngIsBlockUserResp_Data) MarshalTo(dAtA []byte) (int, error) {
|
||
var i int
|
||
_ = i
|
||
var l int
|
||
_ = l
|
||
if m.Uid != 0 {
|
||
dAtA[i] = 0x8
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.Uid))
|
||
}
|
||
if m.Roomid != 0 {
|
||
dAtA[i] = 0x10
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.Roomid))
|
||
}
|
||
if m.IsBlockUser {
|
||
dAtA[i] = 0x18
|
||
i++
|
||
if m.IsBlockUser {
|
||
dAtA[i] = 1
|
||
} else {
|
||
dAtA[i] = 0
|
||
}
|
||
i++
|
||
}
|
||
if m.Type != 0 {
|
||
dAtA[i] = 0x20
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.Type))
|
||
}
|
||
if m.BlockEndTime != 0 {
|
||
dAtA[i] = 0x28
|
||
i++
|
||
i = encodeVarintSilentMng(dAtA, i, uint64(m.BlockEndTime))
|
||
}
|
||
return i, nil
|
||
}
|
||
|
||
func encodeVarintSilentMng(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 *SilentMngIsBlockUserReq) Size() (n int) {
|
||
if m == nil {
|
||
return 0
|
||
}
|
||
var l int
|
||
_ = l
|
||
if m.Uid != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.Uid))
|
||
}
|
||
if m.Roomid != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.Roomid))
|
||
}
|
||
if m.Type != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.Type))
|
||
}
|
||
return n
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp) Size() (n int) {
|
||
if m == nil {
|
||
return 0
|
||
}
|
||
var l int
|
||
_ = l
|
||
if m.Code != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.Code))
|
||
}
|
||
l = len(m.Msg)
|
||
if l > 0 {
|
||
n += 1 + l + sovSilentMng(uint64(l))
|
||
}
|
||
if m.Data != nil {
|
||
l = m.Data.Size()
|
||
n += 1 + l + sovSilentMng(uint64(l))
|
||
}
|
||
return n
|
||
}
|
||
|
||
func (m *SilentMngIsBlockUserResp_Data) Size() (n int) {
|
||
if m == nil {
|
||
return 0
|
||
}
|
||
var l int
|
||
_ = l
|
||
if m.Uid != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.Uid))
|
||
}
|
||
if m.Roomid != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.Roomid))
|
||
}
|
||
if m.IsBlockUser {
|
||
n += 2
|
||
}
|
||
if m.Type != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.Type))
|
||
}
|
||
if m.BlockEndTime != 0 {
|
||
n += 1 + sovSilentMng(uint64(m.BlockEndTime))
|
||
}
|
||
return n
|
||
}
|
||
|
||
func sovSilentMng(x uint64) (n int) {
|
||
for {
|
||
n++
|
||
x >>= 7
|
||
if x == 0 {
|
||
break
|
||
}
|
||
}
|
||
return n
|
||
}
|
||
func sozSilentMng(x uint64) (n int) {
|
||
return sovSilentMng(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||
}
|
||
func (m *SilentMngIsBlockUserReq) 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 ErrIntOverflowSilentMng
|
||
}
|
||
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: SilentMngIsBlockUserReq: wiretype end group for non-group")
|
||
}
|
||
if fieldNum <= 0 {
|
||
return fmt.Errorf("proto: SilentMngIsBlockUserReq: 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 ErrIntOverflowSilentMng
|
||
}
|
||
if iNdEx >= l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
b := dAtA[iNdEx]
|
||
iNdEx++
|
||
m.Uid |= (int64(b) & 0x7F) << shift
|
||
if b < 0x80 {
|
||
break
|
||
}
|
||
}
|
||
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 ErrIntOverflowSilentMng
|
||
}
|
||
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 Type", wireType)
|
||
}
|
||
m.Type = 0
|
||
for shift := uint(0); ; shift += 7 {
|
||
if shift >= 64 {
|
||
return ErrIntOverflowSilentMng
|
||
}
|
||
if iNdEx >= l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
b := dAtA[iNdEx]
|
||
iNdEx++
|
||
m.Type |= (int64(b) & 0x7F) << shift
|
||
if b < 0x80 {
|
||
break
|
||
}
|
||
}
|
||
default:
|
||
iNdEx = preIndex
|
||
skippy, err := skipSilentMng(dAtA[iNdEx:])
|
||
if err != nil {
|
||
return err
|
||
}
|
||
if skippy < 0 {
|
||
return ErrInvalidLengthSilentMng
|
||
}
|
||
if (iNdEx + skippy) > l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
iNdEx += skippy
|
||
}
|
||
}
|
||
|
||
if iNdEx > l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
return nil
|
||
}
|
||
func (m *SilentMngIsBlockUserResp) 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 ErrIntOverflowSilentMng
|
||
}
|
||
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: SilentMngIsBlockUserResp: wiretype end group for non-group")
|
||
}
|
||
if fieldNum <= 0 {
|
||
return fmt.Errorf("proto: SilentMngIsBlockUserResp: 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 ErrIntOverflowSilentMng
|
||
}
|
||
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 ErrIntOverflowSilentMng
|
||
}
|
||
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 ErrInvalidLengthSilentMng
|
||
}
|
||
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 ErrIntOverflowSilentMng
|
||
}
|
||
if iNdEx >= l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
b := dAtA[iNdEx]
|
||
iNdEx++
|
||
msglen |= (int(b) & 0x7F) << shift
|
||
if b < 0x80 {
|
||
break
|
||
}
|
||
}
|
||
if msglen < 0 {
|
||
return ErrInvalidLengthSilentMng
|
||
}
|
||
postIndex := iNdEx + msglen
|
||
if postIndex > l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
if m.Data == nil {
|
||
m.Data = &SilentMngIsBlockUserResp_Data{}
|
||
}
|
||
if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||
return err
|
||
}
|
||
iNdEx = postIndex
|
||
default:
|
||
iNdEx = preIndex
|
||
skippy, err := skipSilentMng(dAtA[iNdEx:])
|
||
if err != nil {
|
||
return err
|
||
}
|
||
if skippy < 0 {
|
||
return ErrInvalidLengthSilentMng
|
||
}
|
||
if (iNdEx + skippy) > l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
iNdEx += skippy
|
||
}
|
||
}
|
||
|
||
if iNdEx > l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
return nil
|
||
}
|
||
func (m *SilentMngIsBlockUserResp_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 ErrIntOverflowSilentMng
|
||
}
|
||
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 != 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 ErrIntOverflowSilentMng
|
||
}
|
||
if iNdEx >= l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
b := dAtA[iNdEx]
|
||
iNdEx++
|
||
m.Uid |= (int64(b) & 0x7F) << shift
|
||
if b < 0x80 {
|
||
break
|
||
}
|
||
}
|
||
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 ErrIntOverflowSilentMng
|
||
}
|
||
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 IsBlockUser", wireType)
|
||
}
|
||
var v int
|
||
for shift := uint(0); ; shift += 7 {
|
||
if shift >= 64 {
|
||
return ErrIntOverflowSilentMng
|
||
}
|
||
if iNdEx >= l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
b := dAtA[iNdEx]
|
||
iNdEx++
|
||
v |= (int(b) & 0x7F) << shift
|
||
if b < 0x80 {
|
||
break
|
||
}
|
||
}
|
||
m.IsBlockUser = bool(v != 0)
|
||
case 4:
|
||
if wireType != 0 {
|
||
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
||
}
|
||
m.Type = 0
|
||
for shift := uint(0); ; shift += 7 {
|
||
if shift >= 64 {
|
||
return ErrIntOverflowSilentMng
|
||
}
|
||
if iNdEx >= l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
b := dAtA[iNdEx]
|
||
iNdEx++
|
||
m.Type |= (int64(b) & 0x7F) << shift
|
||
if b < 0x80 {
|
||
break
|
||
}
|
||
}
|
||
case 5:
|
||
if wireType != 0 {
|
||
return fmt.Errorf("proto: wrong wireType = %d for field BlockEndTime", wireType)
|
||
}
|
||
m.BlockEndTime = 0
|
||
for shift := uint(0); ; shift += 7 {
|
||
if shift >= 64 {
|
||
return ErrIntOverflowSilentMng
|
||
}
|
||
if iNdEx >= l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
b := dAtA[iNdEx]
|
||
iNdEx++
|
||
m.BlockEndTime |= (int64(b) & 0x7F) << shift
|
||
if b < 0x80 {
|
||
break
|
||
}
|
||
}
|
||
default:
|
||
iNdEx = preIndex
|
||
skippy, err := skipSilentMng(dAtA[iNdEx:])
|
||
if err != nil {
|
||
return err
|
||
}
|
||
if skippy < 0 {
|
||
return ErrInvalidLengthSilentMng
|
||
}
|
||
if (iNdEx + skippy) > l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
iNdEx += skippy
|
||
}
|
||
}
|
||
|
||
if iNdEx > l {
|
||
return io.ErrUnexpectedEOF
|
||
}
|
||
return nil
|
||
}
|
||
func skipSilentMng(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, ErrIntOverflowSilentMng
|
||
}
|
||
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, ErrIntOverflowSilentMng
|
||
}
|
||
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, ErrIntOverflowSilentMng
|
||
}
|
||
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, ErrInvalidLengthSilentMng
|
||
}
|
||
return iNdEx, nil
|
||
case 3:
|
||
for {
|
||
var innerWire uint64
|
||
var start int = iNdEx
|
||
for shift := uint(0); ; shift += 7 {
|
||
if shift >= 64 {
|
||
return 0, ErrIntOverflowSilentMng
|
||
}
|
||
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 := skipSilentMng(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 (
|
||
ErrInvalidLengthSilentMng = fmt.Errorf("proto: negative length found during unmarshaling")
|
||
ErrIntOverflowSilentMng = fmt.Errorf("proto: integer overflow")
|
||
)
|
||
|
||
func init() { proto.RegisterFile("v1/SilentMng.proto", fileDescriptor_SilentMng_e4a1d159043b9556) }
|
||
|
||
var fileDescriptor_SilentMng_e4a1d159043b9556 = []byte{
|
||
// 385 bytes of a gzipped FileDescriptorProto
|
||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x3d, 0x4f, 0xe3, 0x40,
|
||
0x14, 0x8c, 0x13, 0x5f, 0x2e, 0xd9, 0xdc, 0x9d, 0x94, 0x6d, 0xce, 0x17, 0x45, 0xf6, 0x29, 0x15,
|
||
0x02, 0xe1, 0x90, 0x20, 0x24, 0x6a, 0x0b, 0x0a, 0x0a, 0x28, 0x16, 0x68, 0x68, 0x2c, 0x7f, 0x2c,
|
||
0xce, 0x8a, 0xd8, 0x9b, 0x78, 0x6d, 0x4b, 0xfc, 0x0b, 0x7e, 0x16, 0x65, 0x0a, 0x0a, 0x2a, 0x0b,
|
||
0x25, 0x9d, 0x7f, 0x02, 0x15, 0xda, 0xe7, 0x28, 0x88, 0x10, 0x24, 0x10, 0xcd, 0xd8, 0xe3, 0x79,
|
||
0xef, 0xcd, 0x68, 0x64, 0x84, 0xb3, 0x41, 0xff, 0x9c, 0x8d, 0x69, 0x94, 0x9c, 0x46, 0x81, 0x39,
|
||
0x89, 0x79, 0xc2, 0x71, 0xdb, 0x75, 0xa2, 0x88, 0xfa, 0xb6, 0xa0, 0x71, 0xc6, 0x3c, 0x6a, 0x66,
|
||
0x83, 0xce, 0x6e, 0xc0, 0x92, 0x51, 0xea, 0x9a, 0x1e, 0x0f, 0xfb, 0x01, 0x0f, 0x78, 0x1f, 0x26,
|
||
0xdd, 0xf4, 0x1a, 0x18, 0x10, 0x78, 0x2b, 0x2f, 0xf4, 0x32, 0xf4, 0x77, 0x75, 0xf4, 0x44, 0x58,
|
||
0x63, 0xee, 0xdd, 0x5c, 0x0a, 0x1a, 0x13, 0x3a, 0xc5, 0xff, 0x50, 0x2d, 0x65, 0xbe, 0xa6, 0xfc,
|
||
0x57, 0xb6, 0x6a, 0xd6, 0xcf, 0x22, 0x37, 0x24, 0x25, 0x12, 0x70, 0x0f, 0xd5, 0x63, 0xce, 0x43,
|
||
0xe6, 0x6b, 0x55, 0x50, 0x51, 0x91, 0x1b, 0xcb, 0x2f, 0x64, 0xf9, 0xc4, 0x5d, 0xa4, 0x26, 0xb7,
|
||
0x13, 0xaa, 0xd5, 0x60, 0xa2, 0x51, 0xe4, 0x06, 0x70, 0x02, 0xd8, 0x7b, 0xae, 0x22, 0x6d, 0xb3,
|
||
0xb1, 0x98, 0xc8, 0x55, 0x8f, 0xfb, 0x74, 0x69, 0x0d, 0xab, 0x92, 0x13, 0x40, 0x99, 0x2b, 0x14,
|
||
0x01, 0x38, 0x37, 0xcb, 0x5c, 0xa1, 0x08, 0x88, 0x04, 0x7c, 0x86, 0x54, 0xdf, 0x49, 0x1c, 0xf0,
|
||
0x6c, 0x0d, 0xf7, 0xcc, 0x77, 0xf5, 0x98, 0x1f, 0x79, 0x9a, 0x47, 0x4e, 0xe2, 0x94, 0x56, 0xf2,
|
||
0x02, 0x01, 0xec, 0x3c, 0x28, 0x48, 0x95, 0xc2, 0x77, 0xbb, 0x38, 0x40, 0xbf, 0x99, 0xb0, 0x5d,
|
||
0x69, 0x68, 0xa7, 0x82, 0xc6, 0x10, 0xb0, 0x61, 0xb5, 0x8b, 0xdc, 0x78, 0x2b, 0x90, 0x16, 0x7b,
|
||
0xcd, 0xb5, 0xaa, 0x50, 0xdd, 0x54, 0x21, 0x3e, 0x44, 0x7f, 0xca, 0x45, 0x1a, 0xf9, 0x76, 0xc2,
|
||
0x42, 0xaa, 0xfd, 0x80, 0x39, 0x5c, 0xe4, 0xc6, 0x9a, 0x42, 0x7e, 0x01, 0x3f, 0x8e, 0xfc, 0x0b,
|
||
0x16, 0xd2, 0x61, 0x8a, 0x9a, 0xab, 0x1e, 0xf0, 0x68, 0x2d, 0x1b, 0xde, 0xfe, 0x74, 0x6d, 0xd3,
|
||
0xce, 0xce, 0x17, 0x2a, 0xb6, 0xba, 0xf7, 0x73, 0x5d, 0x99, 0xcd, 0x75, 0xe5, 0x69, 0xae, 0x2b,
|
||
0x77, 0x0b, 0xbd, 0x32, 0x5b, 0xe8, 0x95, 0xc7, 0x85, 0x5e, 0xb9, 0xaa, 0x66, 0x03, 0xb7, 0x0e,
|
||
0x3f, 0xe4, 0xfe, 0x4b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x55, 0xed, 0x6d, 0xe8, 0x02, 0x00,
|
||
0x00,
|
||
}
|