• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2016 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
8syntax = "proto2";
9
10package objc.protobuf.tests.deprecated_file;
11option objc_class_prefix = "FileDep";
12
13//
14// This file is like unittest_deprecated.proto, but does NOT use message, enum,
15// enum value, or field level deprecation; instead it uses the file level option
16// to mark everything.
17//
18// The source generated from this file needs to be inspect to confirm it has
19// all of the expected annotations. It also will be compiled into the unittest
20// and that compile should be clean without errors.
21//
22option deprecated = true;
23
24// Message to catch the deprecation.
25message Msg1 {
26  extensions 100 to max;
27
28  optional string string_field = 1;
29}
30
31// Mix of extension field types to catch the deprecation.
32extend Msg1 {
33  optional string string_ext_field = 101;
34  optional int32 int_ext_field = 102;
35  repeated fixed32 fixed_ext_field = 103;
36  optional Msg1 msg_ext_field = 104;
37}
38
39// Mix of extension field types (scoped to a message) to catch the deprecation.
40message Msg1A {
41  extend Msg1 {
42    optional string string_ext2_field = 201;
43    optional int32 int_ext2_field = 202;
44    repeated fixed32 fixed_ext2_field = 203;
45    optional Msg1 msg_ext2_field = 204;
46  }
47}
48
49// Enum to catch the deprecation.
50enum Enum1 {
51  ENUM1_ONE   = 1;
52  ENUM1_TWO   = 2;
53  ENUM1_THREE = 3;
54}
55