payloads.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: payloads.proto
  3. package grpc_testing
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type ByteBufferParams struct {
  17. ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"`
  18. RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"`
  19. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized []byte `json:"-"`
  21. XXX_sizecache int32 `json:"-"`
  22. }
  23. func (m *ByteBufferParams) Reset() { *m = ByteBufferParams{} }
  24. func (m *ByteBufferParams) String() string { return proto.CompactTextString(m) }
  25. func (*ByteBufferParams) ProtoMessage() {}
  26. func (*ByteBufferParams) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_payloads_3abc71de35f06c83, []int{0}
  28. }
  29. func (m *ByteBufferParams) XXX_Unmarshal(b []byte) error {
  30. return xxx_messageInfo_ByteBufferParams.Unmarshal(m, b)
  31. }
  32. func (m *ByteBufferParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  33. return xxx_messageInfo_ByteBufferParams.Marshal(b, m, deterministic)
  34. }
  35. func (dst *ByteBufferParams) XXX_Merge(src proto.Message) {
  36. xxx_messageInfo_ByteBufferParams.Merge(dst, src)
  37. }
  38. func (m *ByteBufferParams) XXX_Size() int {
  39. return xxx_messageInfo_ByteBufferParams.Size(m)
  40. }
  41. func (m *ByteBufferParams) XXX_DiscardUnknown() {
  42. xxx_messageInfo_ByteBufferParams.DiscardUnknown(m)
  43. }
  44. var xxx_messageInfo_ByteBufferParams proto.InternalMessageInfo
  45. func (m *ByteBufferParams) GetReqSize() int32 {
  46. if m != nil {
  47. return m.ReqSize
  48. }
  49. return 0
  50. }
  51. func (m *ByteBufferParams) GetRespSize() int32 {
  52. if m != nil {
  53. return m.RespSize
  54. }
  55. return 0
  56. }
  57. type SimpleProtoParams struct {
  58. ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"`
  59. RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"`
  60. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  61. XXX_unrecognized []byte `json:"-"`
  62. XXX_sizecache int32 `json:"-"`
  63. }
  64. func (m *SimpleProtoParams) Reset() { *m = SimpleProtoParams{} }
  65. func (m *SimpleProtoParams) String() string { return proto.CompactTextString(m) }
  66. func (*SimpleProtoParams) ProtoMessage() {}
  67. func (*SimpleProtoParams) Descriptor() ([]byte, []int) {
  68. return fileDescriptor_payloads_3abc71de35f06c83, []int{1}
  69. }
  70. func (m *SimpleProtoParams) XXX_Unmarshal(b []byte) error {
  71. return xxx_messageInfo_SimpleProtoParams.Unmarshal(m, b)
  72. }
  73. func (m *SimpleProtoParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  74. return xxx_messageInfo_SimpleProtoParams.Marshal(b, m, deterministic)
  75. }
  76. func (dst *SimpleProtoParams) XXX_Merge(src proto.Message) {
  77. xxx_messageInfo_SimpleProtoParams.Merge(dst, src)
  78. }
  79. func (m *SimpleProtoParams) XXX_Size() int {
  80. return xxx_messageInfo_SimpleProtoParams.Size(m)
  81. }
  82. func (m *SimpleProtoParams) XXX_DiscardUnknown() {
  83. xxx_messageInfo_SimpleProtoParams.DiscardUnknown(m)
  84. }
  85. var xxx_messageInfo_SimpleProtoParams proto.InternalMessageInfo
  86. func (m *SimpleProtoParams) GetReqSize() int32 {
  87. if m != nil {
  88. return m.ReqSize
  89. }
  90. return 0
  91. }
  92. func (m *SimpleProtoParams) GetRespSize() int32 {
  93. if m != nil {
  94. return m.RespSize
  95. }
  96. return 0
  97. }
  98. type ComplexProtoParams struct {
  99. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  100. XXX_unrecognized []byte `json:"-"`
  101. XXX_sizecache int32 `json:"-"`
  102. }
  103. func (m *ComplexProtoParams) Reset() { *m = ComplexProtoParams{} }
  104. func (m *ComplexProtoParams) String() string { return proto.CompactTextString(m) }
  105. func (*ComplexProtoParams) ProtoMessage() {}
  106. func (*ComplexProtoParams) Descriptor() ([]byte, []int) {
  107. return fileDescriptor_payloads_3abc71de35f06c83, []int{2}
  108. }
  109. func (m *ComplexProtoParams) XXX_Unmarshal(b []byte) error {
  110. return xxx_messageInfo_ComplexProtoParams.Unmarshal(m, b)
  111. }
  112. func (m *ComplexProtoParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  113. return xxx_messageInfo_ComplexProtoParams.Marshal(b, m, deterministic)
  114. }
  115. func (dst *ComplexProtoParams) XXX_Merge(src proto.Message) {
  116. xxx_messageInfo_ComplexProtoParams.Merge(dst, src)
  117. }
  118. func (m *ComplexProtoParams) XXX_Size() int {
  119. return xxx_messageInfo_ComplexProtoParams.Size(m)
  120. }
  121. func (m *ComplexProtoParams) XXX_DiscardUnknown() {
  122. xxx_messageInfo_ComplexProtoParams.DiscardUnknown(m)
  123. }
  124. var xxx_messageInfo_ComplexProtoParams proto.InternalMessageInfo
  125. type PayloadConfig struct {
  126. // Types that are valid to be assigned to Payload:
  127. // *PayloadConfig_BytebufParams
  128. // *PayloadConfig_SimpleParams
  129. // *PayloadConfig_ComplexParams
  130. Payload isPayloadConfig_Payload `protobuf_oneof:"payload"`
  131. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  132. XXX_unrecognized []byte `json:"-"`
  133. XXX_sizecache int32 `json:"-"`
  134. }
  135. func (m *PayloadConfig) Reset() { *m = PayloadConfig{} }
  136. func (m *PayloadConfig) String() string { return proto.CompactTextString(m) }
  137. func (*PayloadConfig) ProtoMessage() {}
  138. func (*PayloadConfig) Descriptor() ([]byte, []int) {
  139. return fileDescriptor_payloads_3abc71de35f06c83, []int{3}
  140. }
  141. func (m *PayloadConfig) XXX_Unmarshal(b []byte) error {
  142. return xxx_messageInfo_PayloadConfig.Unmarshal(m, b)
  143. }
  144. func (m *PayloadConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  145. return xxx_messageInfo_PayloadConfig.Marshal(b, m, deterministic)
  146. }
  147. func (dst *PayloadConfig) XXX_Merge(src proto.Message) {
  148. xxx_messageInfo_PayloadConfig.Merge(dst, src)
  149. }
  150. func (m *PayloadConfig) XXX_Size() int {
  151. return xxx_messageInfo_PayloadConfig.Size(m)
  152. }
  153. func (m *PayloadConfig) XXX_DiscardUnknown() {
  154. xxx_messageInfo_PayloadConfig.DiscardUnknown(m)
  155. }
  156. var xxx_messageInfo_PayloadConfig proto.InternalMessageInfo
  157. type isPayloadConfig_Payload interface {
  158. isPayloadConfig_Payload()
  159. }
  160. type PayloadConfig_BytebufParams struct {
  161. BytebufParams *ByteBufferParams `protobuf:"bytes,1,opt,name=bytebuf_params,json=bytebufParams,proto3,oneof"`
  162. }
  163. type PayloadConfig_SimpleParams struct {
  164. SimpleParams *SimpleProtoParams `protobuf:"bytes,2,opt,name=simple_params,json=simpleParams,proto3,oneof"`
  165. }
  166. type PayloadConfig_ComplexParams struct {
  167. ComplexParams *ComplexProtoParams `protobuf:"bytes,3,opt,name=complex_params,json=complexParams,proto3,oneof"`
  168. }
  169. func (*PayloadConfig_BytebufParams) isPayloadConfig_Payload() {}
  170. func (*PayloadConfig_SimpleParams) isPayloadConfig_Payload() {}
  171. func (*PayloadConfig_ComplexParams) isPayloadConfig_Payload() {}
  172. func (m *PayloadConfig) GetPayload() isPayloadConfig_Payload {
  173. if m != nil {
  174. return m.Payload
  175. }
  176. return nil
  177. }
  178. func (m *PayloadConfig) GetBytebufParams() *ByteBufferParams {
  179. if x, ok := m.GetPayload().(*PayloadConfig_BytebufParams); ok {
  180. return x.BytebufParams
  181. }
  182. return nil
  183. }
  184. func (m *PayloadConfig) GetSimpleParams() *SimpleProtoParams {
  185. if x, ok := m.GetPayload().(*PayloadConfig_SimpleParams); ok {
  186. return x.SimpleParams
  187. }
  188. return nil
  189. }
  190. func (m *PayloadConfig) GetComplexParams() *ComplexProtoParams {
  191. if x, ok := m.GetPayload().(*PayloadConfig_ComplexParams); ok {
  192. return x.ComplexParams
  193. }
  194. return nil
  195. }
  196. // XXX_OneofFuncs is for the internal use of the proto package.
  197. func (*PayloadConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  198. return _PayloadConfig_OneofMarshaler, _PayloadConfig_OneofUnmarshaler, _PayloadConfig_OneofSizer, []interface{}{
  199. (*PayloadConfig_BytebufParams)(nil),
  200. (*PayloadConfig_SimpleParams)(nil),
  201. (*PayloadConfig_ComplexParams)(nil),
  202. }
  203. }
  204. func _PayloadConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  205. m := msg.(*PayloadConfig)
  206. // payload
  207. switch x := m.Payload.(type) {
  208. case *PayloadConfig_BytebufParams:
  209. b.EncodeVarint(1<<3 | proto.WireBytes)
  210. if err := b.EncodeMessage(x.BytebufParams); err != nil {
  211. return err
  212. }
  213. case *PayloadConfig_SimpleParams:
  214. b.EncodeVarint(2<<3 | proto.WireBytes)
  215. if err := b.EncodeMessage(x.SimpleParams); err != nil {
  216. return err
  217. }
  218. case *PayloadConfig_ComplexParams:
  219. b.EncodeVarint(3<<3 | proto.WireBytes)
  220. if err := b.EncodeMessage(x.ComplexParams); err != nil {
  221. return err
  222. }
  223. case nil:
  224. default:
  225. return fmt.Errorf("PayloadConfig.Payload has unexpected type %T", x)
  226. }
  227. return nil
  228. }
  229. func _PayloadConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  230. m := msg.(*PayloadConfig)
  231. switch tag {
  232. case 1: // payload.bytebuf_params
  233. if wire != proto.WireBytes {
  234. return true, proto.ErrInternalBadWireType
  235. }
  236. msg := new(ByteBufferParams)
  237. err := b.DecodeMessage(msg)
  238. m.Payload = &PayloadConfig_BytebufParams{msg}
  239. return true, err
  240. case 2: // payload.simple_params
  241. if wire != proto.WireBytes {
  242. return true, proto.ErrInternalBadWireType
  243. }
  244. msg := new(SimpleProtoParams)
  245. err := b.DecodeMessage(msg)
  246. m.Payload = &PayloadConfig_SimpleParams{msg}
  247. return true, err
  248. case 3: // payload.complex_params
  249. if wire != proto.WireBytes {
  250. return true, proto.ErrInternalBadWireType
  251. }
  252. msg := new(ComplexProtoParams)
  253. err := b.DecodeMessage(msg)
  254. m.Payload = &PayloadConfig_ComplexParams{msg}
  255. return true, err
  256. default:
  257. return false, nil
  258. }
  259. }
  260. func _PayloadConfig_OneofSizer(msg proto.Message) (n int) {
  261. m := msg.(*PayloadConfig)
  262. // payload
  263. switch x := m.Payload.(type) {
  264. case *PayloadConfig_BytebufParams:
  265. s := proto.Size(x.BytebufParams)
  266. n += 1 // tag and wire
  267. n += proto.SizeVarint(uint64(s))
  268. n += s
  269. case *PayloadConfig_SimpleParams:
  270. s := proto.Size(x.SimpleParams)
  271. n += 1 // tag and wire
  272. n += proto.SizeVarint(uint64(s))
  273. n += s
  274. case *PayloadConfig_ComplexParams:
  275. s := proto.Size(x.ComplexParams)
  276. n += 1 // tag and wire
  277. n += proto.SizeVarint(uint64(s))
  278. n += s
  279. case nil:
  280. default:
  281. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  282. }
  283. return n
  284. }
  285. func init() {
  286. proto.RegisterType((*ByteBufferParams)(nil), "grpc.testing.ByteBufferParams")
  287. proto.RegisterType((*SimpleProtoParams)(nil), "grpc.testing.SimpleProtoParams")
  288. proto.RegisterType((*ComplexProtoParams)(nil), "grpc.testing.ComplexProtoParams")
  289. proto.RegisterType((*PayloadConfig)(nil), "grpc.testing.PayloadConfig")
  290. }
  291. func init() { proto.RegisterFile("payloads.proto", fileDescriptor_payloads_3abc71de35f06c83) }
  292. var fileDescriptor_payloads_3abc71de35f06c83 = []byte{
  293. // 254 bytes of a gzipped FileDescriptorProto
  294. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2b, 0x48, 0xac, 0xcc,
  295. 0xc9, 0x4f, 0x4c, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x49, 0x2f, 0x2a, 0x48,
  296. 0xd6, 0x2b, 0x49, 0x2d, 0x2e, 0xc9, 0xcc, 0x4b, 0x57, 0xf2, 0xe2, 0x12, 0x70, 0xaa, 0x2c, 0x49,
  297. 0x75, 0x2a, 0x4d, 0x4b, 0x4b, 0x2d, 0x0a, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x16, 0x92, 0xe4, 0xe2,
  298. 0x28, 0x4a, 0x2d, 0x8c, 0x2f, 0xce, 0xac, 0x4a, 0x95, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x0d, 0x62,
  299. 0x2f, 0x4a, 0x2d, 0x0c, 0xce, 0xac, 0x4a, 0x15, 0x92, 0xe6, 0xe2, 0x2c, 0x4a, 0x2d, 0x2e, 0x80,
  300. 0xc8, 0x31, 0x81, 0xe5, 0x38, 0x40, 0x02, 0x20, 0x49, 0x25, 0x6f, 0x2e, 0xc1, 0xe0, 0xcc, 0xdc,
  301. 0x82, 0x9c, 0xd4, 0x00, 0x90, 0x45, 0x14, 0x1a, 0x26, 0xc2, 0x25, 0xe4, 0x9c, 0x0f, 0x32, 0xac,
  302. 0x02, 0xc9, 0x34, 0xa5, 0x6f, 0x8c, 0x5c, 0xbc, 0x01, 0x10, 0xff, 0x38, 0xe7, 0xe7, 0xa5, 0x65,
  303. 0xa6, 0x0b, 0xb9, 0x73, 0xf1, 0x25, 0x55, 0x96, 0xa4, 0x26, 0x95, 0xa6, 0xc5, 0x17, 0x80, 0xd5,
  304. 0x80, 0x6d, 0xe1, 0x36, 0x92, 0xd3, 0x43, 0xf6, 0xa7, 0x1e, 0xba, 0x27, 0x3d, 0x18, 0x82, 0x78,
  305. 0xa1, 0xfa, 0xa0, 0x0e, 0x75, 0xe3, 0xe2, 0x2d, 0x06, 0xbb, 0x1e, 0x66, 0x0e, 0x13, 0xd8, 0x1c,
  306. 0x79, 0x54, 0x73, 0x30, 0x3c, 0xe8, 0xc1, 0x10, 0xc4, 0x03, 0xd1, 0x07, 0x35, 0xc7, 0x93, 0x8b,
  307. 0x2f, 0x19, 0xe2, 0x70, 0x98, 0x41, 0xcc, 0x60, 0x83, 0x14, 0x50, 0x0d, 0xc2, 0xf4, 0x1c, 0xc8,
  308. 0x49, 0x50, 0x9d, 0x10, 0x01, 0x27, 0x4e, 0x2e, 0x76, 0x68, 0xe4, 0x25, 0xb1, 0x81, 0x23, 0xcf,
  309. 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x8c, 0x18, 0x4e, 0xce, 0x01, 0x00, 0x00,
  310. }