mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
This change moves almost everything in the `upb/` directory up one level, so that for example `upb/upb/generated_code_support.h` becomes just `upb/generated_code_support.h`. The only exceptions I made to this were that I left `upb/cmake` and `upb/BUILD` where they are, mostly because that avoids conflict with other files and the current locations seem reasonable for now. The `python/` directory is a little bit of a challenge because we had to merge the existing directory there with `upb/python/`. I made `upb/python/BUILD` into the BUILD file for the merged directory, and it effectively loads the contents of the other BUILD file via `python/build_targets.bzl`, but I plan to clean this up soon. PiperOrigin-RevId: 568651768
28 lines
921 B
Protocol Buffer
28 lines
921 B
Protocol Buffer
// Protocol Buffers - Google's data interchange format
|
|
// Copyright 2023 Google LLC. 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
|
|
|
|
syntax = "proto2";
|
|
|
|
package upb_util_test;
|
|
|
|
message EmptyMessage {}
|
|
|
|
message HasRequiredField {
|
|
required int32 required_int32 = 1;
|
|
}
|
|
|
|
message TestRequiredFields {
|
|
required EmptyMessage required_message = 1;
|
|
optional TestRequiredFields optional_message = 2;
|
|
repeated HasRequiredField repeated_message = 3;
|
|
map<int32, HasRequiredField> map_int32_message = 4;
|
|
map<int64, HasRequiredField> map_int64_message = 5;
|
|
map<uint32, HasRequiredField> map_uint32_message = 6;
|
|
map<uint64, HasRequiredField> map_uint64_message = 7;
|
|
map<bool, HasRequiredField> map_bool_message = 8;
|
|
map<string, HasRequiredField> map_string_message = 9;
|
|
}
|