unittest_legacy_features.proto 603 B

123456789101112131415161718
  1. // Protocol Buffers - Google's data interchange format
  2. // Copyright 2008 Google Inc. All rights reserved.
  3. //
  4. // Use of this source code is governed by a BSD-style
  5. // license that can be found in the LICENSE file or at
  6. // https://developers.google.com/open-source/licenses/bsd
  7. // Test that features with legacy descriptor helpers get properly converted.
  8. edition = "2023";
  9. package legacy_features_unittest;
  10. message TestEditionsMessage {
  11. int32 required_field = 1 [features.field_presence = LEGACY_REQUIRED];
  12. TestEditionsMessage delimited_field = 2
  13. [features.message_encoding = DELIMITED];
  14. }