// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// source: gb.proto
|
|
package proto
|
|
import (
|
fmt "fmt"
|
proto "github.com/gogo/protobuf/proto"
|
io "io"
|
math "math"
|
math_bits "math/bits"
|
)
|
|
// 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 Gb28181Config struct {
|
Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
|
ServerIp string `protobuf:"bytes,2,opt,name=ServerIp,proto3" json:"ServerIp,omitempty"`
|
ServerPort string `protobuf:"bytes,3,opt,name=ServerPort,proto3" json:"ServerPort,omitempty"`
|
PublicId string `protobuf:"bytes,4,opt,name=PublicId,proto3" json:"PublicId,omitempty"`
|
GbServerPort string `protobuf:"bytes,5,opt,name=GbServerPort,proto3" json:"GbServerPort,omitempty"`
|
IsAuth bool `protobuf:"varint,6,opt,name=IsAuth,proto3" json:"IsAuth,omitempty"`
|
Password string `protobuf:"bytes,7,opt,name=Password,proto3" json:"Password,omitempty"`
|
UpdateTime string `protobuf:"bytes,8,opt,name=UpdateTime,proto3" json:"UpdateTime,omitempty"`
|
}
|
|
func (m *Gb28181Config) Reset() { *m = Gb28181Config{} }
|
func (m *Gb28181Config) String() string { return proto.CompactTextString(m) }
|
func (*Gb28181Config) ProtoMessage() {}
|
func (*Gb28181Config) Descriptor() ([]byte, []int) {
|
return fileDescriptor_ef0304a39f65c1fa, []int{0}
|
}
|
func (m *Gb28181Config) XXX_Unmarshal(b []byte) error {
|
return m.Unmarshal(b)
|
}
|
func (m *Gb28181Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
if deterministic {
|
return xxx_messageInfo_Gb28181Config.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 (m *Gb28181Config) XXX_Merge(src proto.Message) {
|
xxx_messageInfo_Gb28181Config.Merge(m, src)
|
}
|
func (m *Gb28181Config) XXX_Size() int {
|
return m.Size()
|
}
|
func (m *Gb28181Config) XXX_DiscardUnknown() {
|
xxx_messageInfo_Gb28181Config.DiscardUnknown(m)
|
}
|
|
var xxx_messageInfo_Gb28181Config proto.InternalMessageInfo
|
|
func (m *Gb28181Config) GetId() string {
|
if m != nil {
|
return m.Id
|
}
|
return ""
|
}
|
|
func (m *Gb28181Config) GetServerIp() string {
|
if m != nil {
|
return m.ServerIp
|
}
|
return ""
|
}
|
|
func (m *Gb28181Config) GetServerPort() string {
|
if m != nil {
|
return m.ServerPort
|
}
|
return ""
|
}
|
|
func (m *Gb28181Config) GetPublicId() string {
|
if m != nil {
|
return m.PublicId
|
}
|
return ""
|
}
|
|
func (m *Gb28181Config) GetGbServerPort() string {
|
if m != nil {
|
return m.GbServerPort
|
}
|
return ""
|
}
|
|
func (m *Gb28181Config) GetIsAuth() bool {
|
if m != nil {
|
return m.IsAuth
|
}
|
return false
|
}
|
|
func (m *Gb28181Config) GetPassword() string {
|
if m != nil {
|
return m.Password
|
}
|
return ""
|
}
|
|
func (m *Gb28181Config) GetUpdateTime() string {
|
if m != nil {
|
return m.UpdateTime
|
}
|
return ""
|
}
|
|
func init() {
|
proto.RegisterType((*Gb28181Config)(nil), "proto.Gb28181Config")
|
}
|
|
func init() { proto.RegisterFile("gb.proto", fileDescriptor_ef0304a39f65c1fa) }
|
|
var fileDescriptor_ef0304a39f65c1fa = []byte{
|
// 219 bytes of a gzipped FileDescriptorProto
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x48, 0x4f, 0xd2, 0x2b,
|
0x28, 0xca, 0x2f, 0xc9, 0x17, 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, 0x01, 0x01, 0x00,
|
0x00, 0xff, 0xff, 0x0d, 0xf9, 0x67, 0x9c, 0x25, 0x01, 0x00, 0x00,
|
}
|
|
func (m *Gb28181Config) 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 *Gb28181Config) MarshalTo(dAtA []byte) (int, error) {
|
var i int
|
_ = i
|
var l int
|
_ = l
|
if len(m.Id) > 0 {
|
dAtA[i] = 0xa
|
i++
|
i = encodeVarintGb(dAtA, i, uint64(len(m.Id)))
|
i += copy(dAtA[i:], m.Id)
|
}
|
if len(m.ServerIp) > 0 {
|
dAtA[i] = 0x12
|
i++
|
i = encodeVarintGb(dAtA, i, uint64(len(m.ServerIp)))
|
i += copy(dAtA[i:], m.ServerIp)
|
}
|
if len(m.ServerPort) > 0 {
|
dAtA[i] = 0x1a
|
i++
|
i = encodeVarintGb(dAtA, i, uint64(len(m.ServerPort)))
|
i += copy(dAtA[i:], m.ServerPort)
|
}
|
if len(m.PublicId) > 0 {
|
dAtA[i] = 0x22
|
i++
|
i = encodeVarintGb(dAtA, i, uint64(len(m.PublicId)))
|
i += copy(dAtA[i:], m.PublicId)
|
}
|
if len(m.GbServerPort) > 0 {
|
dAtA[i] = 0x2a
|
i++
|
i = encodeVarintGb(dAtA, i, uint64(len(m.GbServerPort)))
|
i += copy(dAtA[i:], m.GbServerPort)
|
}
|
if m.IsAuth {
|
dAtA[i] = 0x30
|
i++
|
if m.IsAuth {
|
dAtA[i] = 1
|
} else {
|
dAtA[i] = 0
|
}
|
i++
|
}
|
if len(m.Password) > 0 {
|
dAtA[i] = 0x3a
|
i++
|
i = encodeVarintGb(dAtA, i, uint64(len(m.Password)))
|
i += copy(dAtA[i:], m.Password)
|
}
|
if len(m.UpdateTime) > 0 {
|
dAtA[i] = 0x42
|
i++
|
i = encodeVarintGb(dAtA, i, uint64(len(m.UpdateTime)))
|
i += copy(dAtA[i:], m.UpdateTime)
|
}
|
return i, nil
|
}
|
|
func encodeVarintGb(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 *Gb28181Config) Size() (n int) {
|
if m == nil {
|
return 0
|
}
|
var l int
|
_ = l
|
l = len(m.Id)
|
if l > 0 {
|
n += 1 + l + sovGb(uint64(l))
|
}
|
l = len(m.ServerIp)
|
if l > 0 {
|
n += 1 + l + sovGb(uint64(l))
|
}
|
l = len(m.ServerPort)
|
if l > 0 {
|
n += 1 + l + sovGb(uint64(l))
|
}
|
l = len(m.PublicId)
|
if l > 0 {
|
n += 1 + l + sovGb(uint64(l))
|
}
|
l = len(m.GbServerPort)
|
if l > 0 {
|
n += 1 + l + sovGb(uint64(l))
|
}
|
if m.IsAuth {
|
n += 2
|
}
|
l = len(m.Password)
|
if l > 0 {
|
n += 1 + l + sovGb(uint64(l))
|
}
|
l = len(m.UpdateTime)
|
if l > 0 {
|
n += 1 + l + sovGb(uint64(l))
|
}
|
return n
|
}
|
|
func sovGb(x uint64) (n int) {
|
return (math_bits.Len64(x|1) + 6) / 7
|
}
|
func sozGb(x uint64) (n int) {
|
return sovGb(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
}
|
func (m *Gb28181Config) 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 ErrIntOverflowGb
|
}
|
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: Gb28181Config: wiretype end group for non-group")
|
}
|
if fieldNum <= 0 {
|
return fmt.Errorf("proto: Gb28181Config: illegal tag %d (wire type %d)", fieldNum, wire)
|
}
|
switch fieldNum {
|
case 1:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
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 ErrInvalidLengthGb
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthGb
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Id = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 2:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field ServerIp", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
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 ErrInvalidLengthGb
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthGb
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.ServerIp = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 3:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field ServerPort", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
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 ErrInvalidLengthGb
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthGb
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.ServerPort = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 4:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field PublicId", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
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 ErrInvalidLengthGb
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthGb
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.PublicId = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 5:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field GbServerPort", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
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 ErrInvalidLengthGb
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthGb
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.GbServerPort = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 6:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field IsAuth", wireType)
|
}
|
var v int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
v |= int(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
m.IsAuth = bool(v != 0)
|
case 7:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
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 ErrInvalidLengthGb
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthGb
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Password = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 8:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowGb
|
}
|
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 ErrInvalidLengthGb
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthGb
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.UpdateTime = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
default:
|
iNdEx = preIndex
|
skippy, err := skipGb(dAtA[iNdEx:])
|
if err != nil {
|
return err
|
}
|
if skippy < 0 {
|
return ErrInvalidLengthGb
|
}
|
if (iNdEx + skippy) < 0 {
|
return ErrInvalidLengthGb
|
}
|
if (iNdEx + skippy) > l {
|
return io.ErrUnexpectedEOF
|
}
|
iNdEx += skippy
|
}
|
}
|
|
if iNdEx > l {
|
return io.ErrUnexpectedEOF
|
}
|
return nil
|
}
|
func skipGb(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, ErrIntOverflowGb
|
}
|
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, ErrIntOverflowGb
|
}
|
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, ErrIntOverflowGb
|
}
|
if iNdEx >= l {
|
return 0, io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
length |= (int(b) & 0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if length < 0 {
|
return 0, ErrInvalidLengthGb
|
}
|
iNdEx += length
|
if iNdEx < 0 {
|
return 0, ErrInvalidLengthGb
|
}
|
return iNdEx, nil
|
case 3:
|
for {
|
var innerWire uint64
|
var start int = iNdEx
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return 0, ErrIntOverflowGb
|
}
|
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 := skipGb(dAtA[start:])
|
if err != nil {
|
return 0, err
|
}
|
iNdEx = start + next
|
if iNdEx < 0 {
|
return 0, ErrInvalidLengthGb
|
}
|
}
|
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 (
|
ErrInvalidLengthGb = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrIntOverflowGb = fmt.Errorf("proto: integer overflow")
|
)
|