| // Protocol Buffers - Google's data interchange format |
| // Copyright 2008 Google Inc. All rights reserved. |
| // |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file or at |
| // https://developers.google.com/open-source/licenses/bsd |
| |
| // Author: Jacob Butcher (jbaum@google.com) |
| // |
| // Test file option java_string_check_utf8. |
| edition = "2023"; |
| |
| package proto2_test_check_utf8; |
| |
| import "google/protobuf/java_features.proto"; |
| |
| option features.utf8_validation = NONE; |
| option features.(pb.java).utf8_validation = VERIFY; |
| option java_outer_classname = "TestCheckUtf8"; |
| |
| message StringWrapper { |
| string req = 1 [features.field_presence = LEGACY_REQUIRED]; |
| |
| string opt = 2; |
| repeated string rep = 3; |
| } |
| |
| message BytesWrapper { |
| bytes req = 1 [features.field_presence = LEGACY_REQUIRED]; |
| |
| bytes opt = 2; |
| repeated bytes rep = 3; |
| } |