conformance.pb.go 28 KB

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