• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: google/protobuf/source_context.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021, 8981
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.Protobuf.WellKnownTypes {
13 
14   /// <summary>Holder for reflection information generated from google/protobuf/source_context.proto</summary>
15   public static partial class SourceContextReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for google/protobuf/source_context.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
SourceContextReflection()24     static SourceContextReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds",
28             "ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo",
29             "CUKKAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3Rv",
30             "UAFaNmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3Nv",
31             "dXJjZWNvbnRleHRwYqICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25v",
32             "d25UeXBlc2IGcHJvdG8z"));
33       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
34           new pbr::FileDescriptor[] { },
35           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
36             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SourceContext), global::Google.Protobuf.WellKnownTypes.SourceContext.Parser, new[]{ "FileName" }, null, null, null, null)
37           }));
38     }
39     #endregion
40 
41   }
42   #region Messages
43   /// <summary>
44   /// `SourceContext` represents information about the source of a
45   /// protobuf element, like the file in which it is defined.
46   /// </summary>
47   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
48   public sealed partial class SourceContext : pb::IMessage<SourceContext>
49   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
50       , pb::IBufferMessage
51   #endif
52   {
53     private static readonly pb::MessageParser<SourceContext> _parser = new pb::MessageParser<SourceContext>(() => new SourceContext());
54     private pb::UnknownFieldSet _unknownFields;
55     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
56     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
57     public static pb::MessageParser<SourceContext> Parser { get { return _parser; } }
58 
59     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
60     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
61     public static pbr::MessageDescriptor Descriptor {
62       get { return global::Google.Protobuf.WellKnownTypes.SourceContextReflection.Descriptor.MessageTypes[0]; }
63     }
64 
65     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
66     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
67     pbr::MessageDescriptor pb::IMessage.Descriptor {
68       get { return Descriptor; }
69     }
70 
71     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
72     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SourceContext()73     public SourceContext() {
74       OnConstruction();
75     }
76 
OnConstruction()77     partial void OnConstruction();
78 
79     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
80     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SourceContext(SourceContext other)81     public SourceContext(SourceContext other) : this() {
82       fileName_ = other.fileName_;
83       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
84     }
85 
86     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
87     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()88     public SourceContext Clone() {
89       return new SourceContext(this);
90     }
91 
92     /// <summary>Field number for the "file_name" field.</summary>
93     public const int FileNameFieldNumber = 1;
94     private string fileName_ = "";
95     /// <summary>
96     /// The path-qualified name of the .proto file that contained the associated
97     /// protobuf element.  For example: `"google/protobuf/source_context.proto"`.
98     /// </summary>
99     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
100     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
101     public string FileName {
102       get { return fileName_; }
103       set {
104         fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
105       }
106     }
107 
108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
109     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)110     public override bool Equals(object other) {
111       return Equals(other as SourceContext);
112     }
113 
114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
115     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(SourceContext other)116     public bool Equals(SourceContext other) {
117       if (ReferenceEquals(other, null)) {
118         return false;
119       }
120       if (ReferenceEquals(other, this)) {
121         return true;
122       }
123       if (FileName != other.FileName) return false;
124       return Equals(_unknownFields, other._unknownFields);
125     }
126 
127     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
128     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()129     public override int GetHashCode() {
130       int hash = 1;
131       if (FileName.Length != 0) hash ^= FileName.GetHashCode();
132       if (_unknownFields != null) {
133         hash ^= _unknownFields.GetHashCode();
134       }
135       return hash;
136     }
137 
138     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
139     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()140     public override string ToString() {
141       return pb::JsonFormatter.ToDiagnosticString(this);
142     }
143 
144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
145     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)146     public void WriteTo(pb::CodedOutputStream output) {
147     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
148       output.WriteRawMessage(this);
149     #else
150       if (FileName.Length != 0) {
151         output.WriteRawTag(10);
152         output.WriteString(FileName);
153       }
154       if (_unknownFields != null) {
155         _unknownFields.WriteTo(output);
156       }
157     #endif
158     }
159 
160     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
162     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)163     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
164       if (FileName.Length != 0) {
165         output.WriteRawTag(10);
166         output.WriteString(FileName);
167       }
168       if (_unknownFields != null) {
169         _unknownFields.WriteTo(ref output);
170       }
171     }
172     #endif
173 
174     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
175     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()176     public int CalculateSize() {
177       int size = 0;
178       if (FileName.Length != 0) {
179         size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName);
180       }
181       if (_unknownFields != null) {
182         size += _unknownFields.CalculateSize();
183       }
184       return size;
185     }
186 
187     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
188     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(SourceContext other)189     public void MergeFrom(SourceContext other) {
190       if (other == null) {
191         return;
192       }
193       if (other.FileName.Length != 0) {
194         FileName = other.FileName;
195       }
196       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
197     }
198 
199     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
200     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)201     public void MergeFrom(pb::CodedInputStream input) {
202     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
203       input.ReadRawMessage(this);
204     #else
205       uint tag;
206       while ((tag = input.ReadTag()) != 0) {
207       if ((tag & 7) == 4) {
208         // Abort on any end group tag.
209         return;
210       }
211       switch(tag) {
212           default:
213             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
214             break;
215           case 10: {
216             FileName = input.ReadString();
217             break;
218           }
219         }
220       }
221     #endif
222     }
223 
224     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
225     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
226     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)227     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
228       uint tag;
229       while ((tag = input.ReadTag()) != 0) {
230       if ((tag & 7) == 4) {
231         // Abort on any end group tag.
232         return;
233       }
234       switch(tag) {
235           default:
236             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
237             break;
238           case 10: {
239             FileName = input.ReadString();
240             break;
241           }
242         }
243       }
244     }
245     #endif
246 
247   }
248 
249   #endregion
250 
251 }
252 
253 #endregion Designer generated code
254