RPC.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: RPC.proto
  3. package pb
  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. // User Information proto. Included in ConnectionHeader on connection setup
  12. type UserInformation struct {
  13. EffectiveUser *string `protobuf:"bytes,1,req,name=effective_user,json=effectiveUser" json:"effective_user,omitempty"`
  14. RealUser *string `protobuf:"bytes,2,opt,name=real_user,json=realUser" json:"real_user,omitempty"`
  15. XXX_unrecognized []byte `json:"-"`
  16. }
  17. func (m *UserInformation) Reset() { *m = UserInformation{} }
  18. func (m *UserInformation) String() string { return proto.CompactTextString(m) }
  19. func (*UserInformation) ProtoMessage() {}
  20. func (*UserInformation) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{0} }
  21. func (m *UserInformation) GetEffectiveUser() string {
  22. if m != nil && m.EffectiveUser != nil {
  23. return *m.EffectiveUser
  24. }
  25. return ""
  26. }
  27. func (m *UserInformation) GetRealUser() string {
  28. if m != nil && m.RealUser != nil {
  29. return *m.RealUser
  30. }
  31. return ""
  32. }
  33. // This is sent on connection setup after the connection preamble is sent.
  34. type ConnectionHeader struct {
  35. UserInfo *UserInformation `protobuf:"bytes,1,opt,name=user_info,json=userInfo" json:"user_info,omitempty"`
  36. ServiceName *string `protobuf:"bytes,2,opt,name=service_name,json=serviceName" json:"service_name,omitempty"`
  37. // Cell block codec we will use sending over optional cell blocks. Server throws exception
  38. // if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
  39. CellBlockCodecClass *string `protobuf:"bytes,3,opt,name=cell_block_codec_class,json=cellBlockCodecClass" json:"cell_block_codec_class,omitempty"`
  40. // Compressor we will use if cell block is compressed. Server will throw exception if not supported.
  41. // Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
  42. CellBlockCompressorClass *string `protobuf:"bytes,4,opt,name=cell_block_compressor_class,json=cellBlockCompressorClass" json:"cell_block_compressor_class,omitempty"`
  43. VersionInfo *VersionInfo `protobuf:"bytes,5,opt,name=version_info,json=versionInfo" json:"version_info,omitempty"`
  44. XXX_unrecognized []byte `json:"-"`
  45. }
  46. func (m *ConnectionHeader) Reset() { *m = ConnectionHeader{} }
  47. func (m *ConnectionHeader) String() string { return proto.CompactTextString(m) }
  48. func (*ConnectionHeader) ProtoMessage() {}
  49. func (*ConnectionHeader) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{1} }
  50. func (m *ConnectionHeader) GetUserInfo() *UserInformation {
  51. if m != nil {
  52. return m.UserInfo
  53. }
  54. return nil
  55. }
  56. func (m *ConnectionHeader) GetServiceName() string {
  57. if m != nil && m.ServiceName != nil {
  58. return *m.ServiceName
  59. }
  60. return ""
  61. }
  62. func (m *ConnectionHeader) GetCellBlockCodecClass() string {
  63. if m != nil && m.CellBlockCodecClass != nil {
  64. return *m.CellBlockCodecClass
  65. }
  66. return ""
  67. }
  68. func (m *ConnectionHeader) GetCellBlockCompressorClass() string {
  69. if m != nil && m.CellBlockCompressorClass != nil {
  70. return *m.CellBlockCompressorClass
  71. }
  72. return ""
  73. }
  74. func (m *ConnectionHeader) GetVersionInfo() *VersionInfo {
  75. if m != nil {
  76. return m.VersionInfo
  77. }
  78. return nil
  79. }
  80. // Optional Cell block Message. Included in client RequestHeader
  81. type CellBlockMeta struct {
  82. // Length of the following cell block. Could calculate it but convenient having it too hand.
  83. Length *uint32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
  84. XXX_unrecognized []byte `json:"-"`
  85. }
  86. func (m *CellBlockMeta) Reset() { *m = CellBlockMeta{} }
  87. func (m *CellBlockMeta) String() string { return proto.CompactTextString(m) }
  88. func (*CellBlockMeta) ProtoMessage() {}
  89. func (*CellBlockMeta) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{2} }
  90. func (m *CellBlockMeta) GetLength() uint32 {
  91. if m != nil && m.Length != nil {
  92. return *m.Length
  93. }
  94. return 0
  95. }
  96. // At the RPC layer, this message is used to carry
  97. // the server side exception to the RPC client.
  98. type ExceptionResponse struct {
  99. // Class name of the exception thrown from the server
  100. ExceptionClassName *string `protobuf:"bytes,1,opt,name=exception_class_name,json=exceptionClassName" json:"exception_class_name,omitempty"`
  101. // Exception stack trace from the server side
  102. StackTrace *string `protobuf:"bytes,2,opt,name=stack_trace,json=stackTrace" json:"stack_trace,omitempty"`
  103. // Optional hostname. Filled in for some exceptions such as region moved
  104. // where exception gives clue on where the region may have moved.
  105. Hostname *string `protobuf:"bytes,3,opt,name=hostname" json:"hostname,omitempty"`
  106. Port *int32 `protobuf:"varint,4,opt,name=port" json:"port,omitempty"`
  107. // Set if we are NOT to retry on receipt of this exception
  108. DoNotRetry *bool `protobuf:"varint,5,opt,name=do_not_retry,json=doNotRetry" json:"do_not_retry,omitempty"`
  109. XXX_unrecognized []byte `json:"-"`
  110. }
  111. func (m *ExceptionResponse) Reset() { *m = ExceptionResponse{} }
  112. func (m *ExceptionResponse) String() string { return proto.CompactTextString(m) }
  113. func (*ExceptionResponse) ProtoMessage() {}
  114. func (*ExceptionResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{3} }
  115. func (m *ExceptionResponse) GetExceptionClassName() string {
  116. if m != nil && m.ExceptionClassName != nil {
  117. return *m.ExceptionClassName
  118. }
  119. return ""
  120. }
  121. func (m *ExceptionResponse) GetStackTrace() string {
  122. if m != nil && m.StackTrace != nil {
  123. return *m.StackTrace
  124. }
  125. return ""
  126. }
  127. func (m *ExceptionResponse) GetHostname() string {
  128. if m != nil && m.Hostname != nil {
  129. return *m.Hostname
  130. }
  131. return ""
  132. }
  133. func (m *ExceptionResponse) GetPort() int32 {
  134. if m != nil && m.Port != nil {
  135. return *m.Port
  136. }
  137. return 0
  138. }
  139. func (m *ExceptionResponse) GetDoNotRetry() bool {
  140. if m != nil && m.DoNotRetry != nil {
  141. return *m.DoNotRetry
  142. }
  143. return false
  144. }
  145. // Header sent making a request.
  146. type RequestHeader struct {
  147. // Monotonically increasing call_id to keep track of RPC requests and their response
  148. CallId *uint32 `protobuf:"varint,1,opt,name=call_id,json=callId" json:"call_id,omitempty"`
  149. TraceInfo *RPCTInfo `protobuf:"bytes,2,opt,name=trace_info,json=traceInfo" json:"trace_info,omitempty"`
  150. MethodName *string `protobuf:"bytes,3,opt,name=method_name,json=methodName" json:"method_name,omitempty"`
  151. // If true, then a pb Message param follows.
  152. RequestParam *bool `protobuf:"varint,4,opt,name=request_param,json=requestParam" json:"request_param,omitempty"`
  153. // If present, then an encoded data block follows.
  154. CellBlockMeta *CellBlockMeta `protobuf:"bytes,5,opt,name=cell_block_meta,json=cellBlockMeta" json:"cell_block_meta,omitempty"`
  155. // 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
  156. // See HConstants.
  157. Priority *uint32 `protobuf:"varint,6,opt,name=priority" json:"priority,omitempty"`
  158. Timeout *uint32 `protobuf:"varint,7,opt,name=timeout" json:"timeout,omitempty"`
  159. XXX_unrecognized []byte `json:"-"`
  160. }
  161. func (m *RequestHeader) Reset() { *m = RequestHeader{} }
  162. func (m *RequestHeader) String() string { return proto.CompactTextString(m) }
  163. func (*RequestHeader) ProtoMessage() {}
  164. func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{4} }
  165. func (m *RequestHeader) GetCallId() uint32 {
  166. if m != nil && m.CallId != nil {
  167. return *m.CallId
  168. }
  169. return 0
  170. }
  171. func (m *RequestHeader) GetTraceInfo() *RPCTInfo {
  172. if m != nil {
  173. return m.TraceInfo
  174. }
  175. return nil
  176. }
  177. func (m *RequestHeader) GetMethodName() string {
  178. if m != nil && m.MethodName != nil {
  179. return *m.MethodName
  180. }
  181. return ""
  182. }
  183. func (m *RequestHeader) GetRequestParam() bool {
  184. if m != nil && m.RequestParam != nil {
  185. return *m.RequestParam
  186. }
  187. return false
  188. }
  189. func (m *RequestHeader) GetCellBlockMeta() *CellBlockMeta {
  190. if m != nil {
  191. return m.CellBlockMeta
  192. }
  193. return nil
  194. }
  195. func (m *RequestHeader) GetPriority() uint32 {
  196. if m != nil && m.Priority != nil {
  197. return *m.Priority
  198. }
  199. return 0
  200. }
  201. func (m *RequestHeader) GetTimeout() uint32 {
  202. if m != nil && m.Timeout != nil {
  203. return *m.Timeout
  204. }
  205. return 0
  206. }
  207. type ResponseHeader struct {
  208. CallId *uint32 `protobuf:"varint,1,opt,name=call_id,json=callId" json:"call_id,omitempty"`
  209. // If present, then request threw an exception and no response message (else we presume one)
  210. Exception *ExceptionResponse `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"`
  211. // If present, then an encoded data block follows.
  212. CellBlockMeta *CellBlockMeta `protobuf:"bytes,3,opt,name=cell_block_meta,json=cellBlockMeta" json:"cell_block_meta,omitempty"`
  213. XXX_unrecognized []byte `json:"-"`
  214. }
  215. func (m *ResponseHeader) Reset() { *m = ResponseHeader{} }
  216. func (m *ResponseHeader) String() string { return proto.CompactTextString(m) }
  217. func (*ResponseHeader) ProtoMessage() {}
  218. func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{5} }
  219. func (m *ResponseHeader) GetCallId() uint32 {
  220. if m != nil && m.CallId != nil {
  221. return *m.CallId
  222. }
  223. return 0
  224. }
  225. func (m *ResponseHeader) GetException() *ExceptionResponse {
  226. if m != nil {
  227. return m.Exception
  228. }
  229. return nil
  230. }
  231. func (m *ResponseHeader) GetCellBlockMeta() *CellBlockMeta {
  232. if m != nil {
  233. return m.CellBlockMeta
  234. }
  235. return nil
  236. }
  237. func init() {
  238. proto.RegisterType((*UserInformation)(nil), "pb.UserInformation")
  239. proto.RegisterType((*ConnectionHeader)(nil), "pb.ConnectionHeader")
  240. proto.RegisterType((*CellBlockMeta)(nil), "pb.CellBlockMeta")
  241. proto.RegisterType((*ExceptionResponse)(nil), "pb.ExceptionResponse")
  242. proto.RegisterType((*RequestHeader)(nil), "pb.RequestHeader")
  243. proto.RegisterType((*ResponseHeader)(nil), "pb.ResponseHeader")
  244. }
  245. func init() { proto.RegisterFile("RPC.proto", fileDescriptor15) }
  246. var fileDescriptor15 = []byte{
  247. // 606 bytes of a gzipped FileDescriptorProto
  248. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x5f, 0x6f, 0xd3, 0x3e,
  249. 0x14, 0x55, 0xba, 0x7f, 0xcd, 0x6d, 0xb3, 0xfd, 0xe6, 0xfd, 0x18, 0x51, 0xf7, 0xb0, 0x52, 0x84,
  250. 0x98, 0x40, 0x8a, 0xa6, 0xed, 0x09, 0x09, 0x5e, 0x5a, 0x21, 0x6d, 0x0f, 0x4c, 0x95, 0xb5, 0xf1,
  251. 0x1a, 0xb9, 0xce, 0x6d, 0x1b, 0x2d, 0xb1, 0x83, 0xed, 0x56, 0xec, 0x3b, 0x20, 0xf1, 0xcc, 0x1b,
  252. 0x1f, 0x83, 0x8f, 0x87, 0x6c, 0x27, 0xd9, 0x06, 0x48, 0xf0, 0x96, 0x7b, 0xce, 0xbd, 0xf1, 0x39,
  253. 0xe7, 0x5a, 0x86, 0x90, 0x4e, 0x27, 0x49, 0xa5, 0xa4, 0x91, 0xa4, 0x53, 0xcd, 0x06, 0xd1, 0xb5,
  254. 0x62, 0x3c, 0x17, 0x0b, 0x0f, 0x0d, 0x7a, 0x17, 0x63, 0xa6, 0xd1, 0x17, 0xa3, 0x1b, 0xd8, 0xbb,
  255. 0xd1, 0xa8, 0x2e, 0xc5, 0x5c, 0xaa, 0x92, 0x99, 0x5c, 0x0a, 0xf2, 0x02, 0x76, 0x71, 0x3e, 0x47,
  256. 0x6e, 0xf2, 0x35, 0xa6, 0x2b, 0x8d, 0x2a, 0x0e, 0x86, 0x9d, 0x93, 0x90, 0x46, 0x2d, 0x6a, 0x27,
  257. 0xc8, 0x11, 0x84, 0x0a, 0x59, 0xe1, 0x3b, 0x3a, 0xc3, 0xe0, 0x24, 0xa4, 0x5d, 0x0b, 0x58, 0x72,
  258. 0xf4, 0xb5, 0x03, 0xff, 0x4d, 0xa4, 0x10, 0xb6, 0x5f, 0x8a, 0x0b, 0x64, 0x19, 0x2a, 0x72, 0x0a,
  259. 0xa1, 0x6d, 0x4e, 0x73, 0x31, 0x97, 0x71, 0x30, 0x0c, 0x4e, 0x7a, 0x67, 0x07, 0x49, 0x35, 0x4b,
  260. 0x7e, 0x11, 0x40, 0xbb, 0xab, 0x1a, 0x20, 0xcf, 0xa0, 0xaf, 0x51, 0xad, 0x73, 0x8e, 0xa9, 0x60,
  261. 0x25, 0xd6, 0xc7, 0xf4, 0x6a, 0xec, 0x8a, 0x95, 0x48, 0xce, 0xe1, 0x90, 0x63, 0x51, 0xa4, 0xb3,
  262. 0x42, 0xf2, 0xdb, 0x94, 0xcb, 0x0c, 0x79, 0xca, 0x0b, 0xa6, 0x75, 0xbc, 0xe1, 0x9a, 0x0f, 0x2c,
  263. 0x3b, 0xb6, 0xe4, 0xc4, 0x72, 0x13, 0x4b, 0x91, 0x77, 0x70, 0xf4, 0x68, 0xa8, 0xac, 0x14, 0x6a,
  264. 0x2d, 0x55, 0x3d, 0xb9, 0xe9, 0x26, 0xe3, 0x07, 0x93, 0x4d, 0x83, 0x1f, 0x3f, 0x83, 0xfe, 0x1a,
  265. 0x95, 0xce, 0xa5, 0xf0, 0x5e, 0xb6, 0x9c, 0x97, 0x3d, 0xeb, 0xe5, 0xa3, 0xc7, 0xad, 0x7a, 0xda,
  266. 0x5b, 0xdf, 0x17, 0xa3, 0x97, 0x10, 0x4d, 0x9a, 0xff, 0x7d, 0x40, 0xc3, 0xc8, 0x21, 0x6c, 0x17,
  267. 0x28, 0x16, 0x66, 0xe9, 0xa2, 0x88, 0x68, 0x5d, 0x8d, 0x7e, 0x04, 0xb0, 0xff, 0xfe, 0x33, 0xc7,
  268. 0xca, 0x65, 0x81, 0xba, 0x92, 0x42, 0x23, 0x39, 0x85, 0xff, 0xb1, 0x01, 0xbd, 0x4a, 0x9f, 0x48,
  269. 0xe0, 0xa4, 0x92, 0x96, 0x73, 0x02, 0x5d, 0x30, 0xc7, 0xd0, 0xd3, 0x86, 0xf1, 0xdb, 0xd4, 0x28,
  270. 0xc6, 0x9b, 0xe8, 0xc0, 0x41, 0xf6, 0x3e, 0x20, 0x19, 0x40, 0x77, 0x29, 0xb5, 0x71, 0xbf, 0xf1,
  271. 0x59, 0xb5, 0x35, 0x21, 0xb0, 0x59, 0x49, 0x65, 0x5c, 0x12, 0x5b, 0xd4, 0x7d, 0x93, 0x21, 0xf4,
  272. 0x33, 0x99, 0x0a, 0x69, 0x52, 0x85, 0x46, 0xdd, 0x39, 0xd7, 0x5d, 0x0a, 0x99, 0xbc, 0x92, 0x86,
  273. 0x5a, 0x64, 0xf4, 0xa5, 0x03, 0x11, 0xc5, 0x4f, 0x2b, 0xd4, 0xa6, 0x5e, 0xf9, 0x53, 0xd8, 0xe1,
  274. 0xac, 0x28, 0xd2, 0x3c, 0x6b, 0x5c, 0xda, 0xf2, 0x32, 0x23, 0xaf, 0x01, 0x9c, 0x2e, 0x1f, 0x60,
  275. 0xc7, 0x05, 0xd8, 0xb7, 0x01, 0xd2, 0xe9, 0xe4, 0xda, 0xa5, 0x17, 0x3a, 0xde, 0x5d, 0x83, 0x63,
  276. 0xe8, 0x95, 0x68, 0x96, 0x32, 0x4b, 0x1f, 0x88, 0x05, 0x0f, 0x39, 0xaf, 0xcf, 0x21, 0x52, 0xfe,
  277. 0xdc, 0xb4, 0x62, 0x8a, 0x95, 0x4e, 0x77, 0x97, 0xf6, 0x6b, 0x70, 0x6a, 0x31, 0xf2, 0x06, 0xf6,
  278. 0x1e, 0x2c, 0xbd, 0x44, 0xc3, 0xea, 0xc5, 0xed, 0xdb, 0x73, 0x1f, 0x2d, 0x87, 0x46, 0xfc, 0xd1,
  279. 0xae, 0x06, 0xd0, 0xad, 0x54, 0x2e, 0x55, 0x6e, 0xee, 0xe2, 0x6d, 0xe7, 0xa3, 0xad, 0x49, 0x0c,
  280. 0x3b, 0x26, 0x2f, 0x51, 0xae, 0x4c, 0xbc, 0xe3, 0xa8, 0xa6, 0x1c, 0x7d, 0x0b, 0x60, 0xb7, 0x59,
  281. 0xe0, 0xdf, 0xf2, 0x38, 0x87, 0xb0, 0xdd, 0x61, 0x1d, 0xc7, 0x13, 0x2b, 0xeb, 0xb7, 0x9b, 0x40,
  282. 0xef, 0xfb, 0xfe, 0xe4, 0x68, 0xe3, 0xdf, 0x1c, 0x8d, 0xdf, 0xc2, 0x2b, 0xa9, 0x16, 0x09, 0xab,
  283. 0x18, 0x5f, 0x62, 0xb2, 0x64, 0x99, 0x94, 0x55, 0xb2, 0x9c, 0xb5, 0x0f, 0xc3, 0x6c, 0x35, 0x4f,
  284. 0x16, 0x28, 0x50, 0x31, 0x83, 0xd9, 0xd8, 0x3e, 0x28, 0x53, 0x0b, 0xeb, 0x8b, 0xe0, 0x7b, 0x10,
  285. 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xde, 0x56, 0xde, 0xc7, 0x61, 0x04, 0x00, 0x00,
  286. }