• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2020 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5syntax = "proto2";
6
7package testretention;
8
9import "google/protobuf/descriptor.proto";
10
11option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention";
12
13// Retention attributes set on fields nested within a message
14message OptionsMessage {
15  optional int32 plain_field = 1;
16  optional int32 runtime_retention_field = 2 [retention = RETENTION_RUNTIME];
17  optional int32 source_retention_field = 3 [retention = RETENTION_SOURCE];
18}
19
20extend google.protobuf.FileOptions {
21  optional int32 imported_plain_option = 511807920;
22  optional int32 imported_runtime_retention_option = 512484074
23      [retention = RETENTION_RUNTIME];
24  optional int32 imported_source_retention_option = 512645287
25      [retention = RETENTION_SOURCE];
26}
27
28extend google.protobuf.FileOptions {
29  optional OptionsMessage file_option = 504871168;
30}