messages.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: messages.proto
  3. package grpc_testing
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. // The type of payload that should be returned.
  19. type PayloadType int32
  20. const (
  21. // Compressable text format.
  22. PayloadType_COMPRESSABLE PayloadType = 0
  23. // Uncompressable binary format.
  24. PayloadType_UNCOMPRESSABLE PayloadType = 1
  25. // Randomly chosen from all other formats defined in this enum.
  26. PayloadType_RANDOM PayloadType = 2
  27. )
  28. var PayloadType_name = map[int32]string{
  29. 0: "COMPRESSABLE",
  30. 1: "UNCOMPRESSABLE",
  31. 2: "RANDOM",
  32. }
  33. var PayloadType_value = map[string]int32{
  34. "COMPRESSABLE": 0,
  35. "UNCOMPRESSABLE": 1,
  36. "RANDOM": 2,
  37. }
  38. func (x PayloadType) String() string {
  39. return proto.EnumName(PayloadType_name, int32(x))
  40. }
  41. func (PayloadType) EnumDescriptor() ([]byte, []int) {
  42. return fileDescriptor_4dc296cbfe5ffcd5, []int{0}
  43. }
  44. // Compression algorithms
  45. type CompressionType int32
  46. const (
  47. // No compression
  48. CompressionType_NONE CompressionType = 0
  49. CompressionType_GZIP CompressionType = 1
  50. CompressionType_DEFLATE CompressionType = 2
  51. )
  52. var CompressionType_name = map[int32]string{
  53. 0: "NONE",
  54. 1: "GZIP",
  55. 2: "DEFLATE",
  56. }
  57. var CompressionType_value = map[string]int32{
  58. "NONE": 0,
  59. "GZIP": 1,
  60. "DEFLATE": 2,
  61. }
  62. func (x CompressionType) String() string {
  63. return proto.EnumName(CompressionType_name, int32(x))
  64. }
  65. func (CompressionType) EnumDescriptor() ([]byte, []int) {
  66. return fileDescriptor_4dc296cbfe5ffcd5, []int{1}
  67. }
  68. // A block of data, to simply increase gRPC message size.
  69. type Payload struct {
  70. // The type of data in body.
  71. Type PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=grpc.testing.PayloadType" json:"type,omitempty"`
  72. // Primary contents of payload.
  73. Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
  74. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  75. XXX_unrecognized []byte `json:"-"`
  76. XXX_sizecache int32 `json:"-"`
  77. }
  78. func (m *Payload) Reset() { *m = Payload{} }
  79. func (m *Payload) String() string { return proto.CompactTextString(m) }
  80. func (*Payload) ProtoMessage() {}
  81. func (*Payload) Descriptor() ([]byte, []int) {
  82. return fileDescriptor_4dc296cbfe5ffcd5, []int{0}
  83. }
  84. func (m *Payload) XXX_Unmarshal(b []byte) error {
  85. return xxx_messageInfo_Payload.Unmarshal(m, b)
  86. }
  87. func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  88. return xxx_messageInfo_Payload.Marshal(b, m, deterministic)
  89. }
  90. func (m *Payload) XXX_Merge(src proto.Message) {
  91. xxx_messageInfo_Payload.Merge(m, src)
  92. }
  93. func (m *Payload) XXX_Size() int {
  94. return xxx_messageInfo_Payload.Size(m)
  95. }
  96. func (m *Payload) XXX_DiscardUnknown() {
  97. xxx_messageInfo_Payload.DiscardUnknown(m)
  98. }
  99. var xxx_messageInfo_Payload proto.InternalMessageInfo
  100. func (m *Payload) GetType() PayloadType {
  101. if m != nil {
  102. return m.Type
  103. }
  104. return PayloadType_COMPRESSABLE
  105. }
  106. func (m *Payload) GetBody() []byte {
  107. if m != nil {
  108. return m.Body
  109. }
  110. return nil
  111. }
  112. // A protobuf representation for grpc status. This is used by test
  113. // clients to specify a status that the server should attempt to return.
  114. type EchoStatus struct {
  115. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  116. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  117. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  118. XXX_unrecognized []byte `json:"-"`
  119. XXX_sizecache int32 `json:"-"`
  120. }
  121. func (m *EchoStatus) Reset() { *m = EchoStatus{} }
  122. func (m *EchoStatus) String() string { return proto.CompactTextString(m) }
  123. func (*EchoStatus) ProtoMessage() {}
  124. func (*EchoStatus) Descriptor() ([]byte, []int) {
  125. return fileDescriptor_4dc296cbfe5ffcd5, []int{1}
  126. }
  127. func (m *EchoStatus) XXX_Unmarshal(b []byte) error {
  128. return xxx_messageInfo_EchoStatus.Unmarshal(m, b)
  129. }
  130. func (m *EchoStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  131. return xxx_messageInfo_EchoStatus.Marshal(b, m, deterministic)
  132. }
  133. func (m *EchoStatus) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_EchoStatus.Merge(m, src)
  135. }
  136. func (m *EchoStatus) XXX_Size() int {
  137. return xxx_messageInfo_EchoStatus.Size(m)
  138. }
  139. func (m *EchoStatus) XXX_DiscardUnknown() {
  140. xxx_messageInfo_EchoStatus.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_EchoStatus proto.InternalMessageInfo
  143. func (m *EchoStatus) GetCode() int32 {
  144. if m != nil {
  145. return m.Code
  146. }
  147. return 0
  148. }
  149. func (m *EchoStatus) GetMessage() string {
  150. if m != nil {
  151. return m.Message
  152. }
  153. return ""
  154. }
  155. // Unary request.
  156. type SimpleRequest struct {
  157. // Desired payload type in the response from the server.
  158. // If response_type is RANDOM, server randomly chooses one from other formats.
  159. ResponseType PayloadType `protobuf:"varint,1,opt,name=response_type,json=responseType,proto3,enum=grpc.testing.PayloadType" json:"response_type,omitempty"`
  160. // Desired payload size in the response from the server.
  161. // If response_type is COMPRESSABLE, this denotes the size before compression.
  162. ResponseSize int32 `protobuf:"varint,2,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"`
  163. // Optional input payload sent along with the request.
  164. Payload *Payload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
  165. // Whether SimpleResponse should include username.
  166. FillUsername bool `protobuf:"varint,4,opt,name=fill_username,json=fillUsername,proto3" json:"fill_username,omitempty"`
  167. // Whether SimpleResponse should include OAuth scope.
  168. FillOauthScope bool `protobuf:"varint,5,opt,name=fill_oauth_scope,json=fillOauthScope,proto3" json:"fill_oauth_scope,omitempty"`
  169. // Compression algorithm to be used by the server for the response (stream)
  170. ResponseCompression CompressionType `protobuf:"varint,6,opt,name=response_compression,json=responseCompression,proto3,enum=grpc.testing.CompressionType" json:"response_compression,omitempty"`
  171. // Whether server should return a given status
  172. ResponseStatus *EchoStatus `protobuf:"bytes,7,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"`
  173. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  174. XXX_unrecognized []byte `json:"-"`
  175. XXX_sizecache int32 `json:"-"`
  176. }
  177. func (m *SimpleRequest) Reset() { *m = SimpleRequest{} }
  178. func (m *SimpleRequest) String() string { return proto.CompactTextString(m) }
  179. func (*SimpleRequest) ProtoMessage() {}
  180. func (*SimpleRequest) Descriptor() ([]byte, []int) {
  181. return fileDescriptor_4dc296cbfe5ffcd5, []int{2}
  182. }
  183. func (m *SimpleRequest) XXX_Unmarshal(b []byte) error {
  184. return xxx_messageInfo_SimpleRequest.Unmarshal(m, b)
  185. }
  186. func (m *SimpleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  187. return xxx_messageInfo_SimpleRequest.Marshal(b, m, deterministic)
  188. }
  189. func (m *SimpleRequest) XXX_Merge(src proto.Message) {
  190. xxx_messageInfo_SimpleRequest.Merge(m, src)
  191. }
  192. func (m *SimpleRequest) XXX_Size() int {
  193. return xxx_messageInfo_SimpleRequest.Size(m)
  194. }
  195. func (m *SimpleRequest) XXX_DiscardUnknown() {
  196. xxx_messageInfo_SimpleRequest.DiscardUnknown(m)
  197. }
  198. var xxx_messageInfo_SimpleRequest proto.InternalMessageInfo
  199. func (m *SimpleRequest) GetResponseType() PayloadType {
  200. if m != nil {
  201. return m.ResponseType
  202. }
  203. return PayloadType_COMPRESSABLE
  204. }
  205. func (m *SimpleRequest) GetResponseSize() int32 {
  206. if m != nil {
  207. return m.ResponseSize
  208. }
  209. return 0
  210. }
  211. func (m *SimpleRequest) GetPayload() *Payload {
  212. if m != nil {
  213. return m.Payload
  214. }
  215. return nil
  216. }
  217. func (m *SimpleRequest) GetFillUsername() bool {
  218. if m != nil {
  219. return m.FillUsername
  220. }
  221. return false
  222. }
  223. func (m *SimpleRequest) GetFillOauthScope() bool {
  224. if m != nil {
  225. return m.FillOauthScope
  226. }
  227. return false
  228. }
  229. func (m *SimpleRequest) GetResponseCompression() CompressionType {
  230. if m != nil {
  231. return m.ResponseCompression
  232. }
  233. return CompressionType_NONE
  234. }
  235. func (m *SimpleRequest) GetResponseStatus() *EchoStatus {
  236. if m != nil {
  237. return m.ResponseStatus
  238. }
  239. return nil
  240. }
  241. // Unary response, as configured by the request.
  242. type SimpleResponse struct {
  243. // Payload to increase message size.
  244. Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
  245. // The user the request came from, for verifying authentication was
  246. // successful when the client expected it.
  247. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  248. // OAuth scope.
  249. OauthScope string `protobuf:"bytes,3,opt,name=oauth_scope,json=oauthScope,proto3" json:"oauth_scope,omitempty"`
  250. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  251. XXX_unrecognized []byte `json:"-"`
  252. XXX_sizecache int32 `json:"-"`
  253. }
  254. func (m *SimpleResponse) Reset() { *m = SimpleResponse{} }
  255. func (m *SimpleResponse) String() string { return proto.CompactTextString(m) }
  256. func (*SimpleResponse) ProtoMessage() {}
  257. func (*SimpleResponse) Descriptor() ([]byte, []int) {
  258. return fileDescriptor_4dc296cbfe5ffcd5, []int{3}
  259. }
  260. func (m *SimpleResponse) XXX_Unmarshal(b []byte) error {
  261. return xxx_messageInfo_SimpleResponse.Unmarshal(m, b)
  262. }
  263. func (m *SimpleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  264. return xxx_messageInfo_SimpleResponse.Marshal(b, m, deterministic)
  265. }
  266. func (m *SimpleResponse) XXX_Merge(src proto.Message) {
  267. xxx_messageInfo_SimpleResponse.Merge(m, src)
  268. }
  269. func (m *SimpleResponse) XXX_Size() int {
  270. return xxx_messageInfo_SimpleResponse.Size(m)
  271. }
  272. func (m *SimpleResponse) XXX_DiscardUnknown() {
  273. xxx_messageInfo_SimpleResponse.DiscardUnknown(m)
  274. }
  275. var xxx_messageInfo_SimpleResponse proto.InternalMessageInfo
  276. func (m *SimpleResponse) GetPayload() *Payload {
  277. if m != nil {
  278. return m.Payload
  279. }
  280. return nil
  281. }
  282. func (m *SimpleResponse) GetUsername() string {
  283. if m != nil {
  284. return m.Username
  285. }
  286. return ""
  287. }
  288. func (m *SimpleResponse) GetOauthScope() string {
  289. if m != nil {
  290. return m.OauthScope
  291. }
  292. return ""
  293. }
  294. // Client-streaming request.
  295. type StreamingInputCallRequest struct {
  296. // Optional input payload sent along with the request.
  297. Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
  298. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  299. XXX_unrecognized []byte `json:"-"`
  300. XXX_sizecache int32 `json:"-"`
  301. }
  302. func (m *StreamingInputCallRequest) Reset() { *m = StreamingInputCallRequest{} }
  303. func (m *StreamingInputCallRequest) String() string { return proto.CompactTextString(m) }
  304. func (*StreamingInputCallRequest) ProtoMessage() {}
  305. func (*StreamingInputCallRequest) Descriptor() ([]byte, []int) {
  306. return fileDescriptor_4dc296cbfe5ffcd5, []int{4}
  307. }
  308. func (m *StreamingInputCallRequest) XXX_Unmarshal(b []byte) error {
  309. return xxx_messageInfo_StreamingInputCallRequest.Unmarshal(m, b)
  310. }
  311. func (m *StreamingInputCallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  312. return xxx_messageInfo_StreamingInputCallRequest.Marshal(b, m, deterministic)
  313. }
  314. func (m *StreamingInputCallRequest) XXX_Merge(src proto.Message) {
  315. xxx_messageInfo_StreamingInputCallRequest.Merge(m, src)
  316. }
  317. func (m *StreamingInputCallRequest) XXX_Size() int {
  318. return xxx_messageInfo_StreamingInputCallRequest.Size(m)
  319. }
  320. func (m *StreamingInputCallRequest) XXX_DiscardUnknown() {
  321. xxx_messageInfo_StreamingInputCallRequest.DiscardUnknown(m)
  322. }
  323. var xxx_messageInfo_StreamingInputCallRequest proto.InternalMessageInfo
  324. func (m *StreamingInputCallRequest) GetPayload() *Payload {
  325. if m != nil {
  326. return m.Payload
  327. }
  328. return nil
  329. }
  330. // Client-streaming response.
  331. type StreamingInputCallResponse struct {
  332. // Aggregated size of payloads received from the client.
  333. AggregatedPayloadSize int32 `protobuf:"varint,1,opt,name=aggregated_payload_size,json=aggregatedPayloadSize,proto3" json:"aggregated_payload_size,omitempty"`
  334. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  335. XXX_unrecognized []byte `json:"-"`
  336. XXX_sizecache int32 `json:"-"`
  337. }
  338. func (m *StreamingInputCallResponse) Reset() { *m = StreamingInputCallResponse{} }
  339. func (m *StreamingInputCallResponse) String() string { return proto.CompactTextString(m) }
  340. func (*StreamingInputCallResponse) ProtoMessage() {}
  341. func (*StreamingInputCallResponse) Descriptor() ([]byte, []int) {
  342. return fileDescriptor_4dc296cbfe5ffcd5, []int{5}
  343. }
  344. func (m *StreamingInputCallResponse) XXX_Unmarshal(b []byte) error {
  345. return xxx_messageInfo_StreamingInputCallResponse.Unmarshal(m, b)
  346. }
  347. func (m *StreamingInputCallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  348. return xxx_messageInfo_StreamingInputCallResponse.Marshal(b, m, deterministic)
  349. }
  350. func (m *StreamingInputCallResponse) XXX_Merge(src proto.Message) {
  351. xxx_messageInfo_StreamingInputCallResponse.Merge(m, src)
  352. }
  353. func (m *StreamingInputCallResponse) XXX_Size() int {
  354. return xxx_messageInfo_StreamingInputCallResponse.Size(m)
  355. }
  356. func (m *StreamingInputCallResponse) XXX_DiscardUnknown() {
  357. xxx_messageInfo_StreamingInputCallResponse.DiscardUnknown(m)
  358. }
  359. var xxx_messageInfo_StreamingInputCallResponse proto.InternalMessageInfo
  360. func (m *StreamingInputCallResponse) GetAggregatedPayloadSize() int32 {
  361. if m != nil {
  362. return m.AggregatedPayloadSize
  363. }
  364. return 0
  365. }
  366. // Configuration for a particular response.
  367. type ResponseParameters struct {
  368. // Desired payload sizes in responses from the server.
  369. // If response_type is COMPRESSABLE, this denotes the size before compression.
  370. Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
  371. // Desired interval between consecutive responses in the response stream in
  372. // microseconds.
  373. IntervalUs int32 `protobuf:"varint,2,opt,name=interval_us,json=intervalUs,proto3" json:"interval_us,omitempty"`
  374. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  375. XXX_unrecognized []byte `json:"-"`
  376. XXX_sizecache int32 `json:"-"`
  377. }
  378. func (m *ResponseParameters) Reset() { *m = ResponseParameters{} }
  379. func (m *ResponseParameters) String() string { return proto.CompactTextString(m) }
  380. func (*ResponseParameters) ProtoMessage() {}
  381. func (*ResponseParameters) Descriptor() ([]byte, []int) {
  382. return fileDescriptor_4dc296cbfe5ffcd5, []int{6}
  383. }
  384. func (m *ResponseParameters) XXX_Unmarshal(b []byte) error {
  385. return xxx_messageInfo_ResponseParameters.Unmarshal(m, b)
  386. }
  387. func (m *ResponseParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  388. return xxx_messageInfo_ResponseParameters.Marshal(b, m, deterministic)
  389. }
  390. func (m *ResponseParameters) XXX_Merge(src proto.Message) {
  391. xxx_messageInfo_ResponseParameters.Merge(m, src)
  392. }
  393. func (m *ResponseParameters) XXX_Size() int {
  394. return xxx_messageInfo_ResponseParameters.Size(m)
  395. }
  396. func (m *ResponseParameters) XXX_DiscardUnknown() {
  397. xxx_messageInfo_ResponseParameters.DiscardUnknown(m)
  398. }
  399. var xxx_messageInfo_ResponseParameters proto.InternalMessageInfo
  400. func (m *ResponseParameters) GetSize() int32 {
  401. if m != nil {
  402. return m.Size
  403. }
  404. return 0
  405. }
  406. func (m *ResponseParameters) GetIntervalUs() int32 {
  407. if m != nil {
  408. return m.IntervalUs
  409. }
  410. return 0
  411. }
  412. // Server-streaming request.
  413. type StreamingOutputCallRequest struct {
  414. // Desired payload type in the response from the server.
  415. // If response_type is RANDOM, the payload from each response in the stream
  416. // might be of different types. This is to simulate a mixed type of payload
  417. // stream.
  418. ResponseType PayloadType `protobuf:"varint,1,opt,name=response_type,json=responseType,proto3,enum=grpc.testing.PayloadType" json:"response_type,omitempty"`
  419. // Configuration for each expected response message.
  420. ResponseParameters []*ResponseParameters `protobuf:"bytes,2,rep,name=response_parameters,json=responseParameters,proto3" json:"response_parameters,omitempty"`
  421. // Optional input payload sent along with the request.
  422. Payload *Payload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
  423. // Compression algorithm to be used by the server for the response (stream)
  424. ResponseCompression CompressionType `protobuf:"varint,6,opt,name=response_compression,json=responseCompression,proto3,enum=grpc.testing.CompressionType" json:"response_compression,omitempty"`
  425. // Whether server should return a given status
  426. ResponseStatus *EchoStatus `protobuf:"bytes,7,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"`
  427. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  428. XXX_unrecognized []byte `json:"-"`
  429. XXX_sizecache int32 `json:"-"`
  430. }
  431. func (m *StreamingOutputCallRequest) Reset() { *m = StreamingOutputCallRequest{} }
  432. func (m *StreamingOutputCallRequest) String() string { return proto.CompactTextString(m) }
  433. func (*StreamingOutputCallRequest) ProtoMessage() {}
  434. func (*StreamingOutputCallRequest) Descriptor() ([]byte, []int) {
  435. return fileDescriptor_4dc296cbfe5ffcd5, []int{7}
  436. }
  437. func (m *StreamingOutputCallRequest) XXX_Unmarshal(b []byte) error {
  438. return xxx_messageInfo_StreamingOutputCallRequest.Unmarshal(m, b)
  439. }
  440. func (m *StreamingOutputCallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  441. return xxx_messageInfo_StreamingOutputCallRequest.Marshal(b, m, deterministic)
  442. }
  443. func (m *StreamingOutputCallRequest) XXX_Merge(src proto.Message) {
  444. xxx_messageInfo_StreamingOutputCallRequest.Merge(m, src)
  445. }
  446. func (m *StreamingOutputCallRequest) XXX_Size() int {
  447. return xxx_messageInfo_StreamingOutputCallRequest.Size(m)
  448. }
  449. func (m *StreamingOutputCallRequest) XXX_DiscardUnknown() {
  450. xxx_messageInfo_StreamingOutputCallRequest.DiscardUnknown(m)
  451. }
  452. var xxx_messageInfo_StreamingOutputCallRequest proto.InternalMessageInfo
  453. func (m *StreamingOutputCallRequest) GetResponseType() PayloadType {
  454. if m != nil {
  455. return m.ResponseType
  456. }
  457. return PayloadType_COMPRESSABLE
  458. }
  459. func (m *StreamingOutputCallRequest) GetResponseParameters() []*ResponseParameters {
  460. if m != nil {
  461. return m.ResponseParameters
  462. }
  463. return nil
  464. }
  465. func (m *StreamingOutputCallRequest) GetPayload() *Payload {
  466. if m != nil {
  467. return m.Payload
  468. }
  469. return nil
  470. }
  471. func (m *StreamingOutputCallRequest) GetResponseCompression() CompressionType {
  472. if m != nil {
  473. return m.ResponseCompression
  474. }
  475. return CompressionType_NONE
  476. }
  477. func (m *StreamingOutputCallRequest) GetResponseStatus() *EchoStatus {
  478. if m != nil {
  479. return m.ResponseStatus
  480. }
  481. return nil
  482. }
  483. // Server-streaming response, as configured by the request and parameters.
  484. type StreamingOutputCallResponse struct {
  485. // Payload to increase response size.
  486. Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
  487. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  488. XXX_unrecognized []byte `json:"-"`
  489. XXX_sizecache int32 `json:"-"`
  490. }
  491. func (m *StreamingOutputCallResponse) Reset() { *m = StreamingOutputCallResponse{} }
  492. func (m *StreamingOutputCallResponse) String() string { return proto.CompactTextString(m) }
  493. func (*StreamingOutputCallResponse) ProtoMessage() {}
  494. func (*StreamingOutputCallResponse) Descriptor() ([]byte, []int) {
  495. return fileDescriptor_4dc296cbfe5ffcd5, []int{8}
  496. }
  497. func (m *StreamingOutputCallResponse) XXX_Unmarshal(b []byte) error {
  498. return xxx_messageInfo_StreamingOutputCallResponse.Unmarshal(m, b)
  499. }
  500. func (m *StreamingOutputCallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  501. return xxx_messageInfo_StreamingOutputCallResponse.Marshal(b, m, deterministic)
  502. }
  503. func (m *StreamingOutputCallResponse) XXX_Merge(src proto.Message) {
  504. xxx_messageInfo_StreamingOutputCallResponse.Merge(m, src)
  505. }
  506. func (m *StreamingOutputCallResponse) XXX_Size() int {
  507. return xxx_messageInfo_StreamingOutputCallResponse.Size(m)
  508. }
  509. func (m *StreamingOutputCallResponse) XXX_DiscardUnknown() {
  510. xxx_messageInfo_StreamingOutputCallResponse.DiscardUnknown(m)
  511. }
  512. var xxx_messageInfo_StreamingOutputCallResponse proto.InternalMessageInfo
  513. func (m *StreamingOutputCallResponse) GetPayload() *Payload {
  514. if m != nil {
  515. return m.Payload
  516. }
  517. return nil
  518. }
  519. // For reconnect interop test only.
  520. // Client tells server what reconnection parameters it used.
  521. type ReconnectParams struct {
  522. MaxReconnectBackoffMs int32 `protobuf:"varint,1,opt,name=max_reconnect_backoff_ms,json=maxReconnectBackoffMs,proto3" json:"max_reconnect_backoff_ms,omitempty"`
  523. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  524. XXX_unrecognized []byte `json:"-"`
  525. XXX_sizecache int32 `json:"-"`
  526. }
  527. func (m *ReconnectParams) Reset() { *m = ReconnectParams{} }
  528. func (m *ReconnectParams) String() string { return proto.CompactTextString(m) }
  529. func (*ReconnectParams) ProtoMessage() {}
  530. func (*ReconnectParams) Descriptor() ([]byte, []int) {
  531. return fileDescriptor_4dc296cbfe5ffcd5, []int{9}
  532. }
  533. func (m *ReconnectParams) XXX_Unmarshal(b []byte) error {
  534. return xxx_messageInfo_ReconnectParams.Unmarshal(m, b)
  535. }
  536. func (m *ReconnectParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  537. return xxx_messageInfo_ReconnectParams.Marshal(b, m, deterministic)
  538. }
  539. func (m *ReconnectParams) XXX_Merge(src proto.Message) {
  540. xxx_messageInfo_ReconnectParams.Merge(m, src)
  541. }
  542. func (m *ReconnectParams) XXX_Size() int {
  543. return xxx_messageInfo_ReconnectParams.Size(m)
  544. }
  545. func (m *ReconnectParams) XXX_DiscardUnknown() {
  546. xxx_messageInfo_ReconnectParams.DiscardUnknown(m)
  547. }
  548. var xxx_messageInfo_ReconnectParams proto.InternalMessageInfo
  549. func (m *ReconnectParams) GetMaxReconnectBackoffMs() int32 {
  550. if m != nil {
  551. return m.MaxReconnectBackoffMs
  552. }
  553. return 0
  554. }
  555. // For reconnect interop test only.
  556. // Server tells client whether its reconnects are following the spec and the
  557. // reconnect backoffs it saw.
  558. type ReconnectInfo struct {
  559. Passed bool `protobuf:"varint,1,opt,name=passed,proto3" json:"passed,omitempty"`
  560. BackoffMs []int32 `protobuf:"varint,2,rep,packed,name=backoff_ms,json=backoffMs,proto3" json:"backoff_ms,omitempty"`
  561. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  562. XXX_unrecognized []byte `json:"-"`
  563. XXX_sizecache int32 `json:"-"`
  564. }
  565. func (m *ReconnectInfo) Reset() { *m = ReconnectInfo{} }
  566. func (m *ReconnectInfo) String() string { return proto.CompactTextString(m) }
  567. func (*ReconnectInfo) ProtoMessage() {}
  568. func (*ReconnectInfo) Descriptor() ([]byte, []int) {
  569. return fileDescriptor_4dc296cbfe5ffcd5, []int{10}
  570. }
  571. func (m *ReconnectInfo) XXX_Unmarshal(b []byte) error {
  572. return xxx_messageInfo_ReconnectInfo.Unmarshal(m, b)
  573. }
  574. func (m *ReconnectInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  575. return xxx_messageInfo_ReconnectInfo.Marshal(b, m, deterministic)
  576. }
  577. func (m *ReconnectInfo) XXX_Merge(src proto.Message) {
  578. xxx_messageInfo_ReconnectInfo.Merge(m, src)
  579. }
  580. func (m *ReconnectInfo) XXX_Size() int {
  581. return xxx_messageInfo_ReconnectInfo.Size(m)
  582. }
  583. func (m *ReconnectInfo) XXX_DiscardUnknown() {
  584. xxx_messageInfo_ReconnectInfo.DiscardUnknown(m)
  585. }
  586. var xxx_messageInfo_ReconnectInfo proto.InternalMessageInfo
  587. func (m *ReconnectInfo) GetPassed() bool {
  588. if m != nil {
  589. return m.Passed
  590. }
  591. return false
  592. }
  593. func (m *ReconnectInfo) GetBackoffMs() []int32 {
  594. if m != nil {
  595. return m.BackoffMs
  596. }
  597. return nil
  598. }
  599. func init() {
  600. proto.RegisterEnum("grpc.testing.PayloadType", PayloadType_name, PayloadType_value)
  601. proto.RegisterEnum("grpc.testing.CompressionType", CompressionType_name, CompressionType_value)
  602. proto.RegisterType((*Payload)(nil), "grpc.testing.Payload")
  603. proto.RegisterType((*EchoStatus)(nil), "grpc.testing.EchoStatus")
  604. proto.RegisterType((*SimpleRequest)(nil), "grpc.testing.SimpleRequest")
  605. proto.RegisterType((*SimpleResponse)(nil), "grpc.testing.SimpleResponse")
  606. proto.RegisterType((*StreamingInputCallRequest)(nil), "grpc.testing.StreamingInputCallRequest")
  607. proto.RegisterType((*StreamingInputCallResponse)(nil), "grpc.testing.StreamingInputCallResponse")
  608. proto.RegisterType((*ResponseParameters)(nil), "grpc.testing.ResponseParameters")
  609. proto.RegisterType((*StreamingOutputCallRequest)(nil), "grpc.testing.StreamingOutputCallRequest")
  610. proto.RegisterType((*StreamingOutputCallResponse)(nil), "grpc.testing.StreamingOutputCallResponse")
  611. proto.RegisterType((*ReconnectParams)(nil), "grpc.testing.ReconnectParams")
  612. proto.RegisterType((*ReconnectInfo)(nil), "grpc.testing.ReconnectInfo")
  613. }
  614. func init() { proto.RegisterFile("messages.proto", fileDescriptor_4dc296cbfe5ffcd5) }
  615. var fileDescriptor_4dc296cbfe5ffcd5 = []byte{
  616. // 652 bytes of a gzipped FileDescriptorProto
  617. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4d, 0x6f, 0xd3, 0x40,
  618. 0x10, 0xc5, 0xf9, 0xee, 0x24, 0x4d, 0xa3, 0x85, 0x82, 0x5b, 0x54, 0x11, 0x99, 0x4b, 0x54, 0x89,
  619. 0x20, 0x05, 0x09, 0x24, 0x0e, 0xa0, 0xb4, 0x4d, 0x51, 0x50, 0x9a, 0x84, 0x75, 0x7b, 0xe1, 0x62,
  620. 0x6d, 0x9c, 0x8d, 0x6b, 0x11, 0x7b, 0x8d, 0x77, 0x8d, 0x9a, 0x1e, 0xb8, 0xf3, 0x83, 0xb9, 0xa3,
  621. 0x5d, 0x7f, 0xc4, 0x69, 0x7b, 0x68, 0xe1, 0xc2, 0x6d, 0xf7, 0xed, 0x9b, 0x97, 0x79, 0x33, 0xcf,
  622. 0x0a, 0x34, 0x3d, 0xca, 0x39, 0x71, 0x28, 0xef, 0x06, 0x21, 0x13, 0x0c, 0x35, 0x9c, 0x30, 0xb0,
  623. 0xbb, 0x82, 0x72, 0xe1, 0xfa, 0x8e, 0x31, 0x82, 0xea, 0x94, 0xac, 0x96, 0x8c, 0xcc, 0xd1, 0x2b,
  624. 0x28, 0x89, 0x55, 0x40, 0x75, 0xad, 0xad, 0x75, 0x9a, 0xbd, 0xbd, 0x6e, 0x9e, 0xd7, 0x4d, 0x48,
  625. 0xe7, 0xab, 0x80, 0x62, 0x45, 0x43, 0x08, 0x4a, 0x33, 0x36, 0x5f, 0xe9, 0x85, 0xb6, 0xd6, 0x69,
  626. 0x60, 0x75, 0x36, 0xde, 0x03, 0x0c, 0xec, 0x4b, 0x66, 0x0a, 0x22, 0x22, 0x2e, 0x19, 0x36, 0x9b,
  627. 0xc7, 0x82, 0x65, 0xac, 0xce, 0x48, 0x87, 0x6a, 0xd2, 0x8f, 0x2a, 0xdc, 0xc2, 0xe9, 0xd5, 0xf8,
  628. 0x55, 0x84, 0x6d, 0xd3, 0xf5, 0x82, 0x25, 0xc5, 0xf4, 0x7b, 0x44, 0xb9, 0x40, 0x1f, 0x60, 0x3b,
  629. 0xa4, 0x3c, 0x60, 0x3e, 0xa7, 0xd6, 0xfd, 0x3a, 0x6b, 0xa4, 0x7c, 0x79, 0x43, 0x2f, 0x73, 0xf5,
  630. 0xdc, 0xbd, 0x8e, 0x7f, 0xb1, 0xbc, 0x26, 0x99, 0xee, 0x35, 0x45, 0xaf, 0xa1, 0x1a, 0xc4, 0x0a,
  631. 0x7a, 0xb1, 0xad, 0x75, 0xea, 0xbd, 0xdd, 0x3b, 0xe5, 0x71, 0xca, 0x92, 0xaa, 0x0b, 0x77, 0xb9,
  632. 0xb4, 0x22, 0x4e, 0x43, 0x9f, 0x78, 0x54, 0x2f, 0xb5, 0xb5, 0x4e, 0x0d, 0x37, 0x24, 0x78, 0x91,
  633. 0x60, 0xa8, 0x03, 0x2d, 0x45, 0x62, 0x24, 0x12, 0x97, 0x16, 0xb7, 0x59, 0x40, 0xf5, 0xb2, 0xe2,
  634. 0x35, 0x25, 0x3e, 0x91, 0xb0, 0x29, 0x51, 0x34, 0x85, 0x27, 0x59, 0x93, 0x36, 0xf3, 0x82, 0x90,
  635. 0x72, 0xee, 0x32, 0x5f, 0xaf, 0x28, 0xaf, 0x07, 0x9b, 0xcd, 0x1c, 0xaf, 0x09, 0xca, 0xef, 0xe3,
  636. 0xb4, 0x34, 0xf7, 0x80, 0xfa, 0xb0, 0xb3, 0xb6, 0xad, 0x36, 0xa1, 0x57, 0x95, 0x33, 0x7d, 0x53,
  637. 0x6c, 0xbd, 0x29, 0xdc, 0xcc, 0x46, 0xa2, 0xee, 0xc6, 0x4f, 0x68, 0xa6, 0xab, 0x88, 0xf1, 0xfc,
  638. 0x98, 0xb4, 0x7b, 0x8d, 0x69, 0x1f, 0x6a, 0xd9, 0x84, 0xe2, 0x4d, 0x67, 0x77, 0xf4, 0x02, 0xea,
  639. 0xf9, 0xc1, 0x14, 0xd5, 0x33, 0xb0, 0x6c, 0x28, 0xc6, 0x08, 0xf6, 0x4c, 0x11, 0x52, 0xe2, 0xb9,
  640. 0xbe, 0x33, 0xf4, 0x83, 0x48, 0x1c, 0x93, 0xe5, 0x32, 0x8d, 0xc5, 0x43, 0x5b, 0x31, 0xce, 0x61,
  641. 0xff, 0x2e, 0xb5, 0xc4, 0xd9, 0x5b, 0x78, 0x46, 0x1c, 0x27, 0xa4, 0x0e, 0x11, 0x74, 0x6e, 0x25,
  642. 0x35, 0x71, 0x5e, 0xe2, 0xe0, 0xee, 0xae, 0x9f, 0x13, 0x69, 0x19, 0x1c, 0x63, 0x08, 0x28, 0xd5,
  643. 0x98, 0x92, 0x90, 0x78, 0x54, 0xd0, 0x50, 0x65, 0x3e, 0x57, 0xaa, 0xce, 0xd2, 0xae, 0xeb, 0x0b,
  644. 0x1a, 0xfe, 0x20, 0x32, 0x35, 0x49, 0x0a, 0x21, 0x85, 0x2e, 0xb8, 0xf1, 0xbb, 0x90, 0xeb, 0x70,
  645. 0x12, 0x89, 0x1b, 0x86, 0xff, 0xf5, 0x3b, 0xf8, 0x02, 0x59, 0x4e, 0xac, 0x20, 0x6b, 0x55, 0x2f,
  646. 0xb4, 0x8b, 0x9d, 0x7a, 0xaf, 0xbd, 0xa9, 0x72, 0xdb, 0x12, 0x46, 0xe1, 0x6d, 0x9b, 0x0f, 0xfe,
  647. 0x6a, 0xfe, 0xcb, 0x98, 0x8f, 0xe1, 0xf9, 0x9d, 0x63, 0xff, 0xcb, 0xcc, 0x1b, 0x9f, 0x61, 0x07,
  648. 0x53, 0x9b, 0xf9, 0x3e, 0xb5, 0x85, 0x1a, 0x16, 0x47, 0xef, 0x40, 0xf7, 0xc8, 0x95, 0x15, 0xa6,
  649. 0xb0, 0x35, 0x23, 0xf6, 0x37, 0xb6, 0x58, 0x58, 0x1e, 0x4f, 0xe3, 0xe5, 0x91, 0xab, 0xac, 0xea,
  650. 0x28, 0x7e, 0x3d, 0xe3, 0xc6, 0x29, 0x6c, 0x67, 0xe8, 0xd0, 0x5f, 0x30, 0xf4, 0x14, 0x2a, 0x01,
  651. 0xe1, 0x9c, 0xc6, 0xcd, 0xd4, 0x70, 0x72, 0x43, 0x07, 0x00, 0x39, 0x4d, 0xb9, 0xd4, 0x32, 0xde,
  652. 0x9a, 0xa5, 0x3a, 0x87, 0x1f, 0xa1, 0x9e, 0x4b, 0x06, 0x6a, 0x41, 0xe3, 0x78, 0x72, 0x36, 0xc5,
  653. 0x03, 0xd3, 0xec, 0x1f, 0x8d, 0x06, 0xad, 0x47, 0x08, 0x41, 0xf3, 0x62, 0xbc, 0x81, 0x69, 0x08,
  654. 0xa0, 0x82, 0xfb, 0xe3, 0x93, 0xc9, 0x59, 0xab, 0x70, 0xd8, 0x83, 0x9d, 0x1b, 0xfb, 0x40, 0x35,
  655. 0x28, 0x8d, 0x27, 0x63, 0x59, 0x5c, 0x83, 0xd2, 0xa7, 0xaf, 0xc3, 0x69, 0x4b, 0x43, 0x75, 0xa8,
  656. 0x9e, 0x0c, 0x4e, 0x47, 0xfd, 0xf3, 0x41, 0xab, 0x30, 0xab, 0xa8, 0xbf, 0x9a, 0x37, 0x7f, 0x02,
  657. 0x00, 0x00, 0xff, 0xff, 0xc2, 0x6a, 0xce, 0x1e, 0x7c, 0x06, 0x00, 0x00,
  658. }