ext.pb.go 3.9 KB

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