reflection.pb.go 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: grpc_reflection_v1alpha/reflection.proto
  3. package grpc_reflection_v1alpha
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. grpc "google.golang.org/grpc"
  9. codes "google.golang.org/grpc/codes"
  10. status "google.golang.org/grpc/status"
  11. math "math"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  22. // The message sent by the client when calling ServerReflectionInfo method.
  23. type ServerReflectionRequest struct {
  24. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
  25. // To use reflection service, the client should set one of the following
  26. // fields in message_request. The server distinguishes requests by their
  27. // defined field and then handles them using corresponding methods.
  28. //
  29. // Types that are valid to be assigned to MessageRequest:
  30. // *ServerReflectionRequest_FileByFilename
  31. // *ServerReflectionRequest_FileContainingSymbol
  32. // *ServerReflectionRequest_FileContainingExtension
  33. // *ServerReflectionRequest_AllExtensionNumbersOfType
  34. // *ServerReflectionRequest_ListServices
  35. MessageRequest isServerReflectionRequest_MessageRequest `protobuf_oneof:"message_request"`
  36. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  37. XXX_unrecognized []byte `json:"-"`
  38. XXX_sizecache int32 `json:"-"`
  39. }
  40. func (m *ServerReflectionRequest) Reset() { *m = ServerReflectionRequest{} }
  41. func (m *ServerReflectionRequest) String() string { return proto.CompactTextString(m) }
  42. func (*ServerReflectionRequest) ProtoMessage() {}
  43. func (*ServerReflectionRequest) Descriptor() ([]byte, []int) {
  44. return fileDescriptor_42a8ac412db3cb03, []int{0}
  45. }
  46. func (m *ServerReflectionRequest) XXX_Unmarshal(b []byte) error {
  47. return xxx_messageInfo_ServerReflectionRequest.Unmarshal(m, b)
  48. }
  49. func (m *ServerReflectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  50. return xxx_messageInfo_ServerReflectionRequest.Marshal(b, m, deterministic)
  51. }
  52. func (m *ServerReflectionRequest) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_ServerReflectionRequest.Merge(m, src)
  54. }
  55. func (m *ServerReflectionRequest) XXX_Size() int {
  56. return xxx_messageInfo_ServerReflectionRequest.Size(m)
  57. }
  58. func (m *ServerReflectionRequest) XXX_DiscardUnknown() {
  59. xxx_messageInfo_ServerReflectionRequest.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_ServerReflectionRequest proto.InternalMessageInfo
  62. func (m *ServerReflectionRequest) GetHost() string {
  63. if m != nil {
  64. return m.Host
  65. }
  66. return ""
  67. }
  68. type isServerReflectionRequest_MessageRequest interface {
  69. isServerReflectionRequest_MessageRequest()
  70. }
  71. type ServerReflectionRequest_FileByFilename struct {
  72. FileByFilename string `protobuf:"bytes,3,opt,name=file_by_filename,json=fileByFilename,proto3,oneof"`
  73. }
  74. type ServerReflectionRequest_FileContainingSymbol struct {
  75. FileContainingSymbol string `protobuf:"bytes,4,opt,name=file_containing_symbol,json=fileContainingSymbol,proto3,oneof"`
  76. }
  77. type ServerReflectionRequest_FileContainingExtension struct {
  78. FileContainingExtension *ExtensionRequest `protobuf:"bytes,5,opt,name=file_containing_extension,json=fileContainingExtension,proto3,oneof"`
  79. }
  80. type ServerReflectionRequest_AllExtensionNumbersOfType struct {
  81. AllExtensionNumbersOfType string `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,proto3,oneof"`
  82. }
  83. type ServerReflectionRequest_ListServices struct {
  84. ListServices string `protobuf:"bytes,7,opt,name=list_services,json=listServices,proto3,oneof"`
  85. }
  86. func (*ServerReflectionRequest_FileByFilename) isServerReflectionRequest_MessageRequest() {}
  87. func (*ServerReflectionRequest_FileContainingSymbol) isServerReflectionRequest_MessageRequest() {}
  88. func (*ServerReflectionRequest_FileContainingExtension) isServerReflectionRequest_MessageRequest() {}
  89. func (*ServerReflectionRequest_AllExtensionNumbersOfType) isServerReflectionRequest_MessageRequest() {}
  90. func (*ServerReflectionRequest_ListServices) isServerReflectionRequest_MessageRequest() {}
  91. func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest {
  92. if m != nil {
  93. return m.MessageRequest
  94. }
  95. return nil
  96. }
  97. func (m *ServerReflectionRequest) GetFileByFilename() string {
  98. if x, ok := m.GetMessageRequest().(*ServerReflectionRequest_FileByFilename); ok {
  99. return x.FileByFilename
  100. }
  101. return ""
  102. }
  103. func (m *ServerReflectionRequest) GetFileContainingSymbol() string {
  104. if x, ok := m.GetMessageRequest().(*ServerReflectionRequest_FileContainingSymbol); ok {
  105. return x.FileContainingSymbol
  106. }
  107. return ""
  108. }
  109. func (m *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest {
  110. if x, ok := m.GetMessageRequest().(*ServerReflectionRequest_FileContainingExtension); ok {
  111. return x.FileContainingExtension
  112. }
  113. return nil
  114. }
  115. func (m *ServerReflectionRequest) GetAllExtensionNumbersOfType() string {
  116. if x, ok := m.GetMessageRequest().(*ServerReflectionRequest_AllExtensionNumbersOfType); ok {
  117. return x.AllExtensionNumbersOfType
  118. }
  119. return ""
  120. }
  121. func (m *ServerReflectionRequest) GetListServices() string {
  122. if x, ok := m.GetMessageRequest().(*ServerReflectionRequest_ListServices); ok {
  123. return x.ListServices
  124. }
  125. return ""
  126. }
  127. // XXX_OneofWrappers is for the internal use of the proto package.
  128. func (*ServerReflectionRequest) XXX_OneofWrappers() []interface{} {
  129. return []interface{}{
  130. (*ServerReflectionRequest_FileByFilename)(nil),
  131. (*ServerReflectionRequest_FileContainingSymbol)(nil),
  132. (*ServerReflectionRequest_FileContainingExtension)(nil),
  133. (*ServerReflectionRequest_AllExtensionNumbersOfType)(nil),
  134. (*ServerReflectionRequest_ListServices)(nil),
  135. }
  136. }
  137. // The type name and extension number sent by the client when requesting
  138. // file_containing_extension.
  139. type ExtensionRequest struct {
  140. // Fully-qualified type name. The format should be <package>.<type>
  141. ContainingType string `protobuf:"bytes,1,opt,name=containing_type,json=containingType,proto3" json:"containing_type,omitempty"`
  142. ExtensionNumber int32 `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"`
  143. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  144. XXX_unrecognized []byte `json:"-"`
  145. XXX_sizecache int32 `json:"-"`
  146. }
  147. func (m *ExtensionRequest) Reset() { *m = ExtensionRequest{} }
  148. func (m *ExtensionRequest) String() string { return proto.CompactTextString(m) }
  149. func (*ExtensionRequest) ProtoMessage() {}
  150. func (*ExtensionRequest) Descriptor() ([]byte, []int) {
  151. return fileDescriptor_42a8ac412db3cb03, []int{1}
  152. }
  153. func (m *ExtensionRequest) XXX_Unmarshal(b []byte) error {
  154. return xxx_messageInfo_ExtensionRequest.Unmarshal(m, b)
  155. }
  156. func (m *ExtensionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  157. return xxx_messageInfo_ExtensionRequest.Marshal(b, m, deterministic)
  158. }
  159. func (m *ExtensionRequest) XXX_Merge(src proto.Message) {
  160. xxx_messageInfo_ExtensionRequest.Merge(m, src)
  161. }
  162. func (m *ExtensionRequest) XXX_Size() int {
  163. return xxx_messageInfo_ExtensionRequest.Size(m)
  164. }
  165. func (m *ExtensionRequest) XXX_DiscardUnknown() {
  166. xxx_messageInfo_ExtensionRequest.DiscardUnknown(m)
  167. }
  168. var xxx_messageInfo_ExtensionRequest proto.InternalMessageInfo
  169. func (m *ExtensionRequest) GetContainingType() string {
  170. if m != nil {
  171. return m.ContainingType
  172. }
  173. return ""
  174. }
  175. func (m *ExtensionRequest) GetExtensionNumber() int32 {
  176. if m != nil {
  177. return m.ExtensionNumber
  178. }
  179. return 0
  180. }
  181. // The message sent by the server to answer ServerReflectionInfo method.
  182. type ServerReflectionResponse struct {
  183. ValidHost string `protobuf:"bytes,1,opt,name=valid_host,json=validHost,proto3" json:"valid_host,omitempty"`
  184. OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest,proto3" json:"original_request,omitempty"`
  185. // The server sets one of the following fields according to the
  186. // message_request in the request.
  187. //
  188. // Types that are valid to be assigned to MessageResponse:
  189. // *ServerReflectionResponse_FileDescriptorResponse
  190. // *ServerReflectionResponse_AllExtensionNumbersResponse
  191. // *ServerReflectionResponse_ListServicesResponse
  192. // *ServerReflectionResponse_ErrorResponse
  193. MessageResponse isServerReflectionResponse_MessageResponse `protobuf_oneof:"message_response"`
  194. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  195. XXX_unrecognized []byte `json:"-"`
  196. XXX_sizecache int32 `json:"-"`
  197. }
  198. func (m *ServerReflectionResponse) Reset() { *m = ServerReflectionResponse{} }
  199. func (m *ServerReflectionResponse) String() string { return proto.CompactTextString(m) }
  200. func (*ServerReflectionResponse) ProtoMessage() {}
  201. func (*ServerReflectionResponse) Descriptor() ([]byte, []int) {
  202. return fileDescriptor_42a8ac412db3cb03, []int{2}
  203. }
  204. func (m *ServerReflectionResponse) XXX_Unmarshal(b []byte) error {
  205. return xxx_messageInfo_ServerReflectionResponse.Unmarshal(m, b)
  206. }
  207. func (m *ServerReflectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  208. return xxx_messageInfo_ServerReflectionResponse.Marshal(b, m, deterministic)
  209. }
  210. func (m *ServerReflectionResponse) XXX_Merge(src proto.Message) {
  211. xxx_messageInfo_ServerReflectionResponse.Merge(m, src)
  212. }
  213. func (m *ServerReflectionResponse) XXX_Size() int {
  214. return xxx_messageInfo_ServerReflectionResponse.Size(m)
  215. }
  216. func (m *ServerReflectionResponse) XXX_DiscardUnknown() {
  217. xxx_messageInfo_ServerReflectionResponse.DiscardUnknown(m)
  218. }
  219. var xxx_messageInfo_ServerReflectionResponse proto.InternalMessageInfo
  220. func (m *ServerReflectionResponse) GetValidHost() string {
  221. if m != nil {
  222. return m.ValidHost
  223. }
  224. return ""
  225. }
  226. func (m *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest {
  227. if m != nil {
  228. return m.OriginalRequest
  229. }
  230. return nil
  231. }
  232. type isServerReflectionResponse_MessageResponse interface {
  233. isServerReflectionResponse_MessageResponse()
  234. }
  235. type ServerReflectionResponse_FileDescriptorResponse struct {
  236. FileDescriptorResponse *FileDescriptorResponse `protobuf:"bytes,4,opt,name=file_descriptor_response,json=fileDescriptorResponse,proto3,oneof"`
  237. }
  238. type ServerReflectionResponse_AllExtensionNumbersResponse struct {
  239. AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,proto3,oneof"`
  240. }
  241. type ServerReflectionResponse_ListServicesResponse struct {
  242. ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,proto3,oneof"`
  243. }
  244. type ServerReflectionResponse_ErrorResponse struct {
  245. ErrorResponse *ErrorResponse `protobuf:"bytes,7,opt,name=error_response,json=errorResponse,proto3,oneof"`
  246. }
  247. func (*ServerReflectionResponse_FileDescriptorResponse) isServerReflectionResponse_MessageResponse() {}
  248. func (*ServerReflectionResponse_AllExtensionNumbersResponse) isServerReflectionResponse_MessageResponse() {
  249. }
  250. func (*ServerReflectionResponse_ListServicesResponse) isServerReflectionResponse_MessageResponse() {}
  251. func (*ServerReflectionResponse_ErrorResponse) isServerReflectionResponse_MessageResponse() {}
  252. func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse {
  253. if m != nil {
  254. return m.MessageResponse
  255. }
  256. return nil
  257. }
  258. func (m *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse {
  259. if x, ok := m.GetMessageResponse().(*ServerReflectionResponse_FileDescriptorResponse); ok {
  260. return x.FileDescriptorResponse
  261. }
  262. return nil
  263. }
  264. func (m *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse {
  265. if x, ok := m.GetMessageResponse().(*ServerReflectionResponse_AllExtensionNumbersResponse); ok {
  266. return x.AllExtensionNumbersResponse
  267. }
  268. return nil
  269. }
  270. func (m *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse {
  271. if x, ok := m.GetMessageResponse().(*ServerReflectionResponse_ListServicesResponse); ok {
  272. return x.ListServicesResponse
  273. }
  274. return nil
  275. }
  276. func (m *ServerReflectionResponse) GetErrorResponse() *ErrorResponse {
  277. if x, ok := m.GetMessageResponse().(*ServerReflectionResponse_ErrorResponse); ok {
  278. return x.ErrorResponse
  279. }
  280. return nil
  281. }
  282. // XXX_OneofWrappers is for the internal use of the proto package.
  283. func (*ServerReflectionResponse) XXX_OneofWrappers() []interface{} {
  284. return []interface{}{
  285. (*ServerReflectionResponse_FileDescriptorResponse)(nil),
  286. (*ServerReflectionResponse_AllExtensionNumbersResponse)(nil),
  287. (*ServerReflectionResponse_ListServicesResponse)(nil),
  288. (*ServerReflectionResponse_ErrorResponse)(nil),
  289. }
  290. }
  291. // Serialized FileDescriptorProto messages sent by the server answering
  292. // a file_by_filename, file_containing_symbol, or file_containing_extension
  293. // request.
  294. type FileDescriptorResponse struct {
  295. // Serialized FileDescriptorProto messages. We avoid taking a dependency on
  296. // descriptor.proto, which uses proto2 only features, by making them opaque
  297. // bytes instead.
  298. FileDescriptorProto [][]byte `protobuf:"bytes,1,rep,name=file_descriptor_proto,json=fileDescriptorProto,proto3" json:"file_descriptor_proto,omitempty"`
  299. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  300. XXX_unrecognized []byte `json:"-"`
  301. XXX_sizecache int32 `json:"-"`
  302. }
  303. func (m *FileDescriptorResponse) Reset() { *m = FileDescriptorResponse{} }
  304. func (m *FileDescriptorResponse) String() string { return proto.CompactTextString(m) }
  305. func (*FileDescriptorResponse) ProtoMessage() {}
  306. func (*FileDescriptorResponse) Descriptor() ([]byte, []int) {
  307. return fileDescriptor_42a8ac412db3cb03, []int{3}
  308. }
  309. func (m *FileDescriptorResponse) XXX_Unmarshal(b []byte) error {
  310. return xxx_messageInfo_FileDescriptorResponse.Unmarshal(m, b)
  311. }
  312. func (m *FileDescriptorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  313. return xxx_messageInfo_FileDescriptorResponse.Marshal(b, m, deterministic)
  314. }
  315. func (m *FileDescriptorResponse) XXX_Merge(src proto.Message) {
  316. xxx_messageInfo_FileDescriptorResponse.Merge(m, src)
  317. }
  318. func (m *FileDescriptorResponse) XXX_Size() int {
  319. return xxx_messageInfo_FileDescriptorResponse.Size(m)
  320. }
  321. func (m *FileDescriptorResponse) XXX_DiscardUnknown() {
  322. xxx_messageInfo_FileDescriptorResponse.DiscardUnknown(m)
  323. }
  324. var xxx_messageInfo_FileDescriptorResponse proto.InternalMessageInfo
  325. func (m *FileDescriptorResponse) GetFileDescriptorProto() [][]byte {
  326. if m != nil {
  327. return m.FileDescriptorProto
  328. }
  329. return nil
  330. }
  331. // A list of extension numbers sent by the server answering
  332. // all_extension_numbers_of_type request.
  333. type ExtensionNumberResponse struct {
  334. // Full name of the base type, including the package name. The format
  335. // is <package>.<type>
  336. BaseTypeName string `protobuf:"bytes,1,opt,name=base_type_name,json=baseTypeName,proto3" json:"base_type_name,omitempty"`
  337. ExtensionNumber []int32 `protobuf:"varint,2,rep,packed,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"`
  338. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  339. XXX_unrecognized []byte `json:"-"`
  340. XXX_sizecache int32 `json:"-"`
  341. }
  342. func (m *ExtensionNumberResponse) Reset() { *m = ExtensionNumberResponse{} }
  343. func (m *ExtensionNumberResponse) String() string { return proto.CompactTextString(m) }
  344. func (*ExtensionNumberResponse) ProtoMessage() {}
  345. func (*ExtensionNumberResponse) Descriptor() ([]byte, []int) {
  346. return fileDescriptor_42a8ac412db3cb03, []int{4}
  347. }
  348. func (m *ExtensionNumberResponse) XXX_Unmarshal(b []byte) error {
  349. return xxx_messageInfo_ExtensionNumberResponse.Unmarshal(m, b)
  350. }
  351. func (m *ExtensionNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  352. return xxx_messageInfo_ExtensionNumberResponse.Marshal(b, m, deterministic)
  353. }
  354. func (m *ExtensionNumberResponse) XXX_Merge(src proto.Message) {
  355. xxx_messageInfo_ExtensionNumberResponse.Merge(m, src)
  356. }
  357. func (m *ExtensionNumberResponse) XXX_Size() int {
  358. return xxx_messageInfo_ExtensionNumberResponse.Size(m)
  359. }
  360. func (m *ExtensionNumberResponse) XXX_DiscardUnknown() {
  361. xxx_messageInfo_ExtensionNumberResponse.DiscardUnknown(m)
  362. }
  363. var xxx_messageInfo_ExtensionNumberResponse proto.InternalMessageInfo
  364. func (m *ExtensionNumberResponse) GetBaseTypeName() string {
  365. if m != nil {
  366. return m.BaseTypeName
  367. }
  368. return ""
  369. }
  370. func (m *ExtensionNumberResponse) GetExtensionNumber() []int32 {
  371. if m != nil {
  372. return m.ExtensionNumber
  373. }
  374. return nil
  375. }
  376. // A list of ServiceResponse sent by the server answering list_services request.
  377. type ListServiceResponse struct {
  378. // The information of each service may be expanded in the future, so we use
  379. // ServiceResponse message to encapsulate it.
  380. Service []*ServiceResponse `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"`
  381. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  382. XXX_unrecognized []byte `json:"-"`
  383. XXX_sizecache int32 `json:"-"`
  384. }
  385. func (m *ListServiceResponse) Reset() { *m = ListServiceResponse{} }
  386. func (m *ListServiceResponse) String() string { return proto.CompactTextString(m) }
  387. func (*ListServiceResponse) ProtoMessage() {}
  388. func (*ListServiceResponse) Descriptor() ([]byte, []int) {
  389. return fileDescriptor_42a8ac412db3cb03, []int{5}
  390. }
  391. func (m *ListServiceResponse) XXX_Unmarshal(b []byte) error {
  392. return xxx_messageInfo_ListServiceResponse.Unmarshal(m, b)
  393. }
  394. func (m *ListServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  395. return xxx_messageInfo_ListServiceResponse.Marshal(b, m, deterministic)
  396. }
  397. func (m *ListServiceResponse) XXX_Merge(src proto.Message) {
  398. xxx_messageInfo_ListServiceResponse.Merge(m, src)
  399. }
  400. func (m *ListServiceResponse) XXX_Size() int {
  401. return xxx_messageInfo_ListServiceResponse.Size(m)
  402. }
  403. func (m *ListServiceResponse) XXX_DiscardUnknown() {
  404. xxx_messageInfo_ListServiceResponse.DiscardUnknown(m)
  405. }
  406. var xxx_messageInfo_ListServiceResponse proto.InternalMessageInfo
  407. func (m *ListServiceResponse) GetService() []*ServiceResponse {
  408. if m != nil {
  409. return m.Service
  410. }
  411. return nil
  412. }
  413. // The information of a single service used by ListServiceResponse to answer
  414. // list_services request.
  415. type ServiceResponse struct {
  416. // Full name of a registered service, including its package name. The format
  417. // is <package>.<service>
  418. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  419. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  420. XXX_unrecognized []byte `json:"-"`
  421. XXX_sizecache int32 `json:"-"`
  422. }
  423. func (m *ServiceResponse) Reset() { *m = ServiceResponse{} }
  424. func (m *ServiceResponse) String() string { return proto.CompactTextString(m) }
  425. func (*ServiceResponse) ProtoMessage() {}
  426. func (*ServiceResponse) Descriptor() ([]byte, []int) {
  427. return fileDescriptor_42a8ac412db3cb03, []int{6}
  428. }
  429. func (m *ServiceResponse) XXX_Unmarshal(b []byte) error {
  430. return xxx_messageInfo_ServiceResponse.Unmarshal(m, b)
  431. }
  432. func (m *ServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  433. return xxx_messageInfo_ServiceResponse.Marshal(b, m, deterministic)
  434. }
  435. func (m *ServiceResponse) XXX_Merge(src proto.Message) {
  436. xxx_messageInfo_ServiceResponse.Merge(m, src)
  437. }
  438. func (m *ServiceResponse) XXX_Size() int {
  439. return xxx_messageInfo_ServiceResponse.Size(m)
  440. }
  441. func (m *ServiceResponse) XXX_DiscardUnknown() {
  442. xxx_messageInfo_ServiceResponse.DiscardUnknown(m)
  443. }
  444. var xxx_messageInfo_ServiceResponse proto.InternalMessageInfo
  445. func (m *ServiceResponse) GetName() string {
  446. if m != nil {
  447. return m.Name
  448. }
  449. return ""
  450. }
  451. // The error code and error message sent by the server when an error occurs.
  452. type ErrorResponse struct {
  453. // This field uses the error codes defined in grpc::StatusCode.
  454. ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
  455. ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
  456. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  457. XXX_unrecognized []byte `json:"-"`
  458. XXX_sizecache int32 `json:"-"`
  459. }
  460. func (m *ErrorResponse) Reset() { *m = ErrorResponse{} }
  461. func (m *ErrorResponse) String() string { return proto.CompactTextString(m) }
  462. func (*ErrorResponse) ProtoMessage() {}
  463. func (*ErrorResponse) Descriptor() ([]byte, []int) {
  464. return fileDescriptor_42a8ac412db3cb03, []int{7}
  465. }
  466. func (m *ErrorResponse) XXX_Unmarshal(b []byte) error {
  467. return xxx_messageInfo_ErrorResponse.Unmarshal(m, b)
  468. }
  469. func (m *ErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  470. return xxx_messageInfo_ErrorResponse.Marshal(b, m, deterministic)
  471. }
  472. func (m *ErrorResponse) XXX_Merge(src proto.Message) {
  473. xxx_messageInfo_ErrorResponse.Merge(m, src)
  474. }
  475. func (m *ErrorResponse) XXX_Size() int {
  476. return xxx_messageInfo_ErrorResponse.Size(m)
  477. }
  478. func (m *ErrorResponse) XXX_DiscardUnknown() {
  479. xxx_messageInfo_ErrorResponse.DiscardUnknown(m)
  480. }
  481. var xxx_messageInfo_ErrorResponse proto.InternalMessageInfo
  482. func (m *ErrorResponse) GetErrorCode() int32 {
  483. if m != nil {
  484. return m.ErrorCode
  485. }
  486. return 0
  487. }
  488. func (m *ErrorResponse) GetErrorMessage() string {
  489. if m != nil {
  490. return m.ErrorMessage
  491. }
  492. return ""
  493. }
  494. func init() {
  495. proto.RegisterType((*ServerReflectionRequest)(nil), "grpc.reflection.v1alpha.ServerReflectionRequest")
  496. proto.RegisterType((*ExtensionRequest)(nil), "grpc.reflection.v1alpha.ExtensionRequest")
  497. proto.RegisterType((*ServerReflectionResponse)(nil), "grpc.reflection.v1alpha.ServerReflectionResponse")
  498. proto.RegisterType((*FileDescriptorResponse)(nil), "grpc.reflection.v1alpha.FileDescriptorResponse")
  499. proto.RegisterType((*ExtensionNumberResponse)(nil), "grpc.reflection.v1alpha.ExtensionNumberResponse")
  500. proto.RegisterType((*ListServiceResponse)(nil), "grpc.reflection.v1alpha.ListServiceResponse")
  501. proto.RegisterType((*ServiceResponse)(nil), "grpc.reflection.v1alpha.ServiceResponse")
  502. proto.RegisterType((*ErrorResponse)(nil), "grpc.reflection.v1alpha.ErrorResponse")
  503. }
  504. func init() {
  505. proto.RegisterFile("grpc_reflection_v1alpha/reflection.proto", fileDescriptor_42a8ac412db3cb03)
  506. }
  507. var fileDescriptor_42a8ac412db3cb03 = []byte{
  508. // 656 bytes of a gzipped FileDescriptorProto
  509. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x51, 0x73, 0xd2, 0x40,
  510. 0x10, 0x6e, 0x5a, 0x68, 0x87, 0x85, 0x02, 0x5e, 0x2b, 0xa4, 0x3a, 0x75, 0x98, 0x68, 0x35, 0x75,
  511. 0x1c, 0xda, 0xe2, 0x8c, 0x3f, 0x80, 0xaa, 0x83, 0x33, 0xb5, 0x75, 0x0e, 0x5f, 0x1c, 0x1f, 0x6e,
  512. 0x02, 0x2c, 0x34, 0x1a, 0x72, 0xf1, 0x2e, 0x45, 0x79, 0xf2, 0x47, 0xf8, 0xa3, 0xfc, 0x4b, 0x3e,
  513. 0x3a, 0x77, 0x09, 0x21, 0xa4, 0x44, 0xa7, 0x4f, 0x30, 0xdf, 0xee, 0xde, 0xb7, 0xbb, 0xdf, 0xb7,
  514. 0x01, 0x7b, 0x22, 0x82, 0x21, 0x13, 0x38, 0xf6, 0x70, 0x18, 0xba, 0xdc, 0x67, 0xb3, 0x33, 0xc7,
  515. 0x0b, 0xae, 0x9d, 0x93, 0x25, 0xd4, 0x0e, 0x04, 0x0f, 0x39, 0x69, 0xaa, 0xcc, 0x76, 0x0a, 0x8e,
  516. 0x33, 0xad, 0x3f, 0x9b, 0xd0, 0xec, 0xa3, 0x98, 0xa1, 0xa0, 0x49, 0x90, 0xe2, 0xb7, 0x1b, 0x94,
  517. 0x21, 0x21, 0x50, 0xb8, 0xe6, 0x32, 0x34, 0x8d, 0x96, 0x61, 0x97, 0xa8, 0xfe, 0x4f, 0x9e, 0x43,
  518. 0x7d, 0xec, 0x7a, 0xc8, 0x06, 0x73, 0xa6, 0x7e, 0x7d, 0x67, 0x8a, 0xe6, 0x96, 0x8a, 0xf7, 0x36,
  519. 0x68, 0x55, 0x21, 0xdd, 0xf9, 0xdb, 0x18, 0x27, 0xaf, 0xa0, 0xa1, 0x73, 0x87, 0xdc, 0x0f, 0x1d,
  520. 0xd7, 0x77, 0xfd, 0x09, 0x93, 0xf3, 0xe9, 0x80, 0x7b, 0x66, 0x21, 0xae, 0xd8, 0x57, 0xf1, 0xf3,
  521. 0x24, 0xdc, 0xd7, 0x51, 0x32, 0x81, 0x83, 0x6c, 0x1d, 0xfe, 0x08, 0xd1, 0x97, 0x2e, 0xf7, 0xcd,
  522. 0x62, 0xcb, 0xb0, 0xcb, 0x9d, 0xe3, 0x76, 0xce, 0x40, 0xed, 0x37, 0x8b, 0xcc, 0x78, 0x8a, 0xde,
  523. 0x06, 0x6d, 0xae, 0xb2, 0x24, 0x19, 0xa4, 0x0b, 0x87, 0x8e, 0xe7, 0x2d, 0x1f, 0x67, 0xfe, 0xcd,
  524. 0x74, 0x80, 0x42, 0x32, 0x3e, 0x66, 0xe1, 0x3c, 0x40, 0x73, 0x3b, 0xee, 0xf3, 0xc0, 0xf1, 0xbc,
  525. 0xa4, 0xec, 0x32, 0x4a, 0xba, 0x1a, 0x7f, 0x9c, 0x07, 0x48, 0x8e, 0x60, 0xd7, 0x73, 0x65, 0xc8,
  526. 0x24, 0x8a, 0x99, 0x3b, 0x44, 0x69, 0xee, 0xc4, 0x35, 0x15, 0x05, 0xf7, 0x63, 0xb4, 0x7b, 0x0f,
  527. 0x6a, 0x53, 0x94, 0xd2, 0x99, 0x20, 0x13, 0x51, 0x63, 0xd6, 0x18, 0xea, 0xd9, 0x66, 0xc9, 0x33,
  528. 0xa8, 0xa5, 0xa6, 0xd6, 0x3d, 0x44, 0xdb, 0xaf, 0x2e, 0x61, 0x4d, 0x7b, 0x0c, 0xf5, 0x6c, 0xdb,
  529. 0xe6, 0x66, 0xcb, 0xb0, 0x8b, 0xb4, 0x86, 0xab, 0x8d, 0x5a, 0xbf, 0x0b, 0x60, 0xde, 0x96, 0x58,
  530. 0x06, 0xdc, 0x97, 0x48, 0x0e, 0x01, 0x66, 0x8e, 0xe7, 0x8e, 0x58, 0x4a, 0xe9, 0x92, 0x46, 0x7a,
  531. 0x4a, 0xee, 0xcf, 0x50, 0xe7, 0xc2, 0x9d, 0xb8, 0xbe, 0xe3, 0x2d, 0xfa, 0xd6, 0x34, 0xe5, 0xce,
  532. 0x69, 0xae, 0x02, 0x39, 0x76, 0xa2, 0xb5, 0xc5, 0x4b, 0x8b, 0x61, 0xbf, 0x82, 0xa9, 0x75, 0x1e,
  533. 0xa1, 0x1c, 0x0a, 0x37, 0x08, 0xb9, 0x60, 0x22, 0xee, 0x4b, 0x3b, 0xa4, 0xdc, 0x39, 0xc9, 0x25,
  534. 0x51, 0x26, 0x7b, 0x9d, 0xd4, 0x2d, 0xc6, 0xe9, 0x6d, 0x50, 0x6d, 0xb9, 0xdb, 0x11, 0xf2, 0x1d,
  535. 0x1e, 0xad, 0xd7, 0x3a, 0xa1, 0x2c, 0xfe, 0x67, 0xae, 0x8c, 0x01, 0x52, 0x9c, 0x0f, 0xd7, 0xd8,
  536. 0x23, 0x21, 0x1e, 0x41, 0x63, 0xc5, 0x20, 0x4b, 0xc2, 0x6d, 0x4d, 0xf8, 0x22, 0x97, 0xf0, 0x62,
  537. 0x69, 0xa0, 0x14, 0xd9, 0x7e, 0xda, 0x57, 0x09, 0xcb, 0x15, 0x54, 0x51, 0x88, 0xf4, 0x06, 0x77,
  538. 0xf4, 0xeb, 0x4f, 0xf3, 0xc7, 0x51, 0xe9, 0xa9, 0x77, 0x77, 0x31, 0x0d, 0x74, 0x09, 0xd4, 0x97,
  539. 0x86, 0x8d, 0x30, 0xeb, 0x02, 0x1a, 0xeb, 0xf7, 0x4e, 0x3a, 0x70, 0x3f, 0x2b, 0xa5, 0xfe, 0xf0,
  540. 0x98, 0x46, 0x6b, 0xcb, 0xae, 0xd0, 0xbd, 0x55, 0x51, 0x3e, 0xa8, 0x90, 0xf5, 0x05, 0x9a, 0x39,
  541. 0x2b, 0x25, 0x4f, 0xa0, 0x3a, 0x70, 0x24, 0xea, 0x03, 0x60, 0xfa, 0x1b, 0x13, 0x39, 0xb3, 0xa2,
  542. 0x50, 0xe5, 0xff, 0x4b, 0xf5, 0x7d, 0x59, 0x7f, 0x03, 0x5b, 0xeb, 0x6e, 0xe0, 0x13, 0xec, 0xad,
  543. 0xd9, 0x26, 0xe9, 0xc2, 0x4e, 0x2c, 0x8b, 0x6e, 0xb4, 0xdc, 0xb1, 0xff, 0xe9, 0xea, 0x54, 0x29,
  544. 0x5d, 0x14, 0x5a, 0x47, 0x50, 0xcb, 0x3e, 0x4b, 0xa0, 0x90, 0x6a, 0x5a, 0xff, 0xb7, 0xfa, 0xb0,
  545. 0xbb, 0xb2, 0x71, 0x75, 0x79, 0x91, 0x62, 0x43, 0x3e, 0x8a, 0x52, 0x8b, 0xb4, 0xa4, 0x91, 0x73,
  546. 0x3e, 0x42, 0xf2, 0x18, 0x22, 0x41, 0x58, 0xac, 0x82, 0x3e, 0xbb, 0x12, 0xad, 0x68, 0xf0, 0x7d,
  547. 0x84, 0x75, 0x7e, 0x19, 0x50, 0xcf, 0x9e, 0x1b, 0xf9, 0x09, 0xfb, 0x59, 0xec, 0x9d, 0x3f, 0xe6,
  548. 0xe4, 0xce, 0x17, 0xfb, 0xe0, 0xec, 0x0e, 0x15, 0xd1, 0x54, 0xb6, 0x71, 0x6a, 0x0c, 0xb6, 0xb5,
  549. 0xf4, 0x2f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x85, 0x02, 0x09, 0x9d, 0x9f, 0x06, 0x00, 0x00,
  550. }
  551. // Reference imports to suppress errors if they are not otherwise used.
  552. var _ context.Context
  553. var _ grpc.ClientConnInterface
  554. // This is a compile-time assertion to ensure that this generated file
  555. // is compatible with the grpc package it is being compiled against.
  556. const _ = grpc.SupportPackageIsVersion6
  557. // ServerReflectionClient is the client API for ServerReflection service.
  558. //
  559. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  560. type ServerReflectionClient interface {
  561. // The reflection service is structured as a bidirectional stream, ensuring
  562. // all related requests go to a single server.
  563. ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error)
  564. }
  565. type serverReflectionClient struct {
  566. cc grpc.ClientConnInterface
  567. }
  568. func NewServerReflectionClient(cc grpc.ClientConnInterface) ServerReflectionClient {
  569. return &serverReflectionClient{cc}
  570. }
  571. func (c *serverReflectionClient) ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) {
  572. stream, err := c.cc.NewStream(ctx, &_ServerReflection_serviceDesc.Streams[0], "/grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo", opts...)
  573. if err != nil {
  574. return nil, err
  575. }
  576. x := &serverReflectionServerReflectionInfoClient{stream}
  577. return x, nil
  578. }
  579. type ServerReflection_ServerReflectionInfoClient interface {
  580. Send(*ServerReflectionRequest) error
  581. Recv() (*ServerReflectionResponse, error)
  582. grpc.ClientStream
  583. }
  584. type serverReflectionServerReflectionInfoClient struct {
  585. grpc.ClientStream
  586. }
  587. func (x *serverReflectionServerReflectionInfoClient) Send(m *ServerReflectionRequest) error {
  588. return x.ClientStream.SendMsg(m)
  589. }
  590. func (x *serverReflectionServerReflectionInfoClient) Recv() (*ServerReflectionResponse, error) {
  591. m := new(ServerReflectionResponse)
  592. if err := x.ClientStream.RecvMsg(m); err != nil {
  593. return nil, err
  594. }
  595. return m, nil
  596. }
  597. // ServerReflectionServer is the server API for ServerReflection service.
  598. type ServerReflectionServer interface {
  599. // The reflection service is structured as a bidirectional stream, ensuring
  600. // all related requests go to a single server.
  601. ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error
  602. }
  603. // UnimplementedServerReflectionServer can be embedded to have forward compatible implementations.
  604. type UnimplementedServerReflectionServer struct {
  605. }
  606. func (*UnimplementedServerReflectionServer) ServerReflectionInfo(srv ServerReflection_ServerReflectionInfoServer) error {
  607. return status.Errorf(codes.Unimplemented, "method ServerReflectionInfo not implemented")
  608. }
  609. func RegisterServerReflectionServer(s *grpc.Server, srv ServerReflectionServer) {
  610. s.RegisterService(&_ServerReflection_serviceDesc, srv)
  611. }
  612. func _ServerReflection_ServerReflectionInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
  613. return srv.(ServerReflectionServer).ServerReflectionInfo(&serverReflectionServerReflectionInfoServer{stream})
  614. }
  615. type ServerReflection_ServerReflectionInfoServer interface {
  616. Send(*ServerReflectionResponse) error
  617. Recv() (*ServerReflectionRequest, error)
  618. grpc.ServerStream
  619. }
  620. type serverReflectionServerReflectionInfoServer struct {
  621. grpc.ServerStream
  622. }
  623. func (x *serverReflectionServerReflectionInfoServer) Send(m *ServerReflectionResponse) error {
  624. return x.ServerStream.SendMsg(m)
  625. }
  626. func (x *serverReflectionServerReflectionInfoServer) Recv() (*ServerReflectionRequest, error) {
  627. m := new(ServerReflectionRequest)
  628. if err := x.ServerStream.RecvMsg(m); err != nil {
  629. return nil, err
  630. }
  631. return m, nil
  632. }
  633. var _ServerReflection_serviceDesc = grpc.ServiceDesc{
  634. ServiceName: "grpc.reflection.v1alpha.ServerReflection",
  635. HandlerType: (*ServerReflectionServer)(nil),
  636. Methods: []grpc.MethodDesc{},
  637. Streams: []grpc.StreamDesc{
  638. {
  639. StreamName: "ServerReflectionInfo",
  640. Handler: _ServerReflection_ServerReflectionInfo_Handler,
  641. ServerStreams: true,
  642. ClientStreams: true,
  643. },
  644. },
  645. Metadata: "grpc_reflection_v1alpha/reflection.proto",
  646. }