• 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
12import "google/protobuf/descriptor.proto";
13
14extend google.protobuf.MessageOptions {
15  optional string my_option = 51235;
16}
17
18message MyMessage3 {
19  option (my_option) = "Hello world!";
20}
21
22message TestMessage3 {
23  optional int32 i32 = 1;
24  repeated int32 r_i32 = 2;
25  optional string str = 3;
26  repeated string r_str = 4;
27  optional TestMessage3 msg = 5;
28  repeated TestMessage3 r_msg = 6;
29}
30
31// See the InitialFieldOneOf test in test_mini_table_oneof.cc.
32message TestOneOfInitialField {
33  oneof oneof_field {
34    int32 a = 1;
35    uint32 b = 2;
36  }
37
38  float c = 3;
39}
40