conformance.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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. Failure []string `protobuf:"bytes,1,rep,name=failure,proto3" json:"failure,omitempty"`
  113. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  114. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  115. XXX_sizecache protoimpl.SizeCache `json:"-"`
  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. return file_conformance_conformance_proto_msgTypes[0].MessageOf(x)
  126. }
  127. func (m *FailureSet) XXX_Methods() *protoiface.Methods {
  128. return file_conformance_conformance_proto_msgTypes[0].Methods()
  129. }
  130. // Deprecated: Use FailureSet.ProtoReflect.Type instead.
  131. func (*FailureSet) Descriptor() ([]byte, []int) {
  132. return file_conformance_conformance_proto_rawDescGZIP(), []int{0}
  133. }
  134. func (x *FailureSet) GetFailure() []string {
  135. if x != nil {
  136. return x.Failure
  137. }
  138. return nil
  139. }
  140. // Represents a single test case's input. The testee should:
  141. //
  142. // 1. parse this proto (which should always succeed)
  143. // 2. parse the protobuf or JSON payload in "payload" (which may fail)
  144. // 3. if the parse succeeded, serialize the message in the requested format.
  145. type ConformanceRequest struct {
  146. // The payload (whether protobuf of JSON) is always for a
  147. // protobuf_test_messages.proto3.TestAllTypes proto (as defined in
  148. // src/google/protobuf/proto3_test_messages.proto).
  149. //
  150. // TODO(haberman): if/when we expand the conformance tests to support proto2,
  151. // we will want to include a field that lets the payload/response be a
  152. // protobuf_test_messages.proto2.TestAllTypes message instead.
  153. //
  154. // Types that are valid to be assigned to Payload:
  155. // *ConformanceRequest_ProtobufPayload
  156. // *ConformanceRequest_JsonPayload
  157. // Google internal only. Opensource testees just skip it.
  158. // *ConformanceRequest_JspbPayload
  159. // *ConformanceRequest_TextPayload
  160. Payload isConformanceRequest_Payload `protobuf_oneof:"payload"`
  161. // Which format should the testee serialize its message to?
  162. RequestedOutputFormat WireFormat `protobuf:"varint,3,opt,name=requested_output_format,json=requestedOutputFormat,proto3,enum=conformance.WireFormat" json:"requested_output_format,omitempty"`
  163. // The full name for the test message to use; for the moment, either:
  164. // protobuf_test_messages.proto3.TestAllTypesProto3 or
  165. // protobuf_test_messages.proto2.TestAllTypesProto2.
  166. MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
  167. // Each test is given a specific test category. Some category may need
  168. // spedific support in testee programs. Refer to the defintion of TestCategory
  169. // for more information.
  170. TestCategory TestCategory `protobuf:"varint,5,opt,name=test_category,json=testCategory,proto3,enum=conformance.TestCategory" json:"test_category,omitempty"`
  171. // Specify details for how to encode jspb.
  172. JspbEncodingOptions *JspbEncodingConfig `protobuf:"bytes,6,opt,name=jspb_encoding_options,json=jspbEncodingOptions,proto3" json:"jspb_encoding_options,omitempty"`
  173. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  174. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  175. XXX_sizecache protoimpl.SizeCache `json:"-"`
  176. }
  177. func (x *ConformanceRequest) Reset() {
  178. *x = ConformanceRequest{}
  179. }
  180. func (x *ConformanceRequest) String() string {
  181. return protoimpl.X.MessageStringOf(x)
  182. }
  183. func (*ConformanceRequest) ProtoMessage() {}
  184. func (x *ConformanceRequest) ProtoReflect() protoreflect.Message {
  185. return file_conformance_conformance_proto_msgTypes[1].MessageOf(x)
  186. }
  187. func (m *ConformanceRequest) XXX_Methods() *protoiface.Methods {
  188. return file_conformance_conformance_proto_msgTypes[1].Methods()
  189. }
  190. // Deprecated: Use ConformanceRequest.ProtoReflect.Type instead.
  191. func (*ConformanceRequest) Descriptor() ([]byte, []int) {
  192. return file_conformance_conformance_proto_rawDescGZIP(), []int{1}
  193. }
  194. func (m *ConformanceRequest) GetPayload() isConformanceRequest_Payload {
  195. if m != nil {
  196. return m.Payload
  197. }
  198. return nil
  199. }
  200. func (x *ConformanceRequest) GetProtobufPayload() []byte {
  201. if x, ok := x.GetPayload().(*ConformanceRequest_ProtobufPayload); ok {
  202. return x.ProtobufPayload
  203. }
  204. return nil
  205. }
  206. func (x *ConformanceRequest) GetJsonPayload() string {
  207. if x, ok := x.GetPayload().(*ConformanceRequest_JsonPayload); ok {
  208. return x.JsonPayload
  209. }
  210. return ""
  211. }
  212. func (x *ConformanceRequest) GetJspbPayload() string {
  213. if x, ok := x.GetPayload().(*ConformanceRequest_JspbPayload); ok {
  214. return x.JspbPayload
  215. }
  216. return ""
  217. }
  218. func (x *ConformanceRequest) GetTextPayload() string {
  219. if x, ok := x.GetPayload().(*ConformanceRequest_TextPayload); ok {
  220. return x.TextPayload
  221. }
  222. return ""
  223. }
  224. func (x *ConformanceRequest) GetRequestedOutputFormat() WireFormat {
  225. if x != nil {
  226. return x.RequestedOutputFormat
  227. }
  228. return WireFormat_UNSPECIFIED
  229. }
  230. func (x *ConformanceRequest) GetMessageType() string {
  231. if x != nil {
  232. return x.MessageType
  233. }
  234. return ""
  235. }
  236. func (x *ConformanceRequest) GetTestCategory() TestCategory {
  237. if x != nil {
  238. return x.TestCategory
  239. }
  240. return TestCategory_UNSPECIFIED_TEST
  241. }
  242. func (x *ConformanceRequest) GetJspbEncodingOptions() *JspbEncodingConfig {
  243. if x != nil {
  244. return x.JspbEncodingOptions
  245. }
  246. return nil
  247. }
  248. // XXX_OneofWrappers is for the internal use of the proto package.
  249. func (*ConformanceRequest) XXX_OneofWrappers() []interface{} {
  250. return []interface{}{
  251. (*ConformanceRequest_ProtobufPayload)(nil),
  252. (*ConformanceRequest_JsonPayload)(nil),
  253. (*ConformanceRequest_JspbPayload)(nil),
  254. (*ConformanceRequest_TextPayload)(nil),
  255. }
  256. }
  257. type isConformanceRequest_Payload interface {
  258. isConformanceRequest_Payload()
  259. }
  260. type ConformanceRequest_ProtobufPayload struct {
  261. ProtobufPayload []byte `protobuf:"bytes,1,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
  262. }
  263. type ConformanceRequest_JsonPayload struct {
  264. JsonPayload string `protobuf:"bytes,2,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
  265. }
  266. type ConformanceRequest_JspbPayload struct {
  267. JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"`
  268. }
  269. type ConformanceRequest_TextPayload struct {
  270. TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"`
  271. }
  272. func (*ConformanceRequest_ProtobufPayload) isConformanceRequest_Payload() {}
  273. func (*ConformanceRequest_JsonPayload) isConformanceRequest_Payload() {}
  274. func (*ConformanceRequest_JspbPayload) isConformanceRequest_Payload() {}
  275. func (*ConformanceRequest_TextPayload) isConformanceRequest_Payload() {}
  276. // Represents a single test case's output.
  277. type ConformanceResponse struct {
  278. // Types that are valid to be assigned to Result:
  279. // This string should be set to indicate parsing failed. The string can
  280. // provide more information about the parse error if it is available.
  281. //
  282. // Setting this string does not necessarily mean the testee failed the
  283. // test. Some of the test cases are intentionally invalid input.
  284. // *ConformanceResponse_ParseError
  285. // If the input was successfully parsed but errors occurred when
  286. // serializing it to the requested output format, set the error message in
  287. // this field.
  288. // *ConformanceResponse_SerializeError
  289. // This should be set if some other error occurred. This will always
  290. // indicate that the test failed. The string can provide more information
  291. // about the failure.
  292. // *ConformanceResponse_RuntimeError
  293. // If the input was successfully parsed and the requested output was
  294. // protobuf, serialize it to protobuf and set it in this field.
  295. // *ConformanceResponse_ProtobufPayload
  296. // If the input was successfully parsed and the requested output was JSON,
  297. // serialize to JSON and set it in this field.
  298. // *ConformanceResponse_JsonPayload
  299. // For when the testee skipped the test, likely because a certain feature
  300. // wasn't supported, like JSON input/output.
  301. // *ConformanceResponse_Skipped
  302. // If the input was successfully parsed and the requested output was JSPB,
  303. // serialize to JSPB and set it in this field. JSPB is google internal only
  304. // format. Opensource testees can just skip it.
  305. // *ConformanceResponse_JspbPayload
  306. // If the input was successfully parsed and the requested output was
  307. // TEXT_FORMAT, serialize to TEXT_FORMAT and set it in this field.
  308. // *ConformanceResponse_TextPayload
  309. Result isConformanceResponse_Result `protobuf_oneof:"result"`
  310. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  311. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  312. XXX_sizecache protoimpl.SizeCache `json:"-"`
  313. }
  314. func (x *ConformanceResponse) Reset() {
  315. *x = ConformanceResponse{}
  316. }
  317. func (x *ConformanceResponse) String() string {
  318. return protoimpl.X.MessageStringOf(x)
  319. }
  320. func (*ConformanceResponse) ProtoMessage() {}
  321. func (x *ConformanceResponse) ProtoReflect() protoreflect.Message {
  322. return file_conformance_conformance_proto_msgTypes[2].MessageOf(x)
  323. }
  324. func (m *ConformanceResponse) XXX_Methods() *protoiface.Methods {
  325. return file_conformance_conformance_proto_msgTypes[2].Methods()
  326. }
  327. // Deprecated: Use ConformanceResponse.ProtoReflect.Type instead.
  328. func (*ConformanceResponse) Descriptor() ([]byte, []int) {
  329. return file_conformance_conformance_proto_rawDescGZIP(), []int{2}
  330. }
  331. func (m *ConformanceResponse) GetResult() isConformanceResponse_Result {
  332. if m != nil {
  333. return m.Result
  334. }
  335. return nil
  336. }
  337. func (x *ConformanceResponse) GetParseError() string {
  338. if x, ok := x.GetResult().(*ConformanceResponse_ParseError); ok {
  339. return x.ParseError
  340. }
  341. return ""
  342. }
  343. func (x *ConformanceResponse) GetSerializeError() string {
  344. if x, ok := x.GetResult().(*ConformanceResponse_SerializeError); ok {
  345. return x.SerializeError
  346. }
  347. return ""
  348. }
  349. func (x *ConformanceResponse) GetRuntimeError() string {
  350. if x, ok := x.GetResult().(*ConformanceResponse_RuntimeError); ok {
  351. return x.RuntimeError
  352. }
  353. return ""
  354. }
  355. func (x *ConformanceResponse) GetProtobufPayload() []byte {
  356. if x, ok := x.GetResult().(*ConformanceResponse_ProtobufPayload); ok {
  357. return x.ProtobufPayload
  358. }
  359. return nil
  360. }
  361. func (x *ConformanceResponse) GetJsonPayload() string {
  362. if x, ok := x.GetResult().(*ConformanceResponse_JsonPayload); ok {
  363. return x.JsonPayload
  364. }
  365. return ""
  366. }
  367. func (x *ConformanceResponse) GetSkipped() string {
  368. if x, ok := x.GetResult().(*ConformanceResponse_Skipped); ok {
  369. return x.Skipped
  370. }
  371. return ""
  372. }
  373. func (x *ConformanceResponse) GetJspbPayload() string {
  374. if x, ok := x.GetResult().(*ConformanceResponse_JspbPayload); ok {
  375. return x.JspbPayload
  376. }
  377. return ""
  378. }
  379. func (x *ConformanceResponse) GetTextPayload() string {
  380. if x, ok := x.GetResult().(*ConformanceResponse_TextPayload); ok {
  381. return x.TextPayload
  382. }
  383. return ""
  384. }
  385. // XXX_OneofWrappers is for the internal use of the proto package.
  386. func (*ConformanceResponse) XXX_OneofWrappers() []interface{} {
  387. return []interface{}{
  388. (*ConformanceResponse_ParseError)(nil),
  389. (*ConformanceResponse_SerializeError)(nil),
  390. (*ConformanceResponse_RuntimeError)(nil),
  391. (*ConformanceResponse_ProtobufPayload)(nil),
  392. (*ConformanceResponse_JsonPayload)(nil),
  393. (*ConformanceResponse_Skipped)(nil),
  394. (*ConformanceResponse_JspbPayload)(nil),
  395. (*ConformanceResponse_TextPayload)(nil),
  396. }
  397. }
  398. type isConformanceResponse_Result interface {
  399. isConformanceResponse_Result()
  400. }
  401. type ConformanceResponse_ParseError struct {
  402. ParseError string `protobuf:"bytes,1,opt,name=parse_error,json=parseError,proto3,oneof"`
  403. }
  404. type ConformanceResponse_SerializeError struct {
  405. SerializeError string `protobuf:"bytes,6,opt,name=serialize_error,json=serializeError,proto3,oneof"`
  406. }
  407. type ConformanceResponse_RuntimeError struct {
  408. RuntimeError string `protobuf:"bytes,2,opt,name=runtime_error,json=runtimeError,proto3,oneof"`
  409. }
  410. type ConformanceResponse_ProtobufPayload struct {
  411. ProtobufPayload []byte `protobuf:"bytes,3,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
  412. }
  413. type ConformanceResponse_JsonPayload struct {
  414. JsonPayload string `protobuf:"bytes,4,opt,name=json_payload,json=jsonPayload,proto3,oneof"`
  415. }
  416. type ConformanceResponse_Skipped struct {
  417. Skipped string `protobuf:"bytes,5,opt,name=skipped,proto3,oneof"`
  418. }
  419. type ConformanceResponse_JspbPayload struct {
  420. JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"`
  421. }
  422. type ConformanceResponse_TextPayload struct {
  423. TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"`
  424. }
  425. func (*ConformanceResponse_ParseError) isConformanceResponse_Result() {}
  426. func (*ConformanceResponse_SerializeError) isConformanceResponse_Result() {}
  427. func (*ConformanceResponse_RuntimeError) isConformanceResponse_Result() {}
  428. func (*ConformanceResponse_ProtobufPayload) isConformanceResponse_Result() {}
  429. func (*ConformanceResponse_JsonPayload) isConformanceResponse_Result() {}
  430. func (*ConformanceResponse_Skipped) isConformanceResponse_Result() {}
  431. func (*ConformanceResponse_JspbPayload) isConformanceResponse_Result() {}
  432. func (*ConformanceResponse_TextPayload) isConformanceResponse_Result() {}
  433. // Encoding options for jspb format.
  434. type JspbEncodingConfig struct {
  435. // Encode the value field of Any as jspb array if ture, otherwise binary.
  436. UseJspbArrayAnyFormat bool `protobuf:"varint,1,opt,name=use_jspb_array_any_format,json=useJspbArrayAnyFormat,proto3" json:"use_jspb_array_any_format,omitempty"`
  437. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  438. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  439. XXX_sizecache protoimpl.SizeCache `json:"-"`
  440. }
  441. func (x *JspbEncodingConfig) Reset() {
  442. *x = JspbEncodingConfig{}
  443. }
  444. func (x *JspbEncodingConfig) String() string {
  445. return protoimpl.X.MessageStringOf(x)
  446. }
  447. func (*JspbEncodingConfig) ProtoMessage() {}
  448. func (x *JspbEncodingConfig) ProtoReflect() protoreflect.Message {
  449. return file_conformance_conformance_proto_msgTypes[3].MessageOf(x)
  450. }
  451. func (m *JspbEncodingConfig) XXX_Methods() *protoiface.Methods {
  452. return file_conformance_conformance_proto_msgTypes[3].Methods()
  453. }
  454. // Deprecated: Use JspbEncodingConfig.ProtoReflect.Type instead.
  455. func (*JspbEncodingConfig) Descriptor() ([]byte, []int) {
  456. return file_conformance_conformance_proto_rawDescGZIP(), []int{3}
  457. }
  458. func (x *JspbEncodingConfig) GetUseJspbArrayAnyFormat() bool {
  459. if x != nil {
  460. return x.UseJspbArrayAnyFormat
  461. }
  462. return false
  463. }
  464. var File_conformance_conformance_proto protoreflect.FileDescriptor
  465. var file_conformance_conformance_proto_rawDesc = []byte{
  466. 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x63, 0x6f,
  467. 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  468. 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x26, 0x0a, 0x0a,
  469. 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61,
  470. 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x69,
  471. 0x6c, 0x75, 0x72, 0x65, 0x22, 0xc4, 0x03, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d,
  472. 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x10, 0x70,
  473. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
  474. 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  475. 0x66, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e,
  476. 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
  477. 0x52, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a,
  478. 0x0c, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20,
  479. 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 0x6c, 0x6f,
  480. 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f,
  481. 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74,
  482. 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4f, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65,
  483. 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d,
  484. 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f,
  485. 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61,
  486. 0x74, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70,
  487. 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  488. 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  489. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x74,
  490. 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01,
  491. 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65,
  492. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x74,
  493. 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x53, 0x0a, 0x15, 0x6a,
  494. 0x73, 0x70, 0x62, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x70, 0x74,
  495. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e,
  496. 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4a, 0x73, 0x70, 0x62, 0x45, 0x6e, 0x63,
  497. 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x6a, 0x73, 0x70,
  498. 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  499. 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xcc, 0x02, 0x0a, 0x13,
  500. 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
  501. 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x65, 0x72, 0x72,
  502. 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x73,
  503. 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
  504. 0x69, 0x7a, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48,
  505. 0x00, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x45, 0x72, 0x72, 0x6f,
  506. 0x72, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x65, 0x72, 0x72,
  507. 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x75, 0x6e, 0x74,
  508. 0x69, 0x6d, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74,
  509. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01,
  510. 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x50, 0x61,
  511. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x70, 0x61,
  512. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a,
  513. 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1a, 0x0a, 0x07, 0x73, 0x6b,
  514. 0x69, 0x70, 0x70, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x73,
  515. 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x70,
  516. 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
  517. 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74,
  518. 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
  519. 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
  520. 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x4e, 0x0a, 0x12, 0x4a, 0x73,
  521. 0x70, 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  522. 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x5f, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x61, 0x72, 0x72,
  523. 0x61, 0x79, 0x5f, 0x61, 0x6e, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20,
  524. 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x4a, 0x73, 0x70, 0x62, 0x41, 0x72, 0x72, 0x61,
  525. 0x79, 0x41, 0x6e, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2a, 0x50, 0x0a, 0x0a, 0x57, 0x69,
  526. 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50,
  527. 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x4f,
  528. 0x54, 0x4f, 0x42, 0x55, 0x46, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10,
  529. 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x50, 0x42, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x54,
  530. 0x45, 0x58, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x10, 0x04, 0x2a, 0x8f, 0x01, 0x0a,
  531. 0x0c, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a,
  532. 0x10, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x54, 0x45, 0x53,
  533. 0x54, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x5f, 0x54, 0x45,
  534. 0x53, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x54, 0x45, 0x53,
  535. 0x54, 0x10, 0x02, 0x12, 0x24, 0x0a, 0x20, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x47, 0x4e, 0x4f,
  536. 0x52, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50, 0x41, 0x52, 0x53, 0x49,
  537. 0x4e, 0x47, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x50,
  538. 0x42, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x45, 0x58, 0x54,
  539. 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x05, 0x42, 0x5d,
  540. 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  541. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63,
  542. 0x65, 0x5a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
  543. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e,
  544. 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  545. 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70,
  546. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  547. }
  548. var (
  549. file_conformance_conformance_proto_rawDescOnce sync.Once
  550. file_conformance_conformance_proto_rawDescData = file_conformance_conformance_proto_rawDesc
  551. )
  552. func file_conformance_conformance_proto_rawDescGZIP() []byte {
  553. file_conformance_conformance_proto_rawDescOnce.Do(func() {
  554. file_conformance_conformance_proto_rawDescData = protoimpl.X.CompressGZIP(file_conformance_conformance_proto_rawDescData)
  555. })
  556. return file_conformance_conformance_proto_rawDescData
  557. }
  558. var file_conformance_conformance_proto_enumTypes = make([]prototype.Enum, 2)
  559. var file_conformance_conformance_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  560. var file_conformance_conformance_proto_goTypes = []interface{}{
  561. (WireFormat)(0), // 0: conformance.WireFormat
  562. (TestCategory)(0), // 1: conformance.TestCategory
  563. (*FailureSet)(nil), // 2: conformance.FailureSet
  564. (*ConformanceRequest)(nil), // 3: conformance.ConformanceRequest
  565. (*ConformanceResponse)(nil), // 4: conformance.ConformanceResponse
  566. (*JspbEncodingConfig)(nil), // 5: conformance.JspbEncodingConfig
  567. }
  568. var file_conformance_conformance_proto_depIdxs = []int32{
  569. 0, // conformance.ConformanceRequest.requested_output_format:type_name -> conformance.WireFormat
  570. 1, // conformance.ConformanceRequest.test_category:type_name -> conformance.TestCategory
  571. 5, // conformance.ConformanceRequest.jspb_encoding_options:type_name -> conformance.JspbEncodingConfig
  572. 3, // starting offset of method output_type sub-list
  573. 3, // starting offset of method input_type sub-list
  574. 3, // starting offset of extension type_name sub-list
  575. 3, // starting offset of extension extendee sub-list
  576. 0, // starting offset of field type_name sub-list
  577. }
  578. func init() { file_conformance_conformance_proto_init() }
  579. func file_conformance_conformance_proto_init() {
  580. if File_conformance_conformance_proto != nil {
  581. return
  582. }
  583. out := protoimpl.TypeBuilder{
  584. File: protoimpl.DescBuilder{
  585. RawDescriptor: file_conformance_conformance_proto_rawDesc,
  586. NumEnums: 2,
  587. NumMessages: 4,
  588. NumExtensions: 0,
  589. NumServices: 0,
  590. },
  591. GoTypes: file_conformance_conformance_proto_goTypes,
  592. DependencyIndexes: file_conformance_conformance_proto_depIdxs,
  593. MessageInfos: file_conformance_conformance_proto_msgTypes,
  594. }.Build()
  595. File_conformance_conformance_proto = out.File
  596. file_conformance_conformance_proto_enumTypes = out.Enums
  597. file_conformance_conformance_proto_rawDesc = nil
  598. file_conformance_conformance_proto_goTypes = nil
  599. file_conformance_conformance_proto_depIdxs = nil
  600. }