legacy.proto 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. syntax = "proto3";
  5. package google.golang.org;
  6. option go_package = "google.golang.org/protobuf/internal/testprotos/legacy";
  7. // This file imports other files generated from a build of protoc-gen-go
  8. // locked to a specific version. For all imports, they were built using
  9. // Go v1.11 and protoc v3.5.1. This package is used to test compatibility with
  10. // checked in generated code that cannot easily change.
  11. // As such, there should never be a need to update these generated files.
  12. //
  13. // The specific version of protoc-gen-go used is encoded in the file path:
  14. // $NAME.$VERSION-$COMMIT_DATE-$COMMIT_HASH/test.proto
  15. //
  16. // To avoid a dependency on the v1 module, we perform the following
  17. // import path replacement to all generated .pb.go files:
  18. // "github.com/golang/protobuf/proto" => "google.golang.org/protobuf/internal/protolegacy"
  19. // The oldest supported version of protoc-gen-go is 2fc053c5,
  20. // which finished adding descriptor methods to all protobuf types.
  21. import "legacy/proto2.v0.0.0-20160225-2fc053c5/test.proto";
  22. import "legacy/proto3.v0.0.0-20160225-2fc053c5/test.proto";
  23. // Changes from 20160225 to 20160519:
  24. // * Nothing noteworthy to generated code
  25. import "legacy/proto2.v0.0.0-20160519-a4ab9ec5/test.proto";
  26. import "legacy/proto3.v0.0.0-20160519-a4ab9ec5/test.proto";
  27. // Changes from 20160519 to 20180125:
  28. // * Removed ExtensionMap method and XXX_extensions field from messages
  29. // * Added embedded proto.XXX_InternalExtensions field to messages
  30. // * Added proto.ExtensionDesc.Filename field
  31. // * Added registration for file descriptor
  32. // * Added Get accessor methods for all fields in proto3 messages
  33. // * Proto3 repeated primitives are packed by default
  34. import "legacy/proto2.v1.0.0-20180125-92554152/test.proto";
  35. import "legacy/proto3.v1.0.0-20180125-92554152/test.proto";
  36. // Changes from 20180125 to 20180430:
  37. // * Added XXX_unrecognized field to proto3 messages
  38. // * Added XXX_NoUnkeyedLiteral field to messages
  39. // * Added XXX_sizecache field to messages
  40. // * Added XXX_Unmarshal method to messages
  41. // * Added XXX_Marshal method to messages
  42. // * Added XXX_Merge method to messages
  43. // * Added XXX_Size method to messages
  44. // * Added XXX_DiscardUnknown method to messages
  45. // * Added dependency on proto.InternalMessageInfo for table-driven logic
  46. // * Added registration for map types
  47. import "legacy/proto2.v1.1.0-20180430-b4deda09/test.proto";
  48. import "legacy/proto3.v1.1.0-20180430-b4deda09/test.proto";
  49. // Changes from 20180430 to 20180814:
  50. // * Added "proto3" struct tag to all fields in proto3 messages
  51. import "legacy/proto2.v1.2.0-20180814-aa810b61/test.proto";
  52. import "legacy/proto3.v1.2.0-20180814-aa810b61/test.proto";
  53. // Changes from 20180814 to 20181126:
  54. // * Changed the XXX_OneofFuncs method to XXX_OneofWrappers
  55. // * Various syntactical changes to make the output more consistent
  56. import "legacy/proto2.v1.2.1-20181126-8d0c54c1/test.proto";
  57. import "legacy/proto3.v1.2.1-20181126-8d0c54c1/test.proto";
  58. message Legacy {
  59. google.golang.org.proto2_20160225.Message f1 = 1;
  60. google.golang.org.proto3_20160225.Message f2 = 2;
  61. google.golang.org.proto2_20160519.Message f3 = 3;
  62. google.golang.org.proto3_20160519.Message f4 = 4;
  63. google.golang.org.proto2_20180125.Message f5 = 5;
  64. google.golang.org.proto3_20180125.Message f6 = 6;
  65. google.golang.org.proto2_20180430.Message f7 = 7;
  66. google.golang.org.proto3_20180430.Message f8 = 8;
  67. google.golang.org.proto2_20180814.Message f9 = 9;
  68. google.golang.org.proto3_20180814.Message f10 = 10;
  69. google.golang.org.proto2_20181126.Message f11 = 11;
  70. google.golang.org.proto3_20181126.Message f12 = 12;
  71. }