You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

732 lines
28 KiB

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