ext.pb.go 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test/ext.proto
  3. package test
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoiface "google.golang.org/protobuf/runtime/protoiface"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that runtime/protoimpl is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  13. // Verify that this generated code is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  15. )
  16. var file_test_ext_proto_extDescs = []protoiface.ExtensionDescV1{
  17. {
  18. ExtendedType: (*TestAllExtensions)(nil),
  19. ExtensionType: (*int32)(nil),
  20. Field: 2000,
  21. Name: "goproto.proto.test.foreign_int32_extension",
  22. Tag: "varint,2000,opt,name=foreign_int32_extension",
  23. Filename: "test/ext.proto",
  24. },
  25. }
  26. var (
  27. // extend goproto.proto.test.TestAllExtensions { optional int32 foreign_int32_extension = 2000; }
  28. E_ForeignInt32Extension = &file_test_ext_proto_extDescs[0]
  29. )
  30. var File_test_ext_proto protoreflect.FileDescriptor
  31. var file_test_ext_proto_rawDesc = []byte{
  32. 0x0a, 0x0e, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  33. 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  34. 0x74, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e,
  35. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x5e, 0x0a, 0x17, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e,
  36. 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  37. 0x12, 0x25, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  38. 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  39. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd0, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15,
  40. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x78, 0x74, 0x65,
  41. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  42. 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  43. 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73,
  44. 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74,
  45. }
  46. var (
  47. file_test_ext_proto_rawDescOnce sync.Once
  48. file_test_ext_proto_rawDescData = file_test_ext_proto_rawDesc
  49. )
  50. func file_test_ext_proto_rawDescGZIP() []byte {
  51. file_test_ext_proto_rawDescOnce.Do(func() {
  52. file_test_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_ext_proto_rawDescData)
  53. })
  54. return file_test_ext_proto_rawDescData
  55. }
  56. var file_test_ext_proto_goTypes = []interface{}{
  57. (*TestAllExtensions)(nil), // 0: goproto.proto.test.TestAllExtensions
  58. }
  59. var file_test_ext_proto_depIdxs = []int32{
  60. 0, // goproto.proto.test.foreign_int32_extension:extendee -> goproto.proto.test.TestAllExtensions
  61. 1, // starting offset of method output_type sub-list
  62. 1, // starting offset of method input_type sub-list
  63. 1, // starting offset of extension type_name sub-list
  64. 0, // starting offset of extension extendee sub-list
  65. 0, // starting offset of field type_name sub-list
  66. }
  67. func init() { file_test_ext_proto_init() }
  68. func file_test_ext_proto_init() {
  69. if File_test_ext_proto != nil {
  70. return
  71. }
  72. file_test_test_proto_init()
  73. out := protoimpl.TypeBuilder{
  74. File: protoimpl.DescBuilder{
  75. RawDescriptor: file_test_ext_proto_rawDesc,
  76. NumEnums: 0,
  77. NumMessages: 0,
  78. NumExtensions: 1,
  79. NumServices: 0,
  80. },
  81. GoTypes: file_test_ext_proto_goTypes,
  82. DependencyIndexes: file_test_ext_proto_depIdxs,
  83. LegacyExtensions: file_test_ext_proto_extDescs,
  84. }.Build()
  85. File_test_ext_proto = out.File
  86. file_test_ext_proto_rawDesc = nil
  87. file_test_ext_proto_goTypes = nil
  88. file_test_ext_proto_depIdxs = nil
  89. }