• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc.  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
8// Author: Darick Tong (darick@google.com)
9//
10// A proto file with extensions.
11
12// LINT: LEGACY_NAMES
13
14edition = "2023";
15
16package protobuf_unittest;
17
18option features.utf8_validation = NONE;
19
20message MessageToBeExtended {
21  extensions 1 to max;
22}
23
24message MyNonNestedExtension {}
25
26extend MessageToBeExtended {
27  MyNonNestedExtension nonNestedExtension = 1;
28  string if = 2000;
29}
30