unittest_string_view.proto 673 B

123456789101112131415161718192021222324252627282930
  1. edition = "2023";
  2. package protobuf_unittest;
  3. import "google/protobuf/cpp_features.proto";
  4. option java_multiple_files = true;
  5. option optimize_for = SPEED;
  6. option features.(pb.cpp).string_type = VIEW;
  7. // NEXT_TAG = 5;
  8. message TestStringView {
  9. string singular_string = 1;
  10. bytes singular_bytes = 2;
  11. repeated string repeated_string = 3;
  12. repeated bytes repeated_bytes = 4;
  13. }
  14. message TestStringViewExtension {
  15. extensions 1 to max;
  16. }
  17. extend TestStringViewExtension {
  18. string singular_string_view_extension = 1;
  19. bytes singular_bytes_view_extension = 2;
  20. repeated string repeated_string_view_extension = 3;
  21. repeated bytes repeated_bytes_view_extension = 4;
  22. }