helloworld.pb.go 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: helloworld.proto
  3. package passportpb
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  17. type HelloRequest struct {
  18. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  19. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized []byte `json:"-"`
  21. XXX_sizecache int32 `json:"-"`
  22. }
  23. func (m *HelloRequest) Reset() { *m = HelloRequest{} }
  24. func (m *HelloRequest) String() string { return proto.CompactTextString(m) }
  25. func (*HelloRequest) ProtoMessage() {}
  26. func (*HelloRequest) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_helloworld_855a0359e361950c, []int{0}
  28. }
  29. func (m *HelloRequest) XXX_Unmarshal(b []byte) error {
  30. return xxx_messageInfo_HelloRequest.Unmarshal(m, b)
  31. }
  32. func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  33. return xxx_messageInfo_HelloRequest.Marshal(b, m, deterministic)
  34. }
  35. func (dst *HelloRequest) XXX_Merge(src proto.Message) {
  36. xxx_messageInfo_HelloRequest.Merge(dst, src)
  37. }
  38. func (m *HelloRequest) XXX_Size() int {
  39. return xxx_messageInfo_HelloRequest.Size(m)
  40. }
  41. func (m *HelloRequest) XXX_DiscardUnknown() {
  42. xxx_messageInfo_HelloRequest.DiscardUnknown(m)
  43. }
  44. var xxx_messageInfo_HelloRequest proto.InternalMessageInfo
  45. func (m *HelloRequest) GetName() string {
  46. if m != nil {
  47. return m.Name
  48. }
  49. return ""
  50. }
  51. type HelloReply struct {
  52. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  53. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  54. XXX_unrecognized []byte `json:"-"`
  55. XXX_sizecache int32 `json:"-"`
  56. }
  57. func (m *HelloReply) Reset() { *m = HelloReply{} }
  58. func (m *HelloReply) String() string { return proto.CompactTextString(m) }
  59. func (*HelloReply) ProtoMessage() {}
  60. func (*HelloReply) Descriptor() ([]byte, []int) {
  61. return fileDescriptor_helloworld_855a0359e361950c, []int{1}
  62. }
  63. func (m *HelloReply) XXX_Unmarshal(b []byte) error {
  64. return xxx_messageInfo_HelloReply.Unmarshal(m, b)
  65. }
  66. func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  67. return xxx_messageInfo_HelloReply.Marshal(b, m, deterministic)
  68. }
  69. func (dst *HelloReply) XXX_Merge(src proto.Message) {
  70. xxx_messageInfo_HelloReply.Merge(dst, src)
  71. }
  72. func (m *HelloReply) XXX_Size() int {
  73. return xxx_messageInfo_HelloReply.Size(m)
  74. }
  75. func (m *HelloReply) XXX_DiscardUnknown() {
  76. xxx_messageInfo_HelloReply.DiscardUnknown(m)
  77. }
  78. var xxx_messageInfo_HelloReply proto.InternalMessageInfo
  79. func (m *HelloReply) GetName() string {
  80. if m != nil {
  81. return m.Name
  82. }
  83. return ""
  84. }
  85. func init() {
  86. proto.RegisterType((*HelloRequest)(nil), "passportpb.HelloRequest")
  87. proto.RegisterType((*HelloReply)(nil), "passportpb.HelloReply")
  88. }
  89. func NewPopulatedHelloRequest(r randyHelloworld, easy bool) *HelloRequest {
  90. this := &HelloRequest{}
  91. this.Name = string(randStringHelloworld(r))
  92. if !easy && r.Intn(10) != 0 {
  93. this.XXX_unrecognized = randUnrecognizedHelloworld(r, 2)
  94. }
  95. return this
  96. }
  97. func NewPopulatedHelloReply(r randyHelloworld, easy bool) *HelloReply {
  98. this := &HelloReply{}
  99. this.Name = string(randStringHelloworld(r))
  100. if !easy && r.Intn(10) != 0 {
  101. this.XXX_unrecognized = randUnrecognizedHelloworld(r, 2)
  102. }
  103. return this
  104. }
  105. type randyHelloworld interface {
  106. Float32() float32
  107. Float64() float64
  108. Int63() int64
  109. Int31() int32
  110. Uint32() uint32
  111. Intn(n int) int
  112. }
  113. func randUTF8RuneHelloworld(r randyHelloworld) rune {
  114. ru := r.Intn(62)
  115. if ru < 10 {
  116. return rune(ru + 48)
  117. } else if ru < 36 {
  118. return rune(ru + 55)
  119. }
  120. return rune(ru + 61)
  121. }
  122. func randStringHelloworld(r randyHelloworld) string {
  123. v1 := r.Intn(100)
  124. tmps := make([]rune, v1)
  125. for i := 0; i < v1; i++ {
  126. tmps[i] = randUTF8RuneHelloworld(r)
  127. }
  128. return string(tmps)
  129. }
  130. func randUnrecognizedHelloworld(r randyHelloworld, maxFieldNumber int) (dAtA []byte) {
  131. l := r.Intn(5)
  132. for i := 0; i < l; i++ {
  133. wire := r.Intn(4)
  134. if wire == 3 {
  135. wire = 5
  136. }
  137. fieldNumber := maxFieldNumber + r.Intn(100)
  138. dAtA = randFieldHelloworld(dAtA, r, fieldNumber, wire)
  139. }
  140. return dAtA
  141. }
  142. func randFieldHelloworld(dAtA []byte, r randyHelloworld, fieldNumber int, wire int) []byte {
  143. key := uint32(fieldNumber)<<3 | uint32(wire)
  144. switch wire {
  145. case 0:
  146. dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
  147. v2 := r.Int63()
  148. if r.Intn(2) == 0 {
  149. v2 *= -1
  150. }
  151. dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(v2))
  152. case 1:
  153. dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
  154. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  155. case 2:
  156. dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
  157. ll := r.Intn(100)
  158. dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(ll))
  159. for j := 0; j < ll; j++ {
  160. dAtA = append(dAtA, byte(r.Intn(256)))
  161. }
  162. default:
  163. dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
  164. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  165. }
  166. return dAtA
  167. }
  168. func encodeVarintPopulateHelloworld(dAtA []byte, v uint64) []byte {
  169. for v >= 1<<7 {
  170. dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
  171. v >>= 7
  172. }
  173. dAtA = append(dAtA, uint8(v))
  174. return dAtA
  175. }
  176. func init() { proto.RegisterFile("helloworld.proto", fileDescriptor_helloworld_855a0359e361950c) }
  177. var fileDescriptor_helloworld_855a0359e361950c = []byte{
  178. // 141 bytes of a gzipped FileDescriptorProto
  179. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc8, 0x48, 0xcd, 0xc9,
  180. 0xc9, 0x2f, 0xcf, 0x2f, 0xca, 0x49, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48,
  181. 0x2c, 0x2e, 0x2e, 0xc8, 0x2f, 0x2a, 0x29, 0x48, 0x92, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d,
  182. 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, 0x2b, 0x49, 0x2a, 0x4d, 0x03,
  183. 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0xa2, 0x55, 0x49, 0x89, 0x8b, 0xc7, 0x03, 0x64, 0x5c, 0x50, 0x6a,
  184. 0x61, 0x69, 0x6a, 0x71, 0x89, 0x90, 0x10, 0x17, 0x4b, 0x5e, 0x62, 0x6e, 0xaa, 0x04, 0xa3, 0x02,
  185. 0xa3, 0x06, 0x67, 0x10, 0x98, 0xad, 0xa4, 0xc0, 0xc5, 0x05, 0x55, 0x53, 0x90, 0x53, 0x89, 0x4d,
  186. 0x85, 0x93, 0xc0, 0x8f, 0x87, 0x72, 0x8c, 0x51, 0x48, 0xce, 0x48, 0x62, 0x03, 0x1b, 0x6f, 0x0c,
  187. 0x08, 0x00, 0x00, 0xff, 0xff, 0x0f, 0xe3, 0xab, 0xe3, 0xad, 0x00, 0x00, 0x00,
  188. }