// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: ibtpx.proto package pb import ( fmt "fmt" io "io" math "math" math_bits "math/bits" proto "github.com/gogo/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var ( _ = proto.Marshal _ = fmt.Errorf _ = 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package type IBTPX struct { Ibtp *IBTP `protobuf:"bytes,1,opt,name=ibtp,proto3" json:"ibtp,omitempty"` // route mode Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` RouteSign []string `protobuf:"bytes,3,rep,name=routeSign,proto3" json:"routeSign,omitempty"` RouteMethod string `protobuf:"bytes,4,opt,name=routeMethod,proto3" json:"routeMethod,omitempty"` RouteMethodArg []string `protobuf:"bytes,5,rep,name=routeMethodArg,proto3" json:"routeMethodArg,omitempty"` IsValid bool `protobuf:"varint,6,opt,name=IsValid,proto3" json:"IsValid,omitempty"` } func (m *IBTPX) Reset() { *m = IBTPX{} } func (m *IBTPX) String() string { return proto.CompactTextString(m) } func (*IBTPX) ProtoMessage() {} func (*IBTPX) Descriptor() ([]byte, []int) { return fileDescriptor_8402d80e061d514a, []int{0} } func (m *IBTPX) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IBTPX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_IBTPX.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *IBTPX) XXX_Merge(src proto.Message) { xxx_messageInfo_IBTPX.Merge(m, src) } func (m *IBTPX) XXX_Size() int { return m.Size() } func (m *IBTPX) XXX_DiscardUnknown() { xxx_messageInfo_IBTPX.DiscardUnknown(m) } var xxx_messageInfo_IBTPX proto.InternalMessageInfo func (m *IBTPX) GetIbtp() *IBTP { if m != nil { return m.Ibtp } return nil } func (m *IBTPX) GetMode() string { if m != nil { return m.Mode } return "" } func (m *IBTPX) GetRouteSign() []string { if m != nil { return m.RouteSign } return nil } func (m *IBTPX) GetRouteMethod() string { if m != nil { return m.RouteMethod } return "" } func (m *IBTPX) GetRouteMethodArg() []string { if m != nil { return m.RouteMethodArg } return nil } func (m *IBTPX) GetIsValid() bool { if m != nil { return m.IsValid } return false } func init() { proto.RegisterType((*IBTPX)(nil), "pb.IBTPX") } func init() { proto.RegisterFile("ibtpx.proto", fileDescriptor_8402d80e061d514a) } var fileDescriptor_8402d80e061d514a = []byte{ // 203 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xce, 0x4c, 0x2a, 0x29, 0xa8, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92, 0xe2, 0x02, 0x09, 0x40, 0xf8, 0x4a, 0xbb, 0x19, 0xb9, 0x58, 0x3d, 0x9d, 0x42, 0x02, 0x22, 0x84, 0x64, 0xb8, 0x58, 0x40, 0xe2, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x1c, 0x7a, 0x05, 0x49, 0x7a, 0x20, 0x89, 0x20, 0xb0, 0xa8, 0x90, 0x10, 0x17, 0x4b, 0x6e, 0x7e, 0x4a, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x98, 0x2d, 0x24, 0xc3, 0xc5, 0x59, 0x94, 0x5f, 0x5a, 0x92, 0x1a, 0x9c, 0x99, 0x9e, 0x27, 0xc1, 0xac, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x10, 0x10, 0x52, 0xe0, 0xe2, 0x06, 0x73, 0x7c, 0x53, 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x58, 0xc0, 0x1a, 0x91, 0x85, 0x84, 0xd4, 0xb8, 0xf8, 0x90, 0xb8, 0x8e, 0x45, 0xe9, 0x12, 0xac, 0x60, 0x43, 0xd0, 0x44, 0x85, 0x24, 0xb8, 0xd8, 0x3d, 0x8b, 0xc3, 0x12, 0x73, 0x32, 0x53, 0x24, 0xd8, 0x14, 0x18, 0x35, 0x38, 0x82, 0x60, 0x5c, 0x27, 0x89, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x48, 0x62, 0x03, 0x7b, 0xcf, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x30, 0xe4, 0x04, 0x14, 0xfd, 0x00, 0x00, 0x00, } func (m *IBTPX) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IBTPX) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IBTPX) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.IsValid { i-- if m.IsValid { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x30 } if len(m.RouteMethodArg) > 0 { for iNdEx := len(m.RouteMethodArg) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.RouteMethodArg[iNdEx]) copy(dAtA[i:], m.RouteMethodArg[iNdEx]) i = encodeVarintIbtpx(dAtA, i, uint64(len(m.RouteMethodArg[iNdEx]))) i-- dAtA[i] = 0x2a } } if len(m.RouteMethod) > 0 { i -= len(m.RouteMethod) copy(dAtA[i:], m.RouteMethod) i = encodeVarintIbtpx(dAtA, i, uint64(len(m.RouteMethod))) i-- dAtA[i] = 0x22 } if len(m.RouteSign) > 0 { for iNdEx := len(m.RouteSign) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.RouteSign[iNdEx]) copy(dAtA[i:], m.RouteSign[iNdEx]) i = encodeVarintIbtpx(dAtA, i, uint64(len(m.RouteSign[iNdEx]))) i-- dAtA[i] = 0x1a } } if len(m.Mode) > 0 { i -= len(m.Mode) copy(dAtA[i:], m.Mode) i = encodeVarintIbtpx(dAtA, i, uint64(len(m.Mode))) i-- dAtA[i] = 0x12 } if m.Ibtp != nil { { size, err := m.Ibtp.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintIbtpx(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintIbtpx(dAtA []byte, offset int, v uint64) int { offset -= sovIbtpx(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *IBTPX) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Ibtp != nil { l = m.Ibtp.Size() n += 1 + l + sovIbtpx(uint64(l)) } l = len(m.Mode) if l > 0 { n += 1 + l + sovIbtpx(uint64(l)) } if len(m.RouteSign) > 0 { for _, s := range m.RouteSign { l = len(s) n += 1 + l + sovIbtpx(uint64(l)) } } l = len(m.RouteMethod) if l > 0 { n += 1 + l + sovIbtpx(uint64(l)) } if len(m.RouteMethodArg) > 0 { for _, s := range m.RouteMethodArg { l = len(s) n += 1 + l + sovIbtpx(uint64(l)) } } if m.IsValid { n += 2 } return n } func sovIbtpx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozIbtpx(x uint64) (n int) { return sovIbtpx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *IBTPX) 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 ErrIntOverflowIbtpx } 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: IBTPX: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IBTPX: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Ibtp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIbtpx } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthIbtpx } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthIbtpx } if postIndex > l { return io.ErrUnexpectedEOF } if m.Ibtp == nil { m.Ibtp = &IBTP{} } if err := m.Ibtp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIbtpx } 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 ErrInvalidLengthIbtpx } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIbtpx } if postIndex > l { return io.ErrUnexpectedEOF } m.Mode = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RouteSign", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIbtpx } 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 ErrInvalidLengthIbtpx } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIbtpx } if postIndex > l { return io.ErrUnexpectedEOF } m.RouteSign = append(m.RouteSign, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RouteMethod", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIbtpx } 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 ErrInvalidLengthIbtpx } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIbtpx } if postIndex > l { return io.ErrUnexpectedEOF } m.RouteMethod = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RouteMethodArg", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIbtpx } 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 ErrInvalidLengthIbtpx } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIbtpx } if postIndex > l { return io.ErrUnexpectedEOF } m.RouteMethodArg = append(m.RouteMethodArg, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsValid", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIbtpx } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.IsValid = bool(v != 0) default: iNdEx = preIndex skippy, err := skipIbtpx(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthIbtpx } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipIbtpx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowIbtpx } 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, ErrIntOverflowIbtpx } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowIbtpx } 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, ErrInvalidLengthIbtpx } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupIbtpx } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthIbtpx } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthIbtpx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIbtpx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIbtpx = fmt.Errorf("proto: unexpected end of group") )