xref: /aosp_15_r20/external/golang-protobuf/internal/testprotos/annotation/annotation.proto (revision 1c12ee1efe575feb122dbf939ff15148a3b3e8f2)
1*1c12ee1eSDan Willemsen// Copyright 2019 The Go Authors. All rights reserved.
2*1c12ee1eSDan Willemsen// Use of this source code is governed by a BSD-style
3*1c12ee1eSDan Willemsen// license that can be found in the LICENSE file.
4*1c12ee1eSDan Willemsen
5*1c12ee1eSDan Willemsensyntax = "proto2";
6*1c12ee1eSDan Willemsen
7*1c12ee1eSDan Willemsenpackage go_annotation;
8*1c12ee1eSDan Willemsen
9*1c12ee1eSDan Willemsenimport "google/protobuf/descriptor.proto";
10*1c12ee1eSDan Willemsen
11*1c12ee1eSDan Willemsenoption go_package = "google.golang.org/protobuf/internal/testprotos/annotation";
12*1c12ee1eSDan Willemsen
13*1c12ee1eSDan Willemsenextend google.protobuf.MessageOptions {
14*1c12ee1eSDan Willemsen  // Setting this on a message enables tracking of which fields in the message
15*1c12ee1eSDan Willemsen  // a specific binary might access. As a consequence, it also disables the use
16*1c12ee1eSDan Willemsen  // of the message accessor methods to satisfy interfaces: they can only be
17*1c12ee1eSDan Willemsen  // called directly.
18*1c12ee1eSDan Willemsen  optional bool track_field_use = 37383685;
19*1c12ee1eSDan Willemsen}
20