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 = "proto2"; 9 10package upb_test; 11 12import "google/protobuf/struct.proto"; 13 14enum Tag { 15 Z_NONE = 0; 16 Z_BAR = 1; 17 Z_BAZ = -2; 18 Z_BAT = 13; 19} 20 21message Box { 22 optional Tag first_tag = 1; 23 repeated Tag more_tags = 2; 24 optional Tag last_tag = 5; 25 optional string name = 4; 26 optional google.protobuf.Value val = 6; 27 optional float f = 7; 28 optional double d = 8; 29 optional int32 value = 9 [json_name = "old_value"]; 30 optional int32 new_value = 10 [json_name = "value"]; 31} 32