conformance.pb.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: conformance/conformance.proto
  3. package conformance
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. prototype "google.golang.org/protobuf/reflect/prototype"
  7. protoiface "google.golang.org/protobuf/runtime/protoiface"
  8. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  16. )
  17. type WireFormat int32
  18. const (
  19. WireFormat_UNSPECIFIED WireFormat = 0
  20. WireFormat_PROTOBUF WireFormat = 1
  21. WireFormat_JSON WireFormat = 2
  22. WireFormat_JSPB WireFormat = 3
  23. WireFormat_TEXT_FORMAT WireFormat = 4
  24. )
  25. var WireFormat_name = map[int32]string{
  26. 0: "UNSPECIFIED",
  27. 1: "PROTOBUF",
  28. 2: "JSON",
  29. 3: "JSPB",
  30. 4: "TEXT_FORMAT",
  31. }
  32. var WireFormat_value = map[string]int32{
  33. "UNSPECIFIED": 0,
  34. "PROTOBUF": 1,
  35. "JSON": 2,
  36. "JSPB": 3,
  37. "TEXT_FORMAT": 4,
  38. }
  39. func (x WireFormat) Enum() *WireFormat {
  40. p := new(WireFormat)
  41. *p = x
  42. return p
  43. }
  44. func (x WireFormat) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (WireFormat) Descriptor() protoreflect.EnumDescriptor {
  48. return file_conformance_conformance_proto_enumTypes[0].EnumDescriptor
  49. }
  50. func (x WireFormat) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Use WireFormat.Type instead.
  54. func (WireFormat) EnumDescriptor() ([]byte, []int) {
  55. return file_conformance_conformance_proto_rawDescGZIP(), []int{0}
  56. }
  57. type TestCategory int32
  58. const (
  59. TestCategory_UNSPECIFIED_TEST TestCategory = 0
  60. TestCategory_BINARY_TEST TestCategory = 1
  61. TestCategory_JSON_TEST TestCategory = 2
  62. // Similar to JSON_TEST. However, during parsing json, testee should ignore
  63. // unknown fields. This feature is optional. Each implementation can descide
  64. // whether to support it. See
  65. // https://developers.google.com/protocol-buffers/docs/proto3#json_options
  66. // for more detail.
  67. TestCategory_JSON_IGNORE_UNKNOWN_PARSING_TEST TestCategory = 3
  68. // Test jspb wire format. Google internal only. Opensource testees just skip it.
  69. TestCategory_JSPB_TEST TestCategory = 4
  70. // Test text format. For cpp, java and python, testees can already deal with
  71. // this type. Testees of other languages can simply skip it.
  72. TestCategory_TEXT_FORMAT_TEST TestCategory = 5
  73. )
  74. var TestCategory_name = map[int32]string{
  75. 0: "UNSPECIFIED_TEST",
  76. 1: "BINARY_TEST",
  77. 2: "JSON_TEST",
  78. 3: "JSON_IGNORE_UNKNOWN_PARSING_TEST",
  79. 4: "JSPB_TEST",
  80. 5: "TEXT_FORMAT_TEST",
  81. }
  82. var TestCategory_value = map[string]int32{
  83. "UNSPECIFIED_TEST": 0,
  84. "BINARY_TEST": 1,
  85. "JSON_TEST": 2,
  86. "JSON_IGNORE_UNKNOWN_PARSING_TEST": 3,
  87. "JSPB_TEST": 4,
  88. "TEXT_FORMAT_TEST": 5,
  89. }
  90. func (x TestCategory) Enum() *TestCategory {
  91. p := new(TestCategory)
  92. *p = x
  93. return p
  94. }
  95. func (x TestCategory) String() string {
  96. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  97. }
  98. func (TestCategory) Descriptor() protoreflect.EnumDescriptor {
  99. return file_conformance_conformance_proto_enumTypes[1].EnumDescriptor
  100. }
  101. func (x TestCategory) Number() protoreflect.EnumNumber {
  102. return protoreflect.EnumNumber(x)
  103. }
  104. // Deprecated: Use TestCategory.Type instead.
  105. func (TestCategory) EnumDescriptor() ([]byte, []int) {
  106. return file_conformance_conformance_proto_rawDescGZIP(), []int{1}
  107. }
  108. // The conformance runner will request a list of failures as the first request.
  109. // This will be known by message_type == "conformance.FailureSet", a conformance
  110. // test should return a serialized FailureSet in protobuf_payload.
  111. type FailureSet struct {
  112. state protoimpl.MessageState
  113. Failure []string `protobuf:"bytes,1,rep,name=failure,proto3" json:"failure,omitempty"`
  114. sizeCache protoimpl.SizeCache
  115. unknownFields protoimpl.UnknownFields
  116. }
  117. func (x *FailureSet) Reset() {
  118. *x = FailureSet{}
  119. }
  120. func (x *FailureSet) String() string {
  121. return protoimpl.X.MessageStringOf(x)
  122. }
  123. func (*FailureSet) ProtoMessage() {}
  124. func (x *FailureSet) ProtoReflect() protoreflect.Message {
  125. mi := &file_conformance_conformance_proto_msgTypes[0]
  126. if protoimpl.UnsafeEnabled && x != nil {
  127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  128. if ms.LoadMessageInfo() == nil {
  129. ms.StoreMessageInfo(mi)
  130. }
  131. return ms
  132. }
  133. return mi.MessageOf(x)
  134. }
  135. func (x *FailureSet) XXX_Methods() *protoiface.Methods {
  136. return file_conformance_conformance_proto_msgTypes[0].Methods()
  137. }
  138. // Deprecated: Use FailureSet.ProtoReflect.Type instead.
  139. func (*FailureSet) Descriptor() ([]byte, []int) {
  140. return file_conformance_conformance_proto_rawDescGZIP(), []int{0}
  141. }
  142. func (x *FailureSet) GetFailure() []string {
  143. if x != nil {
  144. return x.Failure
  145. }
  146. return nil
  147. }
  148. // Represents a single test case's input. The testee should:
  149. //
  150. // 1. parse this proto (which should always succeed)
  151. // 2. parse the protobuf or JSON payload in "payload" (which may fail)
  152. // 3. if the parse succeeded, serialize the message in the requested format.
  153. type ConformanceRequest struct {
  154. state protoimpl.MessageState
  155. // The payload (whether protobuf of JSON) is always for a
  156. // protobuf_test_messages.proto3.TestAllTypes proto (as defined in
  157. // src/google/protobuf/proto3_test_messages.proto).
  158. //
  159. // TODO(haberman): if/when we expand the conformance tests to support proto2,
  160. // we will want to include a field that lets the payload/response be a
  161. // protobuf_test_messages.proto2.TestAllTypes message instead.
  162. //
  163. // Types that are valid to be assigned to Payload:
  164. // *ConformanceRequest_ProtobufPayload
  165. // *ConformanceRequest_JsonPayload
  166. // Google internal only. Opensource testees just skip it.
  167. // *ConformanceRequest_JspbPayload
  168. // *ConformanceRequest_TextPayload
  169. Payload isConformanceRequest_Payload `protobuf_oneof:"payload"`
  170. // Which format should the testee serialize its message to?
  171. RequestedOutputFormat WireFormat `protobuf:"varint,3,opt,name=requested_output_format,json=requestedOutputFormat,proto3,enum=conformance.WireFormat" json:"requested_output_format,omitempty"`
  172. // The full name for the test message to use; for the moment, either:
  173. // protobuf_test_messages.proto3.TestAllTypesProto3 or
  174. // protobuf_test_messages.proto2.TestAllTypesProto2.
  175. MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
  176. // Each test is given a specific test category. Some category may need
  177. // spedific support in testee programs. Refer to the defintion of TestCategory
  178. // for more information.
  179. TestCategory TestCategory `protobuf:"varint,5,opt,name=test_category,json=testCategory,proto3,enum=conformance.TestCategory" json:"test_category,omitempty"`
  180. // Specify details for how to encode jspb.
  181. JspbEncodingOptions *JspbEncodingConfig `protobuf:"bytes,6,opt,name=jspb_encoding_options,json=jspbEncodingOptions,proto3" json:"jspb_encoding_options,omitempty"`
  182. sizeCache protoimpl.SizeCache
  183. unknownFields protoimpl.UnknownFields
  184. }
  185. func (x *ConformanceRequest) Reset() {
  186. *x = ConformanceRequest{}
  187. }
  188. func (x *ConformanceRequest) String() string {
  189. return protoimpl.X.MessageStringOf(x)
  190. }
  191. func (*ConformanceRequest) ProtoMessage() {}
  192. func (x *ConformanceRequest) ProtoReflect() protoreflect.Message {
  193. mi := &file_conformance_conformance_proto_msgTypes[1]
  194. if protoimpl.UnsafeEnabled && x != nil {
  195. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  196. if ms.LoadMessageInfo() == nil {
  197. ms.StoreMessageInfo(mi)
  198. }
  199. return ms
  200. }
  201. return mi.MessageOf(x)
  202. }
  203. func (x *ConformanceRequest) XXX_Methods() *protoiface.Methods {
  204. return file_conformance_conformance_proto_msgTypes[1].Methods()
  205. }
  206. // Deprecated: Use ConformanceRequest.ProtoReflect.Type instead.
  207. func (*ConformanceRequest) Descriptor() ([]byte, []int) {
  208. return file_conformance_conformance_proto_rawDescGZIP(), []int{1}
  209. }
  210. func (m *ConformanceRequest) GetPayload() isConformanceRequest_Payload {
  211. if m != nil {
  212. return m.Payload
  213. }
  214. return nil
  215. }
  216. func (x *ConformanceRequest) GetProtobufPayload() []byte {
  217. if x, ok := x.GetPayload().(*ConformanceRequest_ProtobufPayload); ok {
  218. return x.ProtobufPayload
  219. }
  220. return nil
  221. }
  222. func (x *ConformanceRequest) GetJsonPayload() string {
  223. if x, ok := x.GetPayload().(*ConformanceRequest_JsonPayload); ok {
  224. return x.JsonPayload
  225. }
  226. return ""
  227. }
  228. func (x *ConformanceRequest) GetJspbPayload() string {
  229. if x, ok := x.GetPayload().(*ConformanceRequest_JspbPayload); ok {
  230. return x.JspbPayload
  231. }
  232. return ""
  233. }
  234. func (x *ConformanceRequest) GetTextPayload() string {
  235. if x, ok := x.GetPayload().(*ConformanceRequest_TextPayload); ok {
  236. return x.TextPayload
  237. }
  238. return ""
  239. }
  240. func (x *ConformanceRequest) GetRequestedOutputFormat() WireFormat {
  241. if x != nil {
  242. return x.RequestedOutputFormat
  243. }
  244. return WireFormat_UNSPECIFIED
  245. }
  246. func (x *ConformanceRequest) GetMessageType() string {
  247. if x != nil {
  248. return x.MessageType
  249. }
  250. return ""
  251. }
  252. func (x *ConformanceRequest) GetTestCategory() TestCategory {
  253. if x != nil {
  254. return x.TestCategory
  255. }
  256. return TestCategory_UNSPECIFIED_TEST
  257. }
  258. func (x *ConformanceRequest) GetJspbEncodingOptions() *JspbEncodingConfig {
  259. if x != nil {
  260. return x.JspbEncodingOptions
  261. }
  262. return nil
  263. }
  264. type isConformanceRequest_Payload interface {
  265. isConformanceRequest_Payload()
  266. }
  267. type ConformanceRequest_ProtobufPayload struct {
  268. ProtobufPayload []byte `protobuf:"bytes,1,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
  269. }
  270. type ConformanceRequest_JsonPayload struct {
  271. JsonPayload string `protobuf:"bytes,2,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
  272. }
  273. type ConformanceRequest_JspbPayload struct {
  274. JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"`
  275. }
  276. type ConformanceRequest_TextPayload struct {
  277. TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"`
  278. }
  279. func (*ConformanceRequest_ProtobufPayload) isConformanceRequest_Payload() {}
  280. func (*ConformanceRequest_JsonPayload) isConformanceRequest_Payload() {}
  281. func (*ConformanceRequest_JspbPayload) isConformanceRequest_Payload() {}
  282. func (*ConformanceRequest_TextPayload) isConformanceRequest_Payload() {}
  283. // Represents a single test case's output.
  284. type ConformanceResponse struct {
  285. state protoimpl.MessageState
  286. // Types that are valid to be assigned to Result:
  287. // This string should be set to indicate parsing failed. The string can
  288. // provide more information about the parse error if it is available.
  289. //
  290. // Setting this string does not necessarily mean the testee failed the
  291. // test. Some of the test cases are intentionally invalid input.
  292. // *ConformanceResponse_ParseError
  293. // If the input was successfully parsed but errors occurred when
  294. // serializing it to the requested output format, set the error message in
  295. // this field.
  296. // *ConformanceResponse_SerializeError
  297. // This should be set if some other error occurred. This will always
  298. // indicate that the test failed. The string can provide more information
  299. // about the failure.
  300. // *ConformanceResponse_RuntimeError
  301. // If the input was successfully parsed and the requested output was
  302. // protobuf, serialize it to protobuf and set it in this field.
  303. // *ConformanceResponse_ProtobufPayload
  304. // If the input was successfully parsed and the requested output was JSON,
  305. // serialize to JSON and set it in this field.
  306. // *ConformanceResponse_JsonPayload
  307. // For when the testee skipped the test, likely because a certain feature
  308. // wasn't supported, like JSON input/output.
  309. // *ConformanceResponse_Skipped
  310. // If the input was successfully parsed and the requested output was JSPB,
  311. // serialize to JSPB and set it in this field. JSPB is google internal only
  312. // format. Opensource testees can just skip it.
  313. // *ConformanceResponse_JspbPayload
  314. // If the input was successfully parsed and the requested output was
  315. // TEXT_FORMAT, serialize to TEXT_FORMAT and set it in this field.
  316. // *ConformanceResponse_TextPayload
  317. Result isConformanceResponse_Result `protobuf_oneof:"result"`
  318. sizeCache protoimpl.SizeCache
  319. unknownFields protoimpl.UnknownFields
  320. }
  321. func (x *ConformanceResponse) Reset() {
  322. *x = ConformanceResponse{}
  323. }
  324. func (x *ConformanceResponse) String() string {
  325. return protoimpl.X.MessageStringOf(x)
  326. }
  327. func (*ConformanceResponse) ProtoMessage() {}
  328. func (x *ConformanceResponse) ProtoReflect() protoreflect.Message {
  329. mi := &file_conformance_conformance_proto_msgTypes[2]
  330. if protoimpl.UnsafeEnabled && x != nil {
  331. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  332. if ms.LoadMessageInfo() == nil {
  333. ms.StoreMessageInfo(mi)
  334. }
  335. return ms
  336. }
  337. return mi.MessageOf(x)
  338. }
  339. func (x *ConformanceResponse) XXX_Methods() *protoiface.Methods {
  340. return file_conformance_conformance_proto_msgTypes[2].Methods()
  341. }
  342. // Deprecated: Use ConformanceResponse.ProtoReflect.Type instead.
  343. func (*ConformanceResponse) Descriptor() ([]byte, []int) {
  344. return file_conformance_conformance_proto_rawDescGZIP(), []int{2}
  345. }
  346. func (m *ConformanceResponse) GetResult() isConformanceResponse_Result {
  347. if m != nil {
  348. return m.Result
  349. }
  350. return nil
  351. }
  352. func (x *ConformanceResponse) GetParseError() string {
  353. if x, ok := x.GetResult().(*ConformanceResponse_ParseError); ok {
  354. return x.ParseError
  355. }
  356. return ""
  357. }
  358. func (x *ConformanceResponse) GetSerializeError() string {
  359. if x, ok := x.GetResult().(*ConformanceResponse_SerializeError); ok {
  360. return x.SerializeError
  361. }
  362. return ""
  363. }
  364. func (x *ConformanceResponse) GetRuntimeError() string {
  365. if x, ok := x.GetResult().(*ConformanceResponse_RuntimeError); ok {
  366. return x.RuntimeError
  367. }
  368. return ""
  369. }
  370. func (x *ConformanceResponse) GetProtobufPayload() []byte {
  371. if x, ok := x.GetResult().(*ConformanceResponse_ProtobufPayload); ok {
  372. return x.ProtobufPayload
  373. }
  374. return nil
  375. }
  376. func (x *ConformanceResponse) GetJsonPayload() string {
  377. if x, ok := x.GetResult().(*ConformanceResponse_JsonPayload); ok {
  378. return x.JsonPayload
  379. }
  380. return ""
  381. }
  382. func (x *ConformanceResponse) GetSkipped() string {
  383. if x, ok := x.GetResult().(*ConformanceResponse_Skipped); ok {
  384. return x.Skipped
  385. }
  386. return ""
  387. }
  388. func (x *ConformanceResponse) GetJspbPayload() string {
  389. if x, ok := x.GetResult().(*ConformanceResponse_JspbPayload); ok {
  390. return x.JspbPayload
  391. }
  392. return ""
  393. }
  394. func (x *ConformanceResponse) GetTextPayload() string {
  395. if x, ok := x.GetResult().(*ConformanceResponse_TextPayload); ok {
  396. return x.TextPayload
  397. }
  398. return ""
  399. }
  400. type isConformanceResponse_Result interface {
  401. isConformanceResponse_Result()
  402. }
  403. type ConformanceResponse_ParseError struct {
  404. ParseError string `protobuf:"bytes,1,opt,name=parse_error,json=parseError,proto3,oneof"`
  405. }
  406. type ConformanceResponse_SerializeError struct {
  407. SerializeError string `protobuf:"bytes,6,opt,name=serialize_error,json=serializeError,proto3,oneof"`
  408. }
  409. type ConformanceResponse_RuntimeError struct {
  410. RuntimeError string `protobuf:"bytes,2,opt,name=runtime_error,json=runtimeError,proto3,oneof"`
  411. }
  412. type ConformanceResponse_ProtobufPayload struct {
  413. ProtobufPayload []byte `protobuf:"bytes,3,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
  414. }
  415. type ConformanceResponse_JsonPayload struct {
  416. JsonPayload string `protobuf:"bytes,4,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
  417. }
  418. type ConformanceResponse_Skipped struct {
  419. Skipped string `protobuf:"bytes,5,opt,name=skipped,proto3,oneof"`
  420. }
  421. type ConformanceResponse_JspbPayload struct {
  422. JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"`
  423. }
  424. type ConformanceResponse_TextPayload struct {
  425. TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"`
  426. }
  427. func (*ConformanceResponse_ParseError) isConformanceResponse_Result() {}
  428. func (*ConformanceResponse_SerializeError) isConformanceResponse_Result() {}
  429. func (*ConformanceResponse_RuntimeError) isConformanceResponse_Result() {}
  430. func (*ConformanceResponse_ProtobufPayload) isConformanceResponse_Result() {}
  431. func (*ConformanceResponse_JsonPayload) isConformanceResponse_Result() {}
  432. func (*ConformanceResponse_Skipped) isConformanceResponse_Result() {}
  433. func (*ConformanceResponse_JspbPayload) isConformanceResponse_Result() {}
  434. func (*ConformanceResponse_TextPayload) isConformanceResponse_Result() {}
  435. // Encoding options for jspb format.
  436. type JspbEncodingConfig struct {
  437. state protoimpl.MessageState
  438. // Encode the value field of Any as jspb array if ture, otherwise binary.
  439. UseJspbArrayAnyFormat bool `protobuf:"varint,1,opt,name=use_jspb_array_any_format,json=useJspbArrayAnyFormat,proto3" json:"use_jspb_array_any_format,omitempty"`
  440. sizeCache protoimpl.SizeCache
  441. unknownFields protoimpl.UnknownFields
  442. }
  443. func (x *JspbEncodingConfig) Reset() {
  444. *x = JspbEncodingConfig{}
  445. }
  446. func (x *JspbEncodingConfig) String() string {
  447. return protoimpl.X.MessageStringOf(x)
  448. }
  449. func (*JspbEncodingConfig) ProtoMessage() {}
  450. func (x *JspbEncodingConfig) ProtoReflect() protoreflect.Message {
  451. mi := &file_conformance_conformance_proto_msgTypes[3]
  452. if protoimpl.UnsafeEnabled && x != nil {
  453. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  454. if ms.LoadMessageInfo() == nil {
  455. ms.StoreMessageInfo(mi)
  456. }
  457. return ms
  458. }
  459. return mi.MessageOf(x)
  460. }
  461. func (x *JspbEncodingConfig) XXX_Methods() *protoiface.Methods {
  462. return file_conformance_conformance_proto_msgTypes[3].Methods()
  463. }
  464. // Deprecated: Use JspbEncodingConfig.ProtoReflect.Type instead.
  465. func (*JspbEncodingConfig) Descriptor() ([]byte, []int) {
  466. return file_conformance_conformance_proto_rawDescGZIP(), []int{3}
  467. }
  468. func (x *JspbEncodingConfig) GetUseJspbArrayAnyFormat() bool {
  469. if x != nil {
  470. return x.UseJspbArrayAnyFormat
  471. }
  472. return false
  473. }
  474. var File_conformance_conformance_proto protoreflect.FileDescriptor
  475. var file_conformance_conformance_proto_rawDesc = []byte{
  476. 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x63, 0x6f,
  477. 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  478. 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x26, 0x0a, 0x0a,
  479. 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61,
  480. 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x69,
  481. 0x6c, 0x75, 0x72, 0x65, 0x22, 0xc4, 0x03, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d,
  482. 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x10, 0x70,
  483. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
  484. 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  485. 0x66, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e,
  486. 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
  487. 0x52, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a,
  488. 0x0c, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20,
  489. 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 0x6c, 0x6f,
  490. 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f,
  491. 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74,
  492. 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4f, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65,
  493. 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d,
  494. 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f,
  495. 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61,
  496. 0x74, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70,
  497. 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  498. 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  499. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x74,
  500. 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01,
  501. 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65,
  502. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x74,
  503. 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x53, 0x0a, 0x15, 0x6a,
  504. 0x73, 0x70, 0x62, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x70, 0x74,
  505. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e,
  506. 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4a, 0x73, 0x70, 0x62, 0x45, 0x6e, 0x63,
  507. 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x6a, 0x73, 0x70,
  508. 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  509. 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xcc, 0x02, 0x0a, 0x13,
  510. 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
  511. 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x65, 0x72, 0x72,
  512. 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x73,
  513. 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
  514. 0x69, 0x7a, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48,
  515. 0x00, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x45, 0x72, 0x72, 0x6f,
  516. 0x72, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x65, 0x72, 0x72,
  517. 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x75, 0x6e, 0x74,
  518. 0x69, 0x6d, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74,
  519. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01,
  520. 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x50, 0x61,
  521. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x70, 0x61,
  522. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a,
  523. 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1a, 0x0a, 0x07, 0x73, 0x6b,
  524. 0x69, 0x70, 0x70, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x73,
  525. 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x70,
  526. 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
  527. 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74,
  528. 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
  529. 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
  530. 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x4e, 0x0a, 0x12, 0x4a, 0x73,
  531. 0x70, 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  532. 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x5f, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x61, 0x72, 0x72,
  533. 0x61, 0x79, 0x5f, 0x61, 0x6e, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20,
  534. 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x4a, 0x73, 0x70, 0x62, 0x41, 0x72, 0x72, 0x61,
  535. 0x79, 0x41, 0x6e, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2a, 0x50, 0x0a, 0x0a, 0x57, 0x69,
  536. 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50,
  537. 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x4f,
  538. 0x54, 0x4f, 0x42, 0x55, 0x46, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10,
  539. 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x50, 0x42, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x54,
  540. 0x45, 0x58, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x10, 0x04, 0x2a, 0x8f, 0x01, 0x0a,
  541. 0x0c, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a,
  542. 0x10, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x54, 0x45, 0x53,
  543. 0x54, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x5f, 0x54, 0x45,
  544. 0x53, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x54, 0x45, 0x53,
  545. 0x54, 0x10, 0x02, 0x12, 0x24, 0x0a, 0x20, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x47, 0x4e, 0x4f,
  546. 0x52, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50, 0x41, 0x52, 0x53, 0x49,
  547. 0x4e, 0x47, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x50,
  548. 0x42, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x45, 0x58, 0x54,
  549. 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x05, 0x42, 0x5d,
  550. 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  551. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63,
  552. 0x65, 0x5a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
  553. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e,
  554. 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  555. 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70,
  556. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  557. }
  558. var (
  559. file_conformance_conformance_proto_rawDescOnce sync.Once
  560. file_conformance_conformance_proto_rawDescData = file_conformance_conformance_proto_rawDesc
  561. )
  562. func file_conformance_conformance_proto_rawDescGZIP() []byte {
  563. file_conformance_conformance_proto_rawDescOnce.Do(func() {
  564. file_conformance_conformance_proto_rawDescData = protoimpl.X.CompressGZIP(file_conformance_conformance_proto_rawDescData)
  565. })
  566. return file_conformance_conformance_proto_rawDescData
  567. }
  568. var file_conformance_conformance_proto_enumTypes = make([]prototype.Enum, 2)
  569. var file_conformance_conformance_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  570. var file_conformance_conformance_proto_goTypes = []interface{}{
  571. (WireFormat)(0), // 0: conformance.WireFormat
  572. (TestCategory)(0), // 1: conformance.TestCategory
  573. (*FailureSet)(nil), // 2: conformance.FailureSet
  574. (*ConformanceRequest)(nil), // 3: conformance.ConformanceRequest
  575. (*ConformanceResponse)(nil), // 4: conformance.ConformanceResponse
  576. (*JspbEncodingConfig)(nil), // 5: conformance.JspbEncodingConfig
  577. }
  578. var file_conformance_conformance_proto_depIdxs = []int32{
  579. 0, // conformance.ConformanceRequest.requested_output_format:type_name -> conformance.WireFormat
  580. 1, // conformance.ConformanceRequest.test_category:type_name -> conformance.TestCategory
  581. 5, // conformance.ConformanceRequest.jspb_encoding_options:type_name -> conformance.JspbEncodingConfig
  582. 3, // starting offset of method output_type sub-list
  583. 3, // starting offset of method input_type sub-list
  584. 3, // starting offset of extension type_name sub-list
  585. 3, // starting offset of extension extendee sub-list
  586. 0, // starting offset of field type_name sub-list
  587. }
  588. func init() { file_conformance_conformance_proto_init() }
  589. func file_conformance_conformance_proto_init() {
  590. if File_conformance_conformance_proto != nil {
  591. return
  592. }
  593. if !protoimpl.UnsafeEnabled {
  594. file_conformance_conformance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  595. switch v := v.(*FailureSet); i {
  596. case 0:
  597. return &v.state
  598. case 2:
  599. return &v.sizeCache
  600. case 3:
  601. return &v.unknownFields
  602. default:
  603. return nil
  604. }
  605. }
  606. file_conformance_conformance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  607. switch v := v.(*ConformanceRequest); i {
  608. case 0:
  609. return &v.state
  610. case 6:
  611. return &v.sizeCache
  612. case 7:
  613. return &v.unknownFields
  614. default:
  615. return nil
  616. }
  617. }
  618. file_conformance_conformance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  619. switch v := v.(*ConformanceResponse); i {
  620. case 0:
  621. return &v.state
  622. case 2:
  623. return &v.sizeCache
  624. case 3:
  625. return &v.unknownFields
  626. default:
  627. return nil
  628. }
  629. }
  630. file_conformance_conformance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  631. switch v := v.(*JspbEncodingConfig); i {
  632. case 0:
  633. return &v.state
  634. case 2:
  635. return &v.sizeCache
  636. case 3:
  637. return &v.unknownFields
  638. default:
  639. return nil
  640. }
  641. }
  642. }
  643. file_conformance_conformance_proto_msgTypes[1].OneofWrappers = []interface{}{
  644. (*ConformanceRequest_ProtobufPayload)(nil),
  645. (*ConformanceRequest_JsonPayload)(nil),
  646. (*ConformanceRequest_JspbPayload)(nil),
  647. (*ConformanceRequest_TextPayload)(nil),
  648. }
  649. file_conformance_conformance_proto_msgTypes[2].OneofWrappers = []interface{}{
  650. (*ConformanceResponse_ParseError)(nil),
  651. (*ConformanceResponse_SerializeError)(nil),
  652. (*ConformanceResponse_RuntimeError)(nil),
  653. (*ConformanceResponse_ProtobufPayload)(nil),
  654. (*ConformanceResponse_JsonPayload)(nil),
  655. (*ConformanceResponse_Skipped)(nil),
  656. (*ConformanceResponse_JspbPayload)(nil),
  657. (*ConformanceResponse_TextPayload)(nil),
  658. }
  659. out := protoimpl.TypeBuilder{
  660. File: protoimpl.DescBuilder{
  661. RawDescriptor: file_conformance_conformance_proto_rawDesc,
  662. NumEnums: 2,
  663. NumMessages: 4,
  664. NumExtensions: 0,
  665. NumServices: 0,
  666. },
  667. GoTypes: file_conformance_conformance_proto_goTypes,
  668. DependencyIndexes: file_conformance_conformance_proto_depIdxs,
  669. MessageInfos: file_conformance_conformance_proto_msgTypes,
  670. }.Build()
  671. File_conformance_conformance_proto = out.File
  672. file_conformance_conformance_proto_enumTypes = out.Enums
  673. file_conformance_conformance_proto_rawDesc = nil
  674. file_conformance_conformance_proto_goTypes = nil
  675. file_conformance_conformance_proto_depIdxs = nil
  676. }