empty.pb.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: empty.proto
  3. /*
  4. Package empty is a generated protocol buffer package.
  5. It is generated from these files:
  6. empty.proto
  7. It has these top-level messages:
  8. TestRequest
  9. */
  10. package empty
  11. import proto "github.com/gogo/protobuf/proto"
  12. import fmt "fmt"
  13. import math "math"
  14. import _ "github.com/gogo/protobuf/gogoproto"
  15. import io "io"
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  25. type TestRequest struct {
  26. XXX_unrecognized []byte `json:"-"`
  27. }
  28. func (m *TestRequest) Reset() { *m = TestRequest{} }
  29. func (m *TestRequest) String() string { return proto.CompactTextString(m) }
  30. func (*TestRequest) ProtoMessage() {}
  31. func (*TestRequest) Descriptor() ([]byte, []int) { return fileDescriptorEmpty, []int{0} }
  32. func init() {
  33. proto.RegisterType((*TestRequest)(nil), "empty.TestRequest")
  34. }
  35. func (m *TestRequest) Unmarshal(dAtA []byte) error {
  36. l := len(dAtA)
  37. iNdEx := 0
  38. for iNdEx < l {
  39. preIndex := iNdEx
  40. var wire uint64
  41. for shift := uint(0); ; shift += 7 {
  42. if shift >= 64 {
  43. return ErrIntOverflowEmpty
  44. }
  45. if iNdEx >= l {
  46. return io.ErrUnexpectedEOF
  47. }
  48. b := dAtA[iNdEx]
  49. iNdEx++
  50. wire |= (uint64(b) & 0x7F) << shift
  51. if b < 0x80 {
  52. break
  53. }
  54. }
  55. fieldNum := int32(wire >> 3)
  56. wireType := int(wire & 0x7)
  57. if wireType == 4 {
  58. return fmt.Errorf("proto: TestRequest: wiretype end group for non-group")
  59. }
  60. if fieldNum <= 0 {
  61. return fmt.Errorf("proto: TestRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  62. }
  63. switch fieldNum {
  64. default:
  65. iNdEx = preIndex
  66. skippy, err := skipEmpty(dAtA[iNdEx:])
  67. if err != nil {
  68. return err
  69. }
  70. if skippy < 0 {
  71. return ErrInvalidLengthEmpty
  72. }
  73. if (iNdEx + skippy) > l {
  74. return io.ErrUnexpectedEOF
  75. }
  76. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  77. iNdEx += skippy
  78. }
  79. }
  80. if iNdEx > l {
  81. return io.ErrUnexpectedEOF
  82. }
  83. return nil
  84. }
  85. func skipEmpty(dAtA []byte) (n int, err error) {
  86. l := len(dAtA)
  87. iNdEx := 0
  88. for iNdEx < l {
  89. var wire uint64
  90. for shift := uint(0); ; shift += 7 {
  91. if shift >= 64 {
  92. return 0, ErrIntOverflowEmpty
  93. }
  94. if iNdEx >= l {
  95. return 0, io.ErrUnexpectedEOF
  96. }
  97. b := dAtA[iNdEx]
  98. iNdEx++
  99. wire |= (uint64(b) & 0x7F) << shift
  100. if b < 0x80 {
  101. break
  102. }
  103. }
  104. wireType := int(wire & 0x7)
  105. switch wireType {
  106. case 0:
  107. for shift := uint(0); ; shift += 7 {
  108. if shift >= 64 {
  109. return 0, ErrIntOverflowEmpty
  110. }
  111. if iNdEx >= l {
  112. return 0, io.ErrUnexpectedEOF
  113. }
  114. iNdEx++
  115. if dAtA[iNdEx-1] < 0x80 {
  116. break
  117. }
  118. }
  119. return iNdEx, nil
  120. case 1:
  121. iNdEx += 8
  122. return iNdEx, nil
  123. case 2:
  124. var length int
  125. for shift := uint(0); ; shift += 7 {
  126. if shift >= 64 {
  127. return 0, ErrIntOverflowEmpty
  128. }
  129. if iNdEx >= l {
  130. return 0, io.ErrUnexpectedEOF
  131. }
  132. b := dAtA[iNdEx]
  133. iNdEx++
  134. length |= (int(b) & 0x7F) << shift
  135. if b < 0x80 {
  136. break
  137. }
  138. }
  139. iNdEx += length
  140. if length < 0 {
  141. return 0, ErrInvalidLengthEmpty
  142. }
  143. return iNdEx, nil
  144. case 3:
  145. for {
  146. var innerWire uint64
  147. var start int = iNdEx
  148. for shift := uint(0); ; shift += 7 {
  149. if shift >= 64 {
  150. return 0, ErrIntOverflowEmpty
  151. }
  152. if iNdEx >= l {
  153. return 0, io.ErrUnexpectedEOF
  154. }
  155. b := dAtA[iNdEx]
  156. iNdEx++
  157. innerWire |= (uint64(b) & 0x7F) << shift
  158. if b < 0x80 {
  159. break
  160. }
  161. }
  162. innerWireType := int(innerWire & 0x7)
  163. if innerWireType == 4 {
  164. break
  165. }
  166. next, err := skipEmpty(dAtA[start:])
  167. if err != nil {
  168. return 0, err
  169. }
  170. iNdEx = start + next
  171. }
  172. return iNdEx, nil
  173. case 4:
  174. return iNdEx, nil
  175. case 5:
  176. iNdEx += 4
  177. return iNdEx, nil
  178. default:
  179. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  180. }
  181. }
  182. panic("unreachable")
  183. }
  184. var (
  185. ErrInvalidLengthEmpty = fmt.Errorf("proto: negative length found during unmarshaling")
  186. ErrIntOverflowEmpty = fmt.Errorf("proto: integer overflow")
  187. )
  188. func init() { proto.RegisterFile("empty.proto", fileDescriptorEmpty) }
  189. var fileDescriptorEmpty = []byte{
  190. // 92 bytes of a gzipped FileDescriptorProto
  191. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0xcd, 0x2d, 0x28,
  192. 0xa9, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x73, 0xa4, 0x74, 0xd3, 0x33, 0x4b,
  193. 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 0xc1, 0xb2, 0x49,
  194. 0xa5, 0x69, 0x60, 0x1e, 0x98, 0x03, 0x66, 0x41, 0x74, 0x29, 0xf1, 0x72, 0x71, 0x87, 0xa4, 0x16,
  195. 0x97, 0x04, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x38, 0xb1, 0x5c, 0x78, 0x24, 0xc7, 0x08, 0x08,
  196. 0x00, 0x00, 0xff, 0xff, 0x0e, 0xe3, 0x23, 0x3d, 0x58, 0x00, 0x00, 0x00,
  197. }