Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

171 строка
5.9 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: rpcreplay.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package rpcreplay is a generated protocol buffer package.
  6. It is generated from these files:
  7. rpcreplay.proto
  8. It has these top-level messages:
  9. Entry
  10. */
  11. package rpcreplay
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. import google_protobuf "github.com/golang/protobuf/ptypes/any"
  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.ProtoPackageIsVersion2 // please upgrade the proto package
  25. type Entry_Kind int32
  26. const (
  27. Entry_TYPE_UNSPECIFIED Entry_Kind = 0
  28. // A unary request.
  29. // method: the full name of the method
  30. // message: the request proto
  31. // is_error: false
  32. // ref_index: 0
  33. Entry_REQUEST Entry_Kind = 1
  34. // A unary response.
  35. // method: the full name of the method
  36. // message:
  37. // if is_error: a google.rpc.Status proto
  38. // else: the response proto
  39. // ref_index: index in the sequence of Entries of matching request (1-based)
  40. Entry_RESPONSE Entry_Kind = 2
  41. // A method that creates a stream.
  42. // method: the full name of the method
  43. // message:
  44. // if is_error: a google.rpc.Status proto
  45. // else: nil
  46. // ref_index: 0
  47. Entry_CREATE_STREAM Entry_Kind = 3
  48. // A call to Send on the client returned by a stream-creating method.
  49. // method: unset
  50. // message: the proto being sent
  51. // is_error: false
  52. // ref_index: index of matching CREATE_STREAM entry (1-based)
  53. Entry_SEND Entry_Kind = 4
  54. // A call to Recv on the client returned by a stream-creating method.
  55. // method: unset
  56. // message:
  57. // if is_error: a google.rpc.Status proto, or nil on EOF
  58. // else: the received message
  59. // ref_index: index of matching CREATE_STREAM entry
  60. Entry_RECV Entry_Kind = 5
  61. )
  62. var Entry_Kind_name = map[int32]string{
  63. 0: "TYPE_UNSPECIFIED",
  64. 1: "REQUEST",
  65. 2: "RESPONSE",
  66. 3: "CREATE_STREAM",
  67. 4: "SEND",
  68. 5: "RECV",
  69. }
  70. var Entry_Kind_value = map[string]int32{
  71. "TYPE_UNSPECIFIED": 0,
  72. "REQUEST": 1,
  73. "RESPONSE": 2,
  74. "CREATE_STREAM": 3,
  75. "SEND": 4,
  76. "RECV": 5,
  77. }
  78. func (x Entry_Kind) String() string {
  79. return proto.EnumName(Entry_Kind_name, int32(x))
  80. }
  81. func (Entry_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
  82. // An Entry represents a single RPC activity, typically a request or response.
  83. type Entry struct {
  84. Kind Entry_Kind `protobuf:"varint,1,opt,name=kind,enum=rpcreplay.Entry_Kind" json:"kind,omitempty"`
  85. Method string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
  86. Message *google_protobuf.Any `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
  87. IsError bool `protobuf:"varint,4,opt,name=is_error,json=isError" json:"is_error,omitempty"`
  88. RefIndex int32 `protobuf:"varint,5,opt,name=ref_index,json=refIndex" json:"ref_index,omitempty"`
  89. }
  90. func (m *Entry) Reset() { *m = Entry{} }
  91. func (m *Entry) String() string { return proto.CompactTextString(m) }
  92. func (*Entry) ProtoMessage() {}
  93. func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  94. func (m *Entry) GetKind() Entry_Kind {
  95. if m != nil {
  96. return m.Kind
  97. }
  98. return Entry_TYPE_UNSPECIFIED
  99. }
  100. func (m *Entry) GetMethod() string {
  101. if m != nil {
  102. return m.Method
  103. }
  104. return ""
  105. }
  106. func (m *Entry) GetMessage() *google_protobuf.Any {
  107. if m != nil {
  108. return m.Message
  109. }
  110. return nil
  111. }
  112. func (m *Entry) GetIsError() bool {
  113. if m != nil {
  114. return m.IsError
  115. }
  116. return false
  117. }
  118. func (m *Entry) GetRefIndex() int32 {
  119. if m != nil {
  120. return m.RefIndex
  121. }
  122. return 0
  123. }
  124. func init() {
  125. proto.RegisterType((*Entry)(nil), "rpcreplay.Entry")
  126. proto.RegisterEnum("rpcreplay.Entry_Kind", Entry_Kind_name, Entry_Kind_value)
  127. }
  128. func init() { proto.RegisterFile("rpcreplay.proto", fileDescriptor0) }
  129. var fileDescriptor0 = []byte{
  130. // 289 bytes of a gzipped FileDescriptorProto
  131. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x44, 0x8e, 0xdf, 0x4e, 0xc2, 0x30,
  132. 0x14, 0xc6, 0x2d, 0x6c, 0x30, 0x0e, 0xfe, 0xa9, 0x0d, 0x9a, 0xa1, 0x37, 0x0b, 0x57, 0xf3, 0xa6,
  133. 0x24, 0xf8, 0x04, 0x04, 0x8e, 0x09, 0x31, 0x22, 0xb6, 0xc3, 0xc4, 0x1b, 0x17, 0x70, 0x05, 0x17,
  134. 0xa1, 0x25, 0xdd, 0x4c, 0xdc, 0x6b, 0xf8, 0xc4, 0x66, 0x13, 0xf4, 0xae, 0xbf, 0x7e, 0xbf, 0x9c,
  135. 0xef, 0x83, 0x33, 0xbb, 0x7b, 0xb3, 0x6a, 0xb7, 0x59, 0x14, 0x7c, 0x67, 0x4d, 0x6e, 0x58, 0xeb,
  136. 0xef, 0xe3, 0xaa, 0xbb, 0x36, 0x66, 0xbd, 0x51, 0xfd, 0x2a, 0x58, 0x7e, 0xae, 0xfa, 0x0b, 0xbd,
  137. 0xb7, 0x7a, 0xdf, 0x35, 0x70, 0x51, 0xe7, 0xb6, 0x60, 0x37, 0xe0, 0x7c, 0xa4, 0x3a, 0xf1, 0x49,
  138. 0x40, 0xc2, 0xd3, 0xc1, 0x05, 0xff, 0xbf, 0x57, 0xe5, 0xfc, 0x3e, 0xd5, 0x89, 0xa8, 0x14, 0x76,
  139. 0x09, 0x8d, 0xad, 0xca, 0xdf, 0x4d, 0xe2, 0xd7, 0x02, 0x12, 0xb6, 0xc4, 0x9e, 0x18, 0x87, 0xe6,
  140. 0x56, 0x65, 0xd9, 0x62, 0xad, 0xfc, 0x7a, 0x40, 0xc2, 0xf6, 0xa0, 0xc3, 0x7f, 0x9b, 0xf9, 0xa1,
  141. 0x99, 0x0f, 0x75, 0x21, 0x0e, 0x12, 0xeb, 0x82, 0x97, 0x66, 0xb1, 0xb2, 0xd6, 0x58, 0xdf, 0x09,
  142. 0x48, 0xe8, 0x89, 0x66, 0x9a, 0x61, 0x89, 0xec, 0x1a, 0x5a, 0x56, 0xad, 0xe2, 0x54, 0x27, 0xea,
  143. 0xcb, 0x77, 0x03, 0x12, 0xba, 0xc2, 0xb3, 0x6a, 0x35, 0x29, 0xb9, 0xf7, 0x0a, 0x4e, 0xb9, 0x86,
  144. 0x75, 0x80, 0x46, 0x2f, 0x33, 0x8c, 0xe7, 0x53, 0x39, 0xc3, 0xd1, 0xe4, 0x6e, 0x82, 0x63, 0x7a,
  145. 0xc4, 0xda, 0xd0, 0x14, 0xf8, 0x34, 0x47, 0x19, 0x51, 0xc2, 0x8e, 0xc1, 0x13, 0x28, 0x67, 0x8f,
  146. 0x53, 0x89, 0xb4, 0xc6, 0xce, 0xe1, 0x64, 0x24, 0x70, 0x18, 0x61, 0x2c, 0x23, 0x81, 0xc3, 0x07,
  147. 0x5a, 0x67, 0x1e, 0x38, 0x12, 0xa7, 0x63, 0xea, 0x94, 0x2f, 0x81, 0xa3, 0x67, 0xea, 0x2e, 0x1b,
  148. 0xd5, 0xdc, 0xdb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x9b, 0x9d, 0x4f, 0x54, 0x01, 0x00,
  149. 0x00,
  150. }