• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #region Copyright notice and license
2 // Protocol Buffers - Google's data interchange format
3 // Copyright 2008 Google Inc.  All rights reserved.
4 // https://developers.google.com/protocol-buffers/
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are
8 // met:
9 //
10 //     * Redistributions of source code must retain the above copyright
11 // notice, this list of conditions and the following disclaimer.
12 //     * Redistributions in binary form must reproduce the above
13 // copyright notice, this list of conditions and the following disclaimer
14 // in the documentation and/or other materials provided with the
15 // distribution.
16 //     * Neither the name of Google Inc. nor the names of its
17 // contributors may be used to endorse or promote products derived from
18 // this software without specific prior written permission.
19 //
20 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #endregion
32 
33 namespace Google.Protobuf.Reflection
34 {
35     /// <summary>
36     /// Enumeration of all the possible field types.
37     /// </summary>
38     public enum FieldType
39     {
40         /// <summary>
41         /// The <c>double</c> field type.
42         /// </summary>
43         Double,
44         /// <summary>
45         /// The <c>float</c> field type.
46         /// </summary>
47         Float,
48         /// <summary>
49         /// The <c>int64</c> field type.
50         /// </summary>
51         Int64,
52         /// <summary>
53         /// The <c>uint64</c> field type.
54         /// </summary>
55         UInt64,
56         /// <summary>
57         /// The <c>int32</c> field type.
58         /// </summary>
59         Int32,
60         /// <summary>
61         /// The <c>fixed64</c> field type.
62         /// </summary>
63         Fixed64,
64         /// <summary>
65         /// The <c>fixed32</c> field type.
66         /// </summary>
67         Fixed32,
68         /// <summary>
69         /// The <c>bool</c> field type.
70         /// </summary>
71         Bool,
72         /// <summary>
73         /// The <c>string</c> field type.
74         /// </summary>
75         String,
76         /// <summary>
77         /// The field type used for groups (not supported in this implementation).
78         /// </summary>
79         Group,
80         /// <summary>
81         /// The field type used for message fields.
82         /// </summary>
83         Message,
84         /// <summary>
85         /// The <c>bytes</c> field type.
86         /// </summary>
87         Bytes,
88         /// <summary>
89         /// The <c>uint32</c> field type.
90         /// </summary>
91         UInt32,
92         /// <summary>
93         /// The <c>sfixed32</c> field type.
94         /// </summary>
95         SFixed32,
96         /// <summary>
97         /// The <c>sfixed64</c> field type.
98         /// </summary>
99         SFixed64,
100         /// <summary>
101         /// The <c>sint32</c> field type.
102         /// </summary>
103         SInt32,
104         /// <summary>
105         /// The <c>sint64</c> field type.
106         /// </summary>
107         SInt64,
108         /// <summary>
109         /// The field type used for enum fields.
110         /// </summary>
111         Enum
112     }
113 }