• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2023 Google LLC.  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
8syntax = "proto3";
9
10package upb_test;
11
12message TestUtf8Bytes {
13  optional bytes data = 1;
14}
15
16message TestUtf8Proto3String {
17  optional string data = 1;
18}
19
20message TestUtf8RepeatedProto3String {
21  repeated string data = 1;
22}
23
24// copybara:strip_begin(enforce_utf8 option is not respected in OSS)
25message TestUtf8Proto3StringMixed {
26  optional string data = 1;
27
28  // Add other fields with different enforce_utf8 values, to ensure we can
29  // handle the mix.
30  optional string other_data = 2;
31}
32
33message TestUtf8Proto3StringEnforceUtf8False {
34  optional string data = 1;
35}
36
37message TestUtf8RepeatedProto3StringEnforceUtf8False {
38  repeated string data = 1;
39}
40
41message TestUtf8Proto3StringEnforceUtf8FalseMixed {
42  optional string data = 1;
43
44  // Add other fields with different enforce_utf8 values, to ensure we can
45  // handle the mix.
46  optional string other_data = 2;
47}
48// copybara:strip_end
49