• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1edition = "2023";
2
3package protobuf_unittest;
4
5import "google/protobuf/cpp_features.proto";
6
7option java_multiple_files = true;
8option optimize_for = SPEED;
9option features.(pb.cpp).string_type = VIEW;
10
11// NEXT_TAG = 5;
12message TestStringView {
13  string singular_string = 1;
14  bytes singular_bytes = 2;
15
16  repeated string repeated_string = 3;
17  repeated bytes repeated_bytes = 4;
18}
19
20message TestStringViewExtension {
21  extensions 1 to max;
22}
23
24extend TestStringViewExtension {
25  string singular_string_view_extension = 1;
26  bytes singular_bytes_view_extension = 2;
27
28  repeated string repeated_string_view_extension = 3;
29  repeated bytes repeated_bytes_view_extension = 4;
30}
31