1// Protocol Buffers - Google's data interchange format 2// Copyright 2008 Google Inc. All rights reserved. 3// https://developers.google.com/protocol-buffers/ 4// 5// Redistribution and use in source and binary forms, with or without 6// modification, are permitted provided that the following conditions are 7// met: 8// 9// * Redistributions of source code must retain the above copyright 10// notice, this list of conditions and the following disclaimer. 11// * Redistributions in binary form must reproduce the above 12// copyright notice, this list of conditions and the following disclaimer 13// in the documentation and/or other materials provided with the 14// distribution. 15// * Neither the name of Google Inc. nor the names of its 16// contributors may be used to endorse or promote products derived from 17// this software without specific prior written permission. 18// 19// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 31// Code generated by protoc-gen-go. DO NOT EDIT. 32// source: conformance/conformance.proto 33 34package conformance 35 36import ( 37 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 38 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 39 reflect "reflect" 40 sync "sync" 41) 42 43type WireFormat int32 44 45const ( 46 WireFormat_UNSPECIFIED WireFormat = 0 47 WireFormat_PROTOBUF WireFormat = 1 48 WireFormat_JSON WireFormat = 2 49 WireFormat_JSPB WireFormat = 3 // Only used inside Google. Opensource testees just skip it. 50 WireFormat_TEXT_FORMAT WireFormat = 4 51) 52 53// Enum value maps for WireFormat. 54var ( 55 WireFormat_name = map[int32]string{ 56 0: "UNSPECIFIED", 57 1: "PROTOBUF", 58 2: "JSON", 59 3: "JSPB", 60 4: "TEXT_FORMAT", 61 } 62 WireFormat_value = map[string]int32{ 63 "UNSPECIFIED": 0, 64 "PROTOBUF": 1, 65 "JSON": 2, 66 "JSPB": 3, 67 "TEXT_FORMAT": 4, 68 } 69) 70 71func (x WireFormat) Enum() *WireFormat { 72 p := new(WireFormat) 73 *p = x 74 return p 75} 76 77func (x WireFormat) String() string { 78 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 79} 80 81func (WireFormat) Descriptor() protoreflect.EnumDescriptor { 82 return file_conformance_conformance_proto_enumTypes[0].Descriptor() 83} 84 85func (WireFormat) Type() protoreflect.EnumType { 86 return &file_conformance_conformance_proto_enumTypes[0] 87} 88 89func (x WireFormat) Number() protoreflect.EnumNumber { 90 return protoreflect.EnumNumber(x) 91} 92 93// Deprecated: Use WireFormat.Descriptor instead. 94func (WireFormat) EnumDescriptor() ([]byte, []int) { 95 return file_conformance_conformance_proto_rawDescGZIP(), []int{0} 96} 97 98type TestCategory int32 99 100const ( 101 TestCategory_UNSPECIFIED_TEST TestCategory = 0 102 TestCategory_BINARY_TEST TestCategory = 1 // Test binary wire format. 103 TestCategory_JSON_TEST TestCategory = 2 // Test json wire format. 104 // Similar to JSON_TEST. However, during parsing json, testee should ignore 105 // unknown fields. This feature is optional. Each implementation can decide 106 // whether to support it. See 107 // https://developers.google.com/protocol-buffers/docs/proto3#json_options 108 // for more detail. 109 TestCategory_JSON_IGNORE_UNKNOWN_PARSING_TEST TestCategory = 3 110 // Test jspb wire format. Only used inside Google. Opensource testees just 111 // skip it. 112 TestCategory_JSPB_TEST TestCategory = 4 113 // Test text format. For cpp, java and python, testees can already deal with 114 // this type. Testees of other languages can simply skip it. 115 TestCategory_TEXT_FORMAT_TEST TestCategory = 5 116) 117 118// Enum value maps for TestCategory. 119var ( 120 TestCategory_name = map[int32]string{ 121 0: "UNSPECIFIED_TEST", 122 1: "BINARY_TEST", 123 2: "JSON_TEST", 124 3: "JSON_IGNORE_UNKNOWN_PARSING_TEST", 125 4: "JSPB_TEST", 126 5: "TEXT_FORMAT_TEST", 127 } 128 TestCategory_value = map[string]int32{ 129 "UNSPECIFIED_TEST": 0, 130 "BINARY_TEST": 1, 131 "JSON_TEST": 2, 132 "JSON_IGNORE_UNKNOWN_PARSING_TEST": 3, 133 "JSPB_TEST": 4, 134 "TEXT_FORMAT_TEST": 5, 135 } 136) 137 138func (x TestCategory) Enum() *TestCategory { 139 p := new(TestCategory) 140 *p = x 141 return p 142} 143 144func (x TestCategory) String() string { 145 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 146} 147 148func (TestCategory) Descriptor() protoreflect.EnumDescriptor { 149 return file_conformance_conformance_proto_enumTypes[1].Descriptor() 150} 151 152func (TestCategory) Type() protoreflect.EnumType { 153 return &file_conformance_conformance_proto_enumTypes[1] 154} 155 156func (x TestCategory) Number() protoreflect.EnumNumber { 157 return protoreflect.EnumNumber(x) 158} 159 160// Deprecated: Use TestCategory.Descriptor instead. 161func (TestCategory) EnumDescriptor() ([]byte, []int) { 162 return file_conformance_conformance_proto_rawDescGZIP(), []int{1} 163} 164 165// The conformance runner will request a list of failures as the first request. 166// This will be known by message_type == "conformance.FailureSet", a conformance 167// test should return a serialized FailureSet in protobuf_payload. 168type FailureSet struct { 169 state protoimpl.MessageState 170 sizeCache protoimpl.SizeCache 171 unknownFields protoimpl.UnknownFields 172 173 Failure []string `protobuf:"bytes,1,rep,name=failure,proto3" json:"failure,omitempty"` 174} 175 176func (x *FailureSet) Reset() { 177 *x = FailureSet{} 178 if protoimpl.UnsafeEnabled { 179 mi := &file_conformance_conformance_proto_msgTypes[0] 180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 181 ms.StoreMessageInfo(mi) 182 } 183} 184 185func (x *FailureSet) String() string { 186 return protoimpl.X.MessageStringOf(x) 187} 188 189func (*FailureSet) ProtoMessage() {} 190 191func (x *FailureSet) ProtoReflect() protoreflect.Message { 192 mi := &file_conformance_conformance_proto_msgTypes[0] 193 if protoimpl.UnsafeEnabled && x != nil { 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 if ms.LoadMessageInfo() == nil { 196 ms.StoreMessageInfo(mi) 197 } 198 return ms 199 } 200 return mi.MessageOf(x) 201} 202 203// Deprecated: Use FailureSet.ProtoReflect.Descriptor instead. 204func (*FailureSet) Descriptor() ([]byte, []int) { 205 return file_conformance_conformance_proto_rawDescGZIP(), []int{0} 206} 207 208func (x *FailureSet) GetFailure() []string { 209 if x != nil { 210 return x.Failure 211 } 212 return nil 213} 214 215// Represents a single test case's input. The testee should: 216// 217// 1. parse this proto (which should always succeed) 218// 2. parse the protobuf or JSON payload in "payload" (which may fail) 219// 3. if the parse succeeded, serialize the message in the requested format. 220type ConformanceRequest struct { 221 state protoimpl.MessageState 222 sizeCache protoimpl.SizeCache 223 unknownFields protoimpl.UnknownFields 224 225 // The payload (whether protobuf of JSON) is always for a 226 // protobuf_test_messages.proto3.TestAllTypes proto (as defined in 227 // src/google/protobuf/proto3_test_messages.proto). 228 // 229 // Types that are assignable to Payload: 230 // 231 // *ConformanceRequest_ProtobufPayload 232 // *ConformanceRequest_JsonPayload 233 // *ConformanceRequest_JspbPayload 234 // *ConformanceRequest_TextPayload 235 Payload isConformanceRequest_Payload `protobuf_oneof:"payload"` 236 // Which format should the testee serialize its message to? 237 RequestedOutputFormat WireFormat `protobuf:"varint,3,opt,name=requested_output_format,json=requestedOutputFormat,proto3,enum=conformance.WireFormat" json:"requested_output_format,omitempty"` 238 // The full name for the test message to use; for the moment, either: 239 // protobuf_test_messages.proto3.TestAllTypesProto3 or 240 // protobuf_test_messages.google.protobuf.TestAllTypesProto2. 241 MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` 242 // Each test is given a specific test category. Some category may need 243 // specific support in testee programs. Refer to the definition of 244 // TestCategory for more information. 245 TestCategory TestCategory `protobuf:"varint,5,opt,name=test_category,json=testCategory,proto3,enum=conformance.TestCategory" json:"test_category,omitempty"` 246 // Specify details for how to encode jspb. 247 JspbEncodingOptions *JspbEncodingConfig `protobuf:"bytes,6,opt,name=jspb_encoding_options,json=jspbEncodingOptions,proto3" json:"jspb_encoding_options,omitempty"` 248 // This can be used in json and text format. If true, testee should print 249 // unknown fields instead of ignore. This feature is optional. 250 PrintUnknownFields bool `protobuf:"varint,9,opt,name=print_unknown_fields,json=printUnknownFields,proto3" json:"print_unknown_fields,omitempty"` 251} 252 253func (x *ConformanceRequest) Reset() { 254 *x = ConformanceRequest{} 255 if protoimpl.UnsafeEnabled { 256 mi := &file_conformance_conformance_proto_msgTypes[1] 257 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 258 ms.StoreMessageInfo(mi) 259 } 260} 261 262func (x *ConformanceRequest) String() string { 263 return protoimpl.X.MessageStringOf(x) 264} 265 266func (*ConformanceRequest) ProtoMessage() {} 267 268func (x *ConformanceRequest) ProtoReflect() protoreflect.Message { 269 mi := &file_conformance_conformance_proto_msgTypes[1] 270 if protoimpl.UnsafeEnabled && x != nil { 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 if ms.LoadMessageInfo() == nil { 273 ms.StoreMessageInfo(mi) 274 } 275 return ms 276 } 277 return mi.MessageOf(x) 278} 279 280// Deprecated: Use ConformanceRequest.ProtoReflect.Descriptor instead. 281func (*ConformanceRequest) Descriptor() ([]byte, []int) { 282 return file_conformance_conformance_proto_rawDescGZIP(), []int{1} 283} 284 285func (m *ConformanceRequest) GetPayload() isConformanceRequest_Payload { 286 if m != nil { 287 return m.Payload 288 } 289 return nil 290} 291 292func (x *ConformanceRequest) GetProtobufPayload() []byte { 293 if x, ok := x.GetPayload().(*ConformanceRequest_ProtobufPayload); ok { 294 return x.ProtobufPayload 295 } 296 return nil 297} 298 299func (x *ConformanceRequest) GetJsonPayload() string { 300 if x, ok := x.GetPayload().(*ConformanceRequest_JsonPayload); ok { 301 return x.JsonPayload 302 } 303 return "" 304} 305 306func (x *ConformanceRequest) GetJspbPayload() string { 307 if x, ok := x.GetPayload().(*ConformanceRequest_JspbPayload); ok { 308 return x.JspbPayload 309 } 310 return "" 311} 312 313func (x *ConformanceRequest) GetTextPayload() string { 314 if x, ok := x.GetPayload().(*ConformanceRequest_TextPayload); ok { 315 return x.TextPayload 316 } 317 return "" 318} 319 320func (x *ConformanceRequest) GetRequestedOutputFormat() WireFormat { 321 if x != nil { 322 return x.RequestedOutputFormat 323 } 324 return WireFormat_UNSPECIFIED 325} 326 327func (x *ConformanceRequest) GetMessageType() string { 328 if x != nil { 329 return x.MessageType 330 } 331 return "" 332} 333 334func (x *ConformanceRequest) GetTestCategory() TestCategory { 335 if x != nil { 336 return x.TestCategory 337 } 338 return TestCategory_UNSPECIFIED_TEST 339} 340 341func (x *ConformanceRequest) GetJspbEncodingOptions() *JspbEncodingConfig { 342 if x != nil { 343 return x.JspbEncodingOptions 344 } 345 return nil 346} 347 348func (x *ConformanceRequest) GetPrintUnknownFields() bool { 349 if x != nil { 350 return x.PrintUnknownFields 351 } 352 return false 353} 354 355type isConformanceRequest_Payload interface { 356 isConformanceRequest_Payload() 357} 358 359type ConformanceRequest_ProtobufPayload struct { 360 ProtobufPayload []byte `protobuf:"bytes,1,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"` 361} 362 363type ConformanceRequest_JsonPayload struct { 364 JsonPayload string `protobuf:"bytes,2,opt,name=json_payload,json=jsonPayload,proto3,oneof"` 365} 366 367type ConformanceRequest_JspbPayload struct { 368 // Only used inside Google. Opensource testees just skip it. 369 JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"` 370} 371 372type ConformanceRequest_TextPayload struct { 373 TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"` 374} 375 376func (*ConformanceRequest_ProtobufPayload) isConformanceRequest_Payload() {} 377 378func (*ConformanceRequest_JsonPayload) isConformanceRequest_Payload() {} 379 380func (*ConformanceRequest_JspbPayload) isConformanceRequest_Payload() {} 381 382func (*ConformanceRequest_TextPayload) isConformanceRequest_Payload() {} 383 384// Represents a single test case's output. 385type ConformanceResponse struct { 386 state protoimpl.MessageState 387 sizeCache protoimpl.SizeCache 388 unknownFields protoimpl.UnknownFields 389 390 // Types that are assignable to Result: 391 // 392 // *ConformanceResponse_ParseError 393 // *ConformanceResponse_SerializeError 394 // *ConformanceResponse_TimeoutError 395 // *ConformanceResponse_RuntimeError 396 // *ConformanceResponse_ProtobufPayload 397 // *ConformanceResponse_JsonPayload 398 // *ConformanceResponse_Skipped 399 // *ConformanceResponse_JspbPayload 400 // *ConformanceResponse_TextPayload 401 Result isConformanceResponse_Result `protobuf_oneof:"result"` 402} 403 404func (x *ConformanceResponse) Reset() { 405 *x = ConformanceResponse{} 406 if protoimpl.UnsafeEnabled { 407 mi := &file_conformance_conformance_proto_msgTypes[2] 408 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 409 ms.StoreMessageInfo(mi) 410 } 411} 412 413func (x *ConformanceResponse) String() string { 414 return protoimpl.X.MessageStringOf(x) 415} 416 417func (*ConformanceResponse) ProtoMessage() {} 418 419func (x *ConformanceResponse) ProtoReflect() protoreflect.Message { 420 mi := &file_conformance_conformance_proto_msgTypes[2] 421 if protoimpl.UnsafeEnabled && x != nil { 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 if ms.LoadMessageInfo() == nil { 424 ms.StoreMessageInfo(mi) 425 } 426 return ms 427 } 428 return mi.MessageOf(x) 429} 430 431// Deprecated: Use ConformanceResponse.ProtoReflect.Descriptor instead. 432func (*ConformanceResponse) Descriptor() ([]byte, []int) { 433 return file_conformance_conformance_proto_rawDescGZIP(), []int{2} 434} 435 436func (m *ConformanceResponse) GetResult() isConformanceResponse_Result { 437 if m != nil { 438 return m.Result 439 } 440 return nil 441} 442 443func (x *ConformanceResponse) GetParseError() string { 444 if x, ok := x.GetResult().(*ConformanceResponse_ParseError); ok { 445 return x.ParseError 446 } 447 return "" 448} 449 450func (x *ConformanceResponse) GetSerializeError() string { 451 if x, ok := x.GetResult().(*ConformanceResponse_SerializeError); ok { 452 return x.SerializeError 453 } 454 return "" 455} 456 457func (x *ConformanceResponse) GetTimeoutError() string { 458 if x, ok := x.GetResult().(*ConformanceResponse_TimeoutError); ok { 459 return x.TimeoutError 460 } 461 return "" 462} 463 464func (x *ConformanceResponse) GetRuntimeError() string { 465 if x, ok := x.GetResult().(*ConformanceResponse_RuntimeError); ok { 466 return x.RuntimeError 467 } 468 return "" 469} 470 471func (x *ConformanceResponse) GetProtobufPayload() []byte { 472 if x, ok := x.GetResult().(*ConformanceResponse_ProtobufPayload); ok { 473 return x.ProtobufPayload 474 } 475 return nil 476} 477 478func (x *ConformanceResponse) GetJsonPayload() string { 479 if x, ok := x.GetResult().(*ConformanceResponse_JsonPayload); ok { 480 return x.JsonPayload 481 } 482 return "" 483} 484 485func (x *ConformanceResponse) GetSkipped() string { 486 if x, ok := x.GetResult().(*ConformanceResponse_Skipped); ok { 487 return x.Skipped 488 } 489 return "" 490} 491 492func (x *ConformanceResponse) GetJspbPayload() string { 493 if x, ok := x.GetResult().(*ConformanceResponse_JspbPayload); ok { 494 return x.JspbPayload 495 } 496 return "" 497} 498 499func (x *ConformanceResponse) GetTextPayload() string { 500 if x, ok := x.GetResult().(*ConformanceResponse_TextPayload); ok { 501 return x.TextPayload 502 } 503 return "" 504} 505 506type isConformanceResponse_Result interface { 507 isConformanceResponse_Result() 508} 509 510type ConformanceResponse_ParseError struct { 511 // This string should be set to indicate parsing failed. The string can 512 // provide more information about the parse error if it is available. 513 // 514 // Setting this string does not necessarily mean the testee failed the 515 // test. Some of the test cases are intentionally invalid input. 516 ParseError string `protobuf:"bytes,1,opt,name=parse_error,json=parseError,proto3,oneof"` 517} 518 519type ConformanceResponse_SerializeError struct { 520 // If the input was successfully parsed but errors occurred when 521 // serializing it to the requested output format, set the error message in 522 // this field. 523 SerializeError string `protobuf:"bytes,6,opt,name=serialize_error,json=serializeError,proto3,oneof"` 524} 525 526type ConformanceResponse_TimeoutError struct { 527 // This should be set if the test program timed out. The string should 528 // provide more information about what the child process was doing when it 529 // was killed. 530 TimeoutError string `protobuf:"bytes,9,opt,name=timeout_error,json=timeoutError,proto3,oneof"` 531} 532 533type ConformanceResponse_RuntimeError struct { 534 // This should be set if some other error occurred. This will always 535 // indicate that the test failed. The string can provide more information 536 // about the failure. 537 RuntimeError string `protobuf:"bytes,2,opt,name=runtime_error,json=runtimeError,proto3,oneof"` 538} 539 540type ConformanceResponse_ProtobufPayload struct { 541 // If the input was successfully parsed and the requested output was 542 // protobuf, serialize it to protobuf and set it in this field. 543 ProtobufPayload []byte `protobuf:"bytes,3,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"` 544} 545 546type ConformanceResponse_JsonPayload struct { 547 // If the input was successfully parsed and the requested output was JSON, 548 // serialize to JSON and set it in this field. 549 JsonPayload string `protobuf:"bytes,4,opt,name=json_payload,json=jsonPayload,proto3,oneof"` 550} 551 552type ConformanceResponse_Skipped struct { 553 // For when the testee skipped the test, likely because a certain feature 554 // wasn't supported, like JSON input/output. 555 Skipped string `protobuf:"bytes,5,opt,name=skipped,proto3,oneof"` 556} 557 558type ConformanceResponse_JspbPayload struct { 559 // If the input was successfully parsed and the requested output was JSPB, 560 // serialize to JSPB and set it in this field. JSPB is only used inside 561 // Google. Opensource testees can just skip it. 562 JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"` 563} 564 565type ConformanceResponse_TextPayload struct { 566 // If the input was successfully parsed and the requested output was 567 // TEXT_FORMAT, serialize to TEXT_FORMAT and set it in this field. 568 TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"` 569} 570 571func (*ConformanceResponse_ParseError) isConformanceResponse_Result() {} 572 573func (*ConformanceResponse_SerializeError) isConformanceResponse_Result() {} 574 575func (*ConformanceResponse_TimeoutError) isConformanceResponse_Result() {} 576 577func (*ConformanceResponse_RuntimeError) isConformanceResponse_Result() {} 578 579func (*ConformanceResponse_ProtobufPayload) isConformanceResponse_Result() {} 580 581func (*ConformanceResponse_JsonPayload) isConformanceResponse_Result() {} 582 583func (*ConformanceResponse_Skipped) isConformanceResponse_Result() {} 584 585func (*ConformanceResponse_JspbPayload) isConformanceResponse_Result() {} 586 587func (*ConformanceResponse_TextPayload) isConformanceResponse_Result() {} 588 589// Encoding options for jspb format. 590type JspbEncodingConfig struct { 591 state protoimpl.MessageState 592 sizeCache protoimpl.SizeCache 593 unknownFields protoimpl.UnknownFields 594 595 // Encode the value field of Any as jspb array if true, otherwise binary. 596 UseJspbArrayAnyFormat bool `protobuf:"varint,1,opt,name=use_jspb_array_any_format,json=useJspbArrayAnyFormat,proto3" json:"use_jspb_array_any_format,omitempty"` 597} 598 599func (x *JspbEncodingConfig) Reset() { 600 *x = JspbEncodingConfig{} 601 if protoimpl.UnsafeEnabled { 602 mi := &file_conformance_conformance_proto_msgTypes[3] 603 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 604 ms.StoreMessageInfo(mi) 605 } 606} 607 608func (x *JspbEncodingConfig) String() string { 609 return protoimpl.X.MessageStringOf(x) 610} 611 612func (*JspbEncodingConfig) ProtoMessage() {} 613 614func (x *JspbEncodingConfig) ProtoReflect() protoreflect.Message { 615 mi := &file_conformance_conformance_proto_msgTypes[3] 616 if protoimpl.UnsafeEnabled && x != nil { 617 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 618 if ms.LoadMessageInfo() == nil { 619 ms.StoreMessageInfo(mi) 620 } 621 return ms 622 } 623 return mi.MessageOf(x) 624} 625 626// Deprecated: Use JspbEncodingConfig.ProtoReflect.Descriptor instead. 627func (*JspbEncodingConfig) Descriptor() ([]byte, []int) { 628 return file_conformance_conformance_proto_rawDescGZIP(), []int{3} 629} 630 631func (x *JspbEncodingConfig) GetUseJspbArrayAnyFormat() bool { 632 if x != nil { 633 return x.UseJspbArrayAnyFormat 634 } 635 return false 636} 637 638var File_conformance_conformance_proto protoreflect.FileDescriptor 639 640var file_conformance_conformance_proto_rawDesc = []byte{ 641 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x63, 0x6f, 642 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 643 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x26, 0x0a, 0x0a, 644 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61, 645 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x69, 646 0x6c, 0x75, 0x72, 0x65, 0x22, 0xf6, 0x03, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 647 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x10, 0x70, 648 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 649 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 650 0x66, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 651 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 652 0x52, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 653 0x0c, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 654 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 0x6c, 0x6f, 655 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 656 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 657 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4f, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65, 658 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 659 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 660 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 661 0x74, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70, 662 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 663 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 664 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x74, 665 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 666 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 667 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x74, 668 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x53, 0x0a, 0x15, 0x6a, 669 0x73, 0x70, 0x62, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x70, 0x74, 670 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 671 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4a, 0x73, 0x70, 0x62, 0x45, 0x6e, 0x63, 672 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x6a, 0x73, 0x70, 673 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 674 0x12, 0x30, 0x0a, 0x14, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 675 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 676 0x70, 0x72, 0x69, 0x6e, 0x74, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x46, 0x69, 0x65, 0x6c, 677 0x64, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xf3, 0x02, 678 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 679 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x65, 680 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 681 0x72, 0x73, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x69, 682 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 683 0x09, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x45, 0x72, 684 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x65, 685 0x72, 0x72, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x74, 0x69, 686 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x75, 687 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 688 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x72, 0x72, 0x6f, 689 0x72, 0x12, 0x2b, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 690 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 691 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 692 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 693 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 694 0x6f, 0x61, 0x64, 0x12, 0x1a, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x18, 0x05, 695 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x12, 696 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 697 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 698 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 699 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 700 0x78, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 701 0x75, 0x6c, 0x74, 0x22, 0x4e, 0x0a, 0x12, 0x4a, 0x73, 0x70, 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 702 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 703 0x5f, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x61, 0x6e, 0x79, 0x5f, 704 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 705 0x65, 0x4a, 0x73, 0x70, 0x62, 0x41, 0x72, 0x72, 0x61, 0x79, 0x41, 0x6e, 0x79, 0x46, 0x6f, 0x72, 706 0x6d, 0x61, 0x74, 0x2a, 0x50, 0x0a, 0x0a, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 707 0x74, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 708 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x42, 0x55, 0x46, 0x10, 0x01, 709 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 710 0x50, 0x42, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x46, 0x4f, 0x52, 711 0x4d, 0x41, 0x54, 0x10, 0x04, 0x2a, 0x8f, 0x01, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 712 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 713 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 714 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 715 0x09, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x02, 0x12, 0x24, 0x0a, 0x20, 716 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 717 0x4f, 0x57, 0x4e, 0x5f, 0x50, 0x41, 0x52, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x45, 0x53, 0x54, 718 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x50, 0x42, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 719 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 720 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x05, 0x42, 0x2f, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 721 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 722 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0xa2, 0x02, 0x0b, 0x43, 0x6f, 0x6e, 723 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 724} 725 726var ( 727 file_conformance_conformance_proto_rawDescOnce sync.Once 728 file_conformance_conformance_proto_rawDescData = file_conformance_conformance_proto_rawDesc 729) 730 731func file_conformance_conformance_proto_rawDescGZIP() []byte { 732 file_conformance_conformance_proto_rawDescOnce.Do(func() { 733 file_conformance_conformance_proto_rawDescData = protoimpl.X.CompressGZIP(file_conformance_conformance_proto_rawDescData) 734 }) 735 return file_conformance_conformance_proto_rawDescData 736} 737 738var file_conformance_conformance_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 739var file_conformance_conformance_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 740var file_conformance_conformance_proto_goTypes = []interface{}{ 741 (WireFormat)(0), // 0: conformance.WireFormat 742 (TestCategory)(0), // 1: conformance.TestCategory 743 (*FailureSet)(nil), // 2: conformance.FailureSet 744 (*ConformanceRequest)(nil), // 3: conformance.ConformanceRequest 745 (*ConformanceResponse)(nil), // 4: conformance.ConformanceResponse 746 (*JspbEncodingConfig)(nil), // 5: conformance.JspbEncodingConfig 747} 748var file_conformance_conformance_proto_depIdxs = []int32{ 749 0, // 0: conformance.ConformanceRequest.requested_output_format:type_name -> conformance.WireFormat 750 1, // 1: conformance.ConformanceRequest.test_category:type_name -> conformance.TestCategory 751 5, // 2: conformance.ConformanceRequest.jspb_encoding_options:type_name -> conformance.JspbEncodingConfig 752 3, // [3:3] is the sub-list for method output_type 753 3, // [3:3] is the sub-list for method input_type 754 3, // [3:3] is the sub-list for extension type_name 755 3, // [3:3] is the sub-list for extension extendee 756 0, // [0:3] is the sub-list for field type_name 757} 758 759func init() { file_conformance_conformance_proto_init() } 760func file_conformance_conformance_proto_init() { 761 if File_conformance_conformance_proto != nil { 762 return 763 } 764 if !protoimpl.UnsafeEnabled { 765 file_conformance_conformance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 766 switch v := v.(*FailureSet); i { 767 case 0: 768 return &v.state 769 case 1: 770 return &v.sizeCache 771 case 2: 772 return &v.unknownFields 773 default: 774 return nil 775 } 776 } 777 file_conformance_conformance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 778 switch v := v.(*ConformanceRequest); i { 779 case 0: 780 return &v.state 781 case 1: 782 return &v.sizeCache 783 case 2: 784 return &v.unknownFields 785 default: 786 return nil 787 } 788 } 789 file_conformance_conformance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 790 switch v := v.(*ConformanceResponse); i { 791 case 0: 792 return &v.state 793 case 1: 794 return &v.sizeCache 795 case 2: 796 return &v.unknownFields 797 default: 798 return nil 799 } 800 } 801 file_conformance_conformance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 802 switch v := v.(*JspbEncodingConfig); i { 803 case 0: 804 return &v.state 805 case 1: 806 return &v.sizeCache 807 case 2: 808 return &v.unknownFields 809 default: 810 return nil 811 } 812 } 813 } 814 file_conformance_conformance_proto_msgTypes[1].OneofWrappers = []interface{}{ 815 (*ConformanceRequest_ProtobufPayload)(nil), 816 (*ConformanceRequest_JsonPayload)(nil), 817 (*ConformanceRequest_JspbPayload)(nil), 818 (*ConformanceRequest_TextPayload)(nil), 819 } 820 file_conformance_conformance_proto_msgTypes[2].OneofWrappers = []interface{}{ 821 (*ConformanceResponse_ParseError)(nil), 822 (*ConformanceResponse_SerializeError)(nil), 823 (*ConformanceResponse_TimeoutError)(nil), 824 (*ConformanceResponse_RuntimeError)(nil), 825 (*ConformanceResponse_ProtobufPayload)(nil), 826 (*ConformanceResponse_JsonPayload)(nil), 827 (*ConformanceResponse_Skipped)(nil), 828 (*ConformanceResponse_JspbPayload)(nil), 829 (*ConformanceResponse_TextPayload)(nil), 830 } 831 type x struct{} 832 out := protoimpl.TypeBuilder{ 833 File: protoimpl.DescBuilder{ 834 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 835 RawDescriptor: file_conformance_conformance_proto_rawDesc, 836 NumEnums: 2, 837 NumMessages: 4, 838 NumExtensions: 0, 839 NumServices: 0, 840 }, 841 GoTypes: file_conformance_conformance_proto_goTypes, 842 DependencyIndexes: file_conformance_conformance_proto_depIdxs, 843 EnumInfos: file_conformance_conformance_proto_enumTypes, 844 MessageInfos: file_conformance_conformance_proto_msgTypes, 845 }.Build() 846 File_conformance_conformance_proto = out.File 847 file_conformance_conformance_proto_rawDesc = nil 848 file_conformance_conformance_proto_goTypes = nil 849 file_conformance_conformance_proto_depIdxs = nil 850} 851