unittest_lite_imports_nonlite.proto 706 B

12345678910111213141516171819202122232425
  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. // Author: kenton@google.com (Kenton Varda)
  8. //
  9. // Tests that a "lite" message can import a regular message.
  10. syntax = "proto2";
  11. package protobuf_unittest;
  12. import "google/protobuf/unittest.proto";
  13. option optimize_for = LITE_RUNTIME;
  14. message TestLiteImportsNonlite {
  15. optional TestAllTypes message = 1;
  16. // Verifies that transitive required fields generates valid code.
  17. optional TestRequired message_with_required = 2;
  18. }