OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/source_context.proto | 2 // source: google/protobuf/source_context.proto |
3 #pragma warning disable 1591, 0612, 3021 | 3 #pragma warning disable 1591, 0612, 3021 |
4 #region Designer generated code | 4 #region Designer generated code |
5 | 5 |
6 using pb = global::Google.Protobuf; | 6 using pb = global::Google.Protobuf; |
7 using pbc = global::Google.Protobuf.Collections; | 7 using pbc = global::Google.Protobuf.Collections; |
8 using pbr = global::Google.Protobuf.Reflection; | 8 using pbr = global::Google.Protobuf.Reflection; |
9 using scg = global::System.Collections.Generic; | 9 using scg = global::System.Collections.Generic; |
10 namespace Google.Protobuf.WellKnownTypes { | 10 namespace Google.Protobuf.WellKnownTypes { |
11 | 11 |
12 /// <summary>Holder for reflection information generated from google/protobuf/
source_context.proto</summary> | 12 /// <summary>Holder for reflection information generated from google/protobuf/
source_context.proto</summary> |
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
14 public static partial class SourceContextReflection { | 13 public static partial class SourceContextReflection { |
15 | 14 |
16 #region Descriptor | 15 #region Descriptor |
17 /// <summary>File descriptor for google/protobuf/source_context.proto</summa
ry> | 16 /// <summary>File descriptor for google/protobuf/source_context.proto</summa
ry> |
18 public static pbr::FileDescriptor Descriptor { | 17 public static pbr::FileDescriptor Descriptor { |
19 get { return descriptor; } | 18 get { return descriptor; } |
20 } | 19 } |
21 private static pbr::FileDescriptor descriptor; | 20 private static pbr::FileDescriptor descriptor; |
22 | 21 |
23 static SourceContextReflection() { | 22 static SourceContextReflection() { |
24 byte[] descriptorData = global::System.Convert.FromBase64String( | 23 byte[] descriptorData = global::System.Convert.FromBase64String( |
25 string.Concat( | 24 string.Concat( |
26 "CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds", | 25 "CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds", |
27 "ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo", | 26 "ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo", |
28 "CUJVChNjb20uZ29vZ2xlLnByb3RvYnVmQhJTb3VyY2VDb250ZXh0UHJvdG9Q", | 27 "CUKVAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3Rv", |
29 "AaABAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", | 28 "UAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL3Byb3RvYnVmL3NvdXJj", |
30 "cHJvdG8z")); | 29 "ZV9jb250ZXh0O3NvdXJjZV9jb250ZXh0ogIDR1BCqgIeR29vZ2xlLlByb3Rv", |
| 30 "YnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM=")); |
31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | 31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
32 new pbr::FileDescriptor[] { }, | 32 new pbr::FileDescriptor[] { }, |
33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { | 33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.SourceContext), global::Google.Protobuf.WellKnownTypes.SourceContext.Par
ser, new[]{ "FileName" }, null, null, null) | 34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.SourceContext), global::Google.Protobuf.WellKnownTypes.SourceContext.Par
ser, new[]{ "FileName" }, null, null, null) |
35 })); | 35 })); |
36 } | 36 } |
37 #endregion | 37 #endregion |
38 | 38 |
39 } | 39 } |
40 #region Messages | 40 #region Messages |
41 /// <summary> | 41 /// <summary> |
42 /// `SourceContext` represents information about the source of a | 42 /// `SourceContext` represents information about the source of a |
43 /// protobuf element, like the file in which it is defined. | 43 /// protobuf element, like the file in which it is defined. |
44 /// </summary> | 44 /// </summary> |
45 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
46 public sealed partial class SourceContext : pb::IMessage<SourceContext> { | 45 public sealed partial class SourceContext : pb::IMessage<SourceContext> { |
47 private static readonly pb::MessageParser<SourceContext> _parser = new pb::M
essageParser<SourceContext>(() => new SourceContext()); | 46 private static readonly pb::MessageParser<SourceContext> _parser = new pb::M
essageParser<SourceContext>(() => new SourceContext()); |
| 47 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
48 public static pb::MessageParser<SourceContext> Parser { get { return _parser
; } } | 48 public static pb::MessageParser<SourceContext> Parser { get { return _parser
; } } |
49 | 49 |
| 50 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
50 public static pbr::MessageDescriptor Descriptor { | 51 public static pbr::MessageDescriptor Descriptor { |
51 get { return global::Google.Protobuf.WellKnownTypes.SourceContextReflectio
n.Descriptor.MessageTypes[0]; } | 52 get { return global::Google.Protobuf.WellKnownTypes.SourceContextReflectio
n.Descriptor.MessageTypes[0]; } |
52 } | 53 } |
53 | 54 |
| 55 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
54 pbr::MessageDescriptor pb::IMessage.Descriptor { | 56 pbr::MessageDescriptor pb::IMessage.Descriptor { |
55 get { return Descriptor; } | 57 get { return Descriptor; } |
56 } | 58 } |
57 | 59 |
| 60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
58 public SourceContext() { | 61 public SourceContext() { |
59 OnConstruction(); | 62 OnConstruction(); |
60 } | 63 } |
61 | 64 |
62 partial void OnConstruction(); | 65 partial void OnConstruction(); |
63 | 66 |
| 67 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
64 public SourceContext(SourceContext other) : this() { | 68 public SourceContext(SourceContext other) : this() { |
65 fileName_ = other.fileName_; | 69 fileName_ = other.fileName_; |
66 } | 70 } |
67 | 71 |
| 72 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
68 public SourceContext Clone() { | 73 public SourceContext Clone() { |
69 return new SourceContext(this); | 74 return new SourceContext(this); |
70 } | 75 } |
71 | 76 |
72 /// <summary>Field number for the "file_name" field.</summary> | 77 /// <summary>Field number for the "file_name" field.</summary> |
73 public const int FileNameFieldNumber = 1; | 78 public const int FileNameFieldNumber = 1; |
74 private string fileName_ = ""; | 79 private string fileName_ = ""; |
75 /// <summary> | 80 /// <summary> |
76 /// The path-qualified name of the .proto file that contained the associate
d | 81 /// The path-qualified name of the .proto file that contained the associated |
77 /// protobuf element. For example: `"google/protobuf/source.proto"`. | 82 /// protobuf element. For example: `"google/protobuf/source_context.proto"`
. |
78 /// </summary> | 83 /// </summary> |
| 84 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
79 public string FileName { | 85 public string FileName { |
80 get { return fileName_; } | 86 get { return fileName_; } |
81 set { | 87 set { |
82 fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 88 fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
83 } | 89 } |
84 } | 90 } |
85 | 91 |
| 92 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
86 public override bool Equals(object other) { | 93 public override bool Equals(object other) { |
87 return Equals(other as SourceContext); | 94 return Equals(other as SourceContext); |
88 } | 95 } |
89 | 96 |
| 97 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
90 public bool Equals(SourceContext other) { | 98 public bool Equals(SourceContext other) { |
91 if (ReferenceEquals(other, null)) { | 99 if (ReferenceEquals(other, null)) { |
92 return false; | 100 return false; |
93 } | 101 } |
94 if (ReferenceEquals(other, this)) { | 102 if (ReferenceEquals(other, this)) { |
95 return true; | 103 return true; |
96 } | 104 } |
97 if (FileName != other.FileName) return false; | 105 if (FileName != other.FileName) return false; |
98 return true; | 106 return true; |
99 } | 107 } |
100 | 108 |
| 109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
101 public override int GetHashCode() { | 110 public override int GetHashCode() { |
102 int hash = 1; | 111 int hash = 1; |
103 if (FileName.Length != 0) hash ^= FileName.GetHashCode(); | 112 if (FileName.Length != 0) hash ^= FileName.GetHashCode(); |
104 return hash; | 113 return hash; |
105 } | 114 } |
106 | 115 |
| 116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
107 public override string ToString() { | 117 public override string ToString() { |
108 return pb::JsonFormatter.ToDiagnosticString(this); | 118 return pb::JsonFormatter.ToDiagnosticString(this); |
109 } | 119 } |
110 | 120 |
| 121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
111 public void WriteTo(pb::CodedOutputStream output) { | 122 public void WriteTo(pb::CodedOutputStream output) { |
112 if (FileName.Length != 0) { | 123 if (FileName.Length != 0) { |
113 output.WriteRawTag(10); | 124 output.WriteRawTag(10); |
114 output.WriteString(FileName); | 125 output.WriteString(FileName); |
115 } | 126 } |
116 } | 127 } |
117 | 128 |
| 129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
118 public int CalculateSize() { | 130 public int CalculateSize() { |
119 int size = 0; | 131 int size = 0; |
120 if (FileName.Length != 0) { | 132 if (FileName.Length != 0) { |
121 size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); | 133 size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); |
122 } | 134 } |
123 return size; | 135 return size; |
124 } | 136 } |
125 | 137 |
| 138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
126 public void MergeFrom(SourceContext other) { | 139 public void MergeFrom(SourceContext other) { |
127 if (other == null) { | 140 if (other == null) { |
128 return; | 141 return; |
129 } | 142 } |
130 if (other.FileName.Length != 0) { | 143 if (other.FileName.Length != 0) { |
131 FileName = other.FileName; | 144 FileName = other.FileName; |
132 } | 145 } |
133 } | 146 } |
134 | 147 |
| 148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
135 public void MergeFrom(pb::CodedInputStream input) { | 149 public void MergeFrom(pb::CodedInputStream input) { |
136 uint tag; | 150 uint tag; |
137 while ((tag = input.ReadTag()) != 0) { | 151 while ((tag = input.ReadTag()) != 0) { |
138 switch(tag) { | 152 switch(tag) { |
139 default: | 153 default: |
140 input.SkipLastField(); | 154 input.SkipLastField(); |
141 break; | 155 break; |
142 case 10: { | 156 case 10: { |
143 FileName = input.ReadString(); | 157 FileName = input.ReadString(); |
144 break; | 158 break; |
145 } | 159 } |
146 } | 160 } |
147 } | 161 } |
148 } | 162 } |
149 | 163 |
150 } | 164 } |
151 | 165 |
152 #endregion | 166 #endregion |
153 | 167 |
154 } | 168 } |
155 | 169 |
156 #endregion Designer generated code | 170 #endregion Designer generated code |
OLD | NEW |