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 // Google internal only. 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. Google internal only. Opensource testees just skip it. 111 TestCategory_JSPB_TEST TestCategory = 4 112 // Test text format. For cpp, java and python, testees can already deal with 113 // this type. Testees of other languages can simply skip it. 114 TestCategory_TEXT_FORMAT_TEST TestCategory = 5 115) 116 117// Enum value maps for TestCategory. 118var ( 119 TestCategory_name = map[int32]string{ 120 0: "UNSPECIFIED_TEST", 121 1: "BINARY_TEST", 122 2: "JSON_TEST", 123 3: "JSON_IGNORE_UNKNOWN_PARSING_TEST", 124 4: "JSPB_TEST", 125 5: "TEXT_FORMAT_TEST", 126 } 127 TestCategory_value = map[string]int32{ 128 "UNSPECIFIED_TEST": 0, 129 "BINARY_TEST": 1, 130 "JSON_TEST": 2, 131 "JSON_IGNORE_UNKNOWN_PARSING_TEST": 3, 132 "JSPB_TEST": 4, 133 "TEXT_FORMAT_TEST": 5, 134 } 135) 136 137func (x TestCategory) Enum() *TestCategory { 138 p := new(TestCategory) 139 *p = x 140 return p 141} 142 143func (x TestCategory) String() string { 144 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 145} 146 147func (TestCategory) Descriptor() protoreflect.EnumDescriptor { 148 return file_conformance_conformance_proto_enumTypes[1].Descriptor() 149} 150 151func (TestCategory) Type() protoreflect.EnumType { 152 return &file_conformance_conformance_proto_enumTypes[1] 153} 154 155func (x TestCategory) Number() protoreflect.EnumNumber { 156 return protoreflect.EnumNumber(x) 157} 158 159// Deprecated: Use TestCategory.Descriptor instead. 160func (TestCategory) EnumDescriptor() ([]byte, []int) { 161 return file_conformance_conformance_proto_rawDescGZIP(), []int{1} 162} 163 164// The conformance runner will request a list of failures as the first request. 165// This will be known by message_type == "conformance.FailureSet", a conformance 166// test should return a serialized FailureSet in protobuf_payload. 167type FailureSet struct { 168 state protoimpl.MessageState 169 sizeCache protoimpl.SizeCache 170 unknownFields protoimpl.UnknownFields 171 172 Failure []string `protobuf:"bytes,1,rep,name=failure,proto3" json:"failure,omitempty"` 173} 174 175func (x *FailureSet) Reset() { 176 *x = FailureSet{} 177 if protoimpl.UnsafeEnabled { 178 mi := &file_conformance_conformance_proto_msgTypes[0] 179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 180 ms.StoreMessageInfo(mi) 181 } 182} 183 184func (x *FailureSet) String() string { 185 return protoimpl.X.MessageStringOf(x) 186} 187 188func (*FailureSet) ProtoMessage() {} 189 190func (x *FailureSet) ProtoReflect() protoreflect.Message { 191 mi := &file_conformance_conformance_proto_msgTypes[0] 192 if protoimpl.UnsafeEnabled && x != nil { 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 if ms.LoadMessageInfo() == nil { 195 ms.StoreMessageInfo(mi) 196 } 197 return ms 198 } 199 return mi.MessageOf(x) 200} 201 202// Deprecated: Use FailureSet.ProtoReflect.Descriptor instead. 203func (*FailureSet) Descriptor() ([]byte, []int) { 204 return file_conformance_conformance_proto_rawDescGZIP(), []int{0} 205} 206 207func (x *FailureSet) GetFailure() []string { 208 if x != nil { 209 return x.Failure 210 } 211 return nil 212} 213 214// Represents a single test case's input. The testee should: 215// 216// 1. parse this proto (which should always succeed) 217// 2. parse the protobuf or JSON payload in "payload" (which may fail) 218// 3. if the parse succeeded, serialize the message in the requested format. 219type ConformanceRequest struct { 220 state protoimpl.MessageState 221 sizeCache protoimpl.SizeCache 222 unknownFields protoimpl.UnknownFields 223 224 // The payload (whether protobuf of JSON) is always for a 225 // protobuf_test_messages.proto3.TestAllTypes proto (as defined in 226 // src/google/protobuf/proto3_test_messages.proto). 227 // 228 // TODO(haberman): if/when we expand the conformance tests to support proto2, 229 // we will want to include a field that lets the payload/response be a 230 // protobuf_test_messages.proto2.TestAllTypes message instead. 231 // 232 // Types that are assignable to Payload: 233 // *ConformanceRequest_ProtobufPayload 234 // *ConformanceRequest_JsonPayload 235 // *ConformanceRequest_JspbPayload 236 // *ConformanceRequest_TextPayload 237 Payload isConformanceRequest_Payload `protobuf_oneof:"payload"` 238 // Which format should the testee serialize its message to? 239 RequestedOutputFormat WireFormat `protobuf:"varint,3,opt,name=requested_output_format,json=requestedOutputFormat,proto3,enum=conformance.WireFormat" json:"requested_output_format,omitempty"` 240 // The full name for the test message to use; for the moment, either: 241 // protobuf_test_messages.proto3.TestAllTypesProto3 or 242 // protobuf_test_messages.proto2.TestAllTypesProto2. 243 MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` 244 // Each test is given a specific test category. Some category may need 245 // specific support in testee programs. Refer to the definition of TestCategory 246 // for more information. 247 TestCategory TestCategory `protobuf:"varint,5,opt,name=test_category,json=testCategory,proto3,enum=conformance.TestCategory" json:"test_category,omitempty"` 248 // Specify details for how to encode jspb. 249 JspbEncodingOptions *JspbEncodingConfig `protobuf:"bytes,6,opt,name=jspb_encoding_options,json=jspbEncodingOptions,proto3" json:"jspb_encoding_options,omitempty"` 250 // This can be used in json and text format. If true, testee should print 251 // unknown fields instead of ignore. This feature is optional. 252 PrintUnknownFields bool `protobuf:"varint,9,opt,name=print_unknown_fields,json=printUnknownFields,proto3" json:"print_unknown_fields,omitempty"` 253} 254 255func (x *ConformanceRequest) Reset() { 256 *x = ConformanceRequest{} 257 if protoimpl.UnsafeEnabled { 258 mi := &file_conformance_conformance_proto_msgTypes[1] 259 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 260 ms.StoreMessageInfo(mi) 261 } 262} 263 264func (x *ConformanceRequest) String() string { 265 return protoimpl.X.MessageStringOf(x) 266} 267 268func (*ConformanceRequest) ProtoMessage() {} 269 270func (x *ConformanceRequest) ProtoReflect() protoreflect.Message { 271 mi := &file_conformance_conformance_proto_msgTypes[1] 272 if protoimpl.UnsafeEnabled && x != nil { 273 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 274 if ms.LoadMessageInfo() == nil { 275 ms.StoreMessageInfo(mi) 276 } 277 return ms 278 } 279 return mi.MessageOf(x) 280} 281 282// Deprecated: Use ConformanceRequest.ProtoReflect.Descriptor instead. 283func (*ConformanceRequest) Descriptor() ([]byte, []int) { 284 return file_conformance_conformance_proto_rawDescGZIP(), []int{1} 285} 286 287func (m *ConformanceRequest) GetPayload() isConformanceRequest_Payload { 288 if m != nil { 289 return m.Payload 290 } 291 return nil 292} 293 294func (x *ConformanceRequest) GetProtobufPayload() []byte { 295 if x, ok := x.GetPayload().(*ConformanceRequest_ProtobufPayload); ok { 296 return x.ProtobufPayload 297 } 298 return nil 299} 300 301func (x *ConformanceRequest) GetJsonPayload() string { 302 if x, ok := x.GetPayload().(*ConformanceRequest_JsonPayload); ok { 303 return x.JsonPayload 304 } 305 return "" 306} 307 308func (x *ConformanceRequest) GetJspbPayload() string { 309 if x, ok := x.GetPayload().(*ConformanceRequest_JspbPayload); ok { 310 return x.JspbPayload 311 } 312 return "" 313} 314 315func (x *ConformanceRequest) GetTextPayload() string { 316 if x, ok := x.GetPayload().(*ConformanceRequest_TextPayload); ok { 317 return x.TextPayload 318 } 319 return "" 320} 321 322func (x *ConformanceRequest) GetRequestedOutputFormat() WireFormat { 323 if x != nil { 324 return x.RequestedOutputFormat 325 } 326 return WireFormat_UNSPECIFIED 327} 328 329func (x *ConformanceRequest) GetMessageType() string { 330 if x != nil { 331 return x.MessageType 332 } 333 return "" 334} 335 336func (x *ConformanceRequest) GetTestCategory() TestCategory { 337 if x != nil { 338 return x.TestCategory 339 } 340 return TestCategory_UNSPECIFIED_TEST 341} 342 343func (x *ConformanceRequest) GetJspbEncodingOptions() *JspbEncodingConfig { 344 if x != nil { 345 return x.JspbEncodingOptions 346 } 347 return nil 348} 349 350func (x *ConformanceRequest) GetPrintUnknownFields() bool { 351 if x != nil { 352 return x.PrintUnknownFields 353 } 354 return false 355} 356 357type isConformanceRequest_Payload interface { 358 isConformanceRequest_Payload() 359} 360 361type ConformanceRequest_ProtobufPayload struct { 362 ProtobufPayload []byte `protobuf:"bytes,1,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"` 363} 364 365type ConformanceRequest_JsonPayload struct { 366 JsonPayload string `protobuf:"bytes,2,opt,name=json_payload,json=jsonPayload,proto3,oneof"` 367} 368 369type ConformanceRequest_JspbPayload struct { 370 // Google internal only. Opensource testees just skip it. 371 JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"` 372} 373 374type ConformanceRequest_TextPayload struct { 375 TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"` 376} 377 378func (*ConformanceRequest_ProtobufPayload) isConformanceRequest_Payload() {} 379 380func (*ConformanceRequest_JsonPayload) isConformanceRequest_Payload() {} 381 382func (*ConformanceRequest_JspbPayload) isConformanceRequest_Payload() {} 383 384func (*ConformanceRequest_TextPayload) isConformanceRequest_Payload() {} 385 386// Represents a single test case's output. 387type ConformanceResponse struct { 388 state protoimpl.MessageState 389 sizeCache protoimpl.SizeCache 390 unknownFields protoimpl.UnknownFields 391 392 // Types that are assignable to Result: 393 // *ConformanceResponse_ParseError 394 // *ConformanceResponse_SerializeError 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) GetRuntimeError() string { 458 if x, ok := x.GetResult().(*ConformanceResponse_RuntimeError); ok { 459 return x.RuntimeError 460 } 461 return "" 462} 463 464func (x *ConformanceResponse) GetProtobufPayload() []byte { 465 if x, ok := x.GetResult().(*ConformanceResponse_ProtobufPayload); ok { 466 return x.ProtobufPayload 467 } 468 return nil 469} 470 471func (x *ConformanceResponse) GetJsonPayload() string { 472 if x, ok := x.GetResult().(*ConformanceResponse_JsonPayload); ok { 473 return x.JsonPayload 474 } 475 return "" 476} 477 478func (x *ConformanceResponse) GetSkipped() string { 479 if x, ok := x.GetResult().(*ConformanceResponse_Skipped); ok { 480 return x.Skipped 481 } 482 return "" 483} 484 485func (x *ConformanceResponse) GetJspbPayload() string { 486 if x, ok := x.GetResult().(*ConformanceResponse_JspbPayload); ok { 487 return x.JspbPayload 488 } 489 return "" 490} 491 492func (x *ConformanceResponse) GetTextPayload() string { 493 if x, ok := x.GetResult().(*ConformanceResponse_TextPayload); ok { 494 return x.TextPayload 495 } 496 return "" 497} 498 499type isConformanceResponse_Result interface { 500 isConformanceResponse_Result() 501} 502 503type ConformanceResponse_ParseError struct { 504 // This string should be set to indicate parsing failed. The string can 505 // provide more information about the parse error if it is available. 506 // 507 // Setting this string does not necessarily mean the testee failed the 508 // test. Some of the test cases are intentionally invalid input. 509 ParseError string `protobuf:"bytes,1,opt,name=parse_error,json=parseError,proto3,oneof"` 510} 511 512type ConformanceResponse_SerializeError struct { 513 // If the input was successfully parsed but errors occurred when 514 // serializing it to the requested output format, set the error message in 515 // this field. 516 SerializeError string `protobuf:"bytes,6,opt,name=serialize_error,json=serializeError,proto3,oneof"` 517} 518 519type ConformanceResponse_RuntimeError struct { 520 // This should be set if some other error occurred. This will always 521 // indicate that the test failed. The string can provide more information 522 // about the failure. 523 RuntimeError string `protobuf:"bytes,2,opt,name=runtime_error,json=runtimeError,proto3,oneof"` 524} 525 526type ConformanceResponse_ProtobufPayload struct { 527 // If the input was successfully parsed and the requested output was 528 // protobuf, serialize it to protobuf and set it in this field. 529 ProtobufPayload []byte `protobuf:"bytes,3,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"` 530} 531 532type ConformanceResponse_JsonPayload struct { 533 // If the input was successfully parsed and the requested output was JSON, 534 // serialize to JSON and set it in this field. 535 JsonPayload string `protobuf:"bytes,4,opt,name=json_payload,json=jsonPayload,proto3,oneof"` 536} 537 538type ConformanceResponse_Skipped struct { 539 // For when the testee skipped the test, likely because a certain feature 540 // wasn't supported, like JSON input/output. 541 Skipped string `protobuf:"bytes,5,opt,name=skipped,proto3,oneof"` 542} 543 544type ConformanceResponse_JspbPayload struct { 545 // If the input was successfully parsed and the requested output was JSPB, 546 // serialize to JSPB and set it in this field. JSPB is google internal only 547 // format. Opensource testees can just skip it. 548 JspbPayload string `protobuf:"bytes,7,opt,name=jspb_payload,json=jspbPayload,proto3,oneof"` 549} 550 551type ConformanceResponse_TextPayload struct { 552 // If the input was successfully parsed and the requested output was 553 // TEXT_FORMAT, serialize to TEXT_FORMAT and set it in this field. 554 TextPayload string `protobuf:"bytes,8,opt,name=text_payload,json=textPayload,proto3,oneof"` 555} 556 557func (*ConformanceResponse_ParseError) isConformanceResponse_Result() {} 558 559func (*ConformanceResponse_SerializeError) isConformanceResponse_Result() {} 560 561func (*ConformanceResponse_RuntimeError) isConformanceResponse_Result() {} 562 563func (*ConformanceResponse_ProtobufPayload) isConformanceResponse_Result() {} 564 565func (*ConformanceResponse_JsonPayload) isConformanceResponse_Result() {} 566 567func (*ConformanceResponse_Skipped) isConformanceResponse_Result() {} 568 569func (*ConformanceResponse_JspbPayload) isConformanceResponse_Result() {} 570 571func (*ConformanceResponse_TextPayload) isConformanceResponse_Result() {} 572 573// Encoding options for jspb format. 574type JspbEncodingConfig struct { 575 state protoimpl.MessageState 576 sizeCache protoimpl.SizeCache 577 unknownFields protoimpl.UnknownFields 578 579 // Encode the value field of Any as jspb array if true, otherwise binary. 580 UseJspbArrayAnyFormat bool `protobuf:"varint,1,opt,name=use_jspb_array_any_format,json=useJspbArrayAnyFormat,proto3" json:"use_jspb_array_any_format,omitempty"` 581} 582 583func (x *JspbEncodingConfig) Reset() { 584 *x = JspbEncodingConfig{} 585 if protoimpl.UnsafeEnabled { 586 mi := &file_conformance_conformance_proto_msgTypes[3] 587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 588 ms.StoreMessageInfo(mi) 589 } 590} 591 592func (x *JspbEncodingConfig) String() string { 593 return protoimpl.X.MessageStringOf(x) 594} 595 596func (*JspbEncodingConfig) ProtoMessage() {} 597 598func (x *JspbEncodingConfig) ProtoReflect() protoreflect.Message { 599 mi := &file_conformance_conformance_proto_msgTypes[3] 600 if protoimpl.UnsafeEnabled && x != nil { 601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 602 if ms.LoadMessageInfo() == nil { 603 ms.StoreMessageInfo(mi) 604 } 605 return ms 606 } 607 return mi.MessageOf(x) 608} 609 610// Deprecated: Use JspbEncodingConfig.ProtoReflect.Descriptor instead. 611func (*JspbEncodingConfig) Descriptor() ([]byte, []int) { 612 return file_conformance_conformance_proto_rawDescGZIP(), []int{3} 613} 614 615func (x *JspbEncodingConfig) GetUseJspbArrayAnyFormat() bool { 616 if x != nil { 617 return x.UseJspbArrayAnyFormat 618 } 619 return false 620} 621 622var File_conformance_conformance_proto protoreflect.FileDescriptor 623 624var file_conformance_conformance_proto_rawDesc = []byte{ 625 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x63, 0x6f, 626 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 627 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x26, 0x0a, 0x0a, 628 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61, 629 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x69, 630 0x6c, 0x75, 0x72, 0x65, 0x22, 0xf6, 0x03, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 631 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x10, 0x70, 632 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 633 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 634 0x66, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 635 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 636 0x52, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 637 0x0c, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 638 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 0x6c, 0x6f, 639 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 640 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 641 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4f, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65, 642 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 643 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 644 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 645 0x74, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70, 646 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 647 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 648 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x74, 649 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 650 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 651 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x74, 652 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x53, 0x0a, 0x15, 0x6a, 653 0x73, 0x70, 0x62, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x70, 0x74, 654 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 655 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4a, 0x73, 0x70, 0x62, 0x45, 0x6e, 0x63, 656 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x6a, 0x73, 0x70, 657 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 658 0x12, 0x30, 0x0a, 0x14, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 659 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 660 0x70, 0x72, 0x69, 0x6e, 0x74, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x46, 0x69, 0x65, 0x6c, 661 0x64, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xcc, 0x02, 662 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 663 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x65, 664 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 665 0x72, 0x73, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x69, 666 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 667 0x09, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x45, 0x72, 668 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x65, 669 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x75, 670 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x10, 0x70, 0x72, 671 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 672 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 673 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 674 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 675 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1a, 0x0a, 0x07, 676 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 677 0x07, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6a, 0x73, 0x70, 0x62, 678 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 679 0x52, 0x0b, 0x6a, 0x73, 0x70, 0x62, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 680 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x08, 0x20, 681 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 682 0x61, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x4e, 0x0a, 0x12, 683 0x4a, 0x73, 0x70, 0x62, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 684 0x69, 0x67, 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x5f, 0x6a, 0x73, 0x70, 0x62, 0x5f, 0x61, 685 0x72, 0x72, 0x61, 0x79, 0x5f, 0x61, 0x6e, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 686 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x4a, 0x73, 0x70, 0x62, 0x41, 0x72, 687 0x72, 0x61, 0x79, 0x41, 0x6e, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2a, 0x50, 0x0a, 0x0a, 688 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 689 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 690 0x52, 0x4f, 0x54, 0x4f, 0x42, 0x55, 0x46, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 691 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x50, 0x42, 0x10, 0x03, 0x12, 0x0f, 0x0a, 692 0x0b, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x10, 0x04, 0x2a, 0x8f, 693 0x01, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 694 0x14, 0x0a, 0x10, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x54, 695 0x45, 0x53, 0x54, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x5f, 696 0x54, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x54, 697 0x45, 0x53, 0x54, 0x10, 0x02, 0x12, 0x24, 0x0a, 0x20, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x47, 698 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50, 0x41, 0x52, 699 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 700 0x53, 0x50, 0x42, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x45, 701 0x58, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x05, 702 0x42, 0x21, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 703 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 704 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 705} 706 707var ( 708 file_conformance_conformance_proto_rawDescOnce sync.Once 709 file_conformance_conformance_proto_rawDescData = file_conformance_conformance_proto_rawDesc 710) 711 712func file_conformance_conformance_proto_rawDescGZIP() []byte { 713 file_conformance_conformance_proto_rawDescOnce.Do(func() { 714 file_conformance_conformance_proto_rawDescData = protoimpl.X.CompressGZIP(file_conformance_conformance_proto_rawDescData) 715 }) 716 return file_conformance_conformance_proto_rawDescData 717} 718 719var file_conformance_conformance_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 720var file_conformance_conformance_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 721var file_conformance_conformance_proto_goTypes = []interface{}{ 722 (WireFormat)(0), // 0: conformance.WireFormat 723 (TestCategory)(0), // 1: conformance.TestCategory 724 (*FailureSet)(nil), // 2: conformance.FailureSet 725 (*ConformanceRequest)(nil), // 3: conformance.ConformanceRequest 726 (*ConformanceResponse)(nil), // 4: conformance.ConformanceResponse 727 (*JspbEncodingConfig)(nil), // 5: conformance.JspbEncodingConfig 728} 729var file_conformance_conformance_proto_depIdxs = []int32{ 730 0, // 0: conformance.ConformanceRequest.requested_output_format:type_name -> conformance.WireFormat 731 1, // 1: conformance.ConformanceRequest.test_category:type_name -> conformance.TestCategory 732 5, // 2: conformance.ConformanceRequest.jspb_encoding_options:type_name -> conformance.JspbEncodingConfig 733 3, // [3:3] is the sub-list for method output_type 734 3, // [3:3] is the sub-list for method input_type 735 3, // [3:3] is the sub-list for extension type_name 736 3, // [3:3] is the sub-list for extension extendee 737 0, // [0:3] is the sub-list for field type_name 738} 739 740func init() { file_conformance_conformance_proto_init() } 741func file_conformance_conformance_proto_init() { 742 if File_conformance_conformance_proto != nil { 743 return 744 } 745 if !protoimpl.UnsafeEnabled { 746 file_conformance_conformance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 747 switch v := v.(*FailureSet); i { 748 case 0: 749 return &v.state 750 case 1: 751 return &v.sizeCache 752 case 2: 753 return &v.unknownFields 754 default: 755 return nil 756 } 757 } 758 file_conformance_conformance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 759 switch v := v.(*ConformanceRequest); i { 760 case 0: 761 return &v.state 762 case 1: 763 return &v.sizeCache 764 case 2: 765 return &v.unknownFields 766 default: 767 return nil 768 } 769 } 770 file_conformance_conformance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 771 switch v := v.(*ConformanceResponse); i { 772 case 0: 773 return &v.state 774 case 1: 775 return &v.sizeCache 776 case 2: 777 return &v.unknownFields 778 default: 779 return nil 780 } 781 } 782 file_conformance_conformance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 783 switch v := v.(*JspbEncodingConfig); i { 784 case 0: 785 return &v.state 786 case 1: 787 return &v.sizeCache 788 case 2: 789 return &v.unknownFields 790 default: 791 return nil 792 } 793 } 794 } 795 file_conformance_conformance_proto_msgTypes[1].OneofWrappers = []interface{}{ 796 (*ConformanceRequest_ProtobufPayload)(nil), 797 (*ConformanceRequest_JsonPayload)(nil), 798 (*ConformanceRequest_JspbPayload)(nil), 799 (*ConformanceRequest_TextPayload)(nil), 800 } 801 file_conformance_conformance_proto_msgTypes[2].OneofWrappers = []interface{}{ 802 (*ConformanceResponse_ParseError)(nil), 803 (*ConformanceResponse_SerializeError)(nil), 804 (*ConformanceResponse_RuntimeError)(nil), 805 (*ConformanceResponse_ProtobufPayload)(nil), 806 (*ConformanceResponse_JsonPayload)(nil), 807 (*ConformanceResponse_Skipped)(nil), 808 (*ConformanceResponse_JspbPayload)(nil), 809 (*ConformanceResponse_TextPayload)(nil), 810 } 811 type x struct{} 812 out := protoimpl.TypeBuilder{ 813 File: protoimpl.DescBuilder{ 814 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 815 RawDescriptor: file_conformance_conformance_proto_rawDesc, 816 NumEnums: 2, 817 NumMessages: 4, 818 NumExtensions: 0, 819 NumServices: 0, 820 }, 821 GoTypes: file_conformance_conformance_proto_goTypes, 822 DependencyIndexes: file_conformance_conformance_proto_depIdxs, 823 EnumInfos: file_conformance_conformance_proto_enumTypes, 824 MessageInfos: file_conformance_conformance_proto_msgTypes, 825 }.Build() 826 File_conformance_conformance_proto = out.File 827 file_conformance_conformance_proto_rawDesc = nil 828 file_conformance_conformance_proto_goTypes = nil 829 file_conformance_conformance_proto_depIdxs = nil 830} 831