• 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
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             "CUKVAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3Rv",
30             "UAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL3Byb3RvYnVmL3NvdXJj",
31             "ZV9jb250ZXh0O3NvdXJjZV9jb250ZXh0ogIDR1BCqgIeR29vZ2xlLlByb3Rv",
32             "YnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM="));
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   public sealed partial class SourceContext : pb::IMessage<SourceContext> {
48     private static readonly pb::MessageParser<SourceContext> _parser = new pb::MessageParser<SourceContext>(() => new SourceContext());
49     private pb::UnknownFieldSet _unknownFields;
50     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
51     public static pb::MessageParser<SourceContext> Parser { get { return _parser; } }
52 
53     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
54     public static pbr::MessageDescriptor Descriptor {
55       get { return global::Google.Protobuf.WellKnownTypes.SourceContextReflection.Descriptor.MessageTypes[0]; }
56     }
57 
58     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
59     pbr::MessageDescriptor pb::IMessage.Descriptor {
60       get { return Descriptor; }
61     }
62 
63     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SourceContext()64     public SourceContext() {
65       OnConstruction();
66     }
67 
OnConstruction()68     partial void OnConstruction();
69 
70     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SourceContext(SourceContext other)71     public SourceContext(SourceContext other) : this() {
72       fileName_ = other.fileName_;
73       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
74     }
75 
76     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()77     public SourceContext Clone() {
78       return new SourceContext(this);
79     }
80 
81     /// <summary>Field number for the "file_name" field.</summary>
82     public const int FileNameFieldNumber = 1;
83     private string fileName_ = "";
84     /// <summary>
85     /// The path-qualified name of the .proto file that contained the associated
86     /// protobuf element.  For example: `"google/protobuf/source_context.proto"`.
87     /// </summary>
88     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
89     public string FileName {
90       get { return fileName_; }
91       set {
92         fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
93       }
94     }
95 
96     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)97     public override bool Equals(object other) {
98       return Equals(other as SourceContext);
99     }
100 
101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(SourceContext other)102     public bool Equals(SourceContext other) {
103       if (ReferenceEquals(other, null)) {
104         return false;
105       }
106       if (ReferenceEquals(other, this)) {
107         return true;
108       }
109       if (FileName != other.FileName) return false;
110       return Equals(_unknownFields, other._unknownFields);
111     }
112 
113     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()114     public override int GetHashCode() {
115       int hash = 1;
116       if (FileName.Length != 0) hash ^= FileName.GetHashCode();
117       if (_unknownFields != null) {
118         hash ^= _unknownFields.GetHashCode();
119       }
120       return hash;
121     }
122 
123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()124     public override string ToString() {
125       return pb::JsonFormatter.ToDiagnosticString(this);
126     }
127 
128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)129     public void WriteTo(pb::CodedOutputStream output) {
130       if (FileName.Length != 0) {
131         output.WriteRawTag(10);
132         output.WriteString(FileName);
133       }
134       if (_unknownFields != null) {
135         _unknownFields.WriteTo(output);
136       }
137     }
138 
139     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()140     public int CalculateSize() {
141       int size = 0;
142       if (FileName.Length != 0) {
143         size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName);
144       }
145       if (_unknownFields != null) {
146         size += _unknownFields.CalculateSize();
147       }
148       return size;
149     }
150 
151     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(SourceContext other)152     public void MergeFrom(SourceContext other) {
153       if (other == null) {
154         return;
155       }
156       if (other.FileName.Length != 0) {
157         FileName = other.FileName;
158       }
159       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
160     }
161 
162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)163     public void MergeFrom(pb::CodedInputStream input) {
164       uint tag;
165       while ((tag = input.ReadTag()) != 0) {
166         switch(tag) {
167           default:
168             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
169             break;
170           case 10: {
171             FileName = input.ReadString();
172             break;
173           }
174         }
175       }
176     }
177 
178   }
179 
180   #endregion
181 
182 }
183 
184 #endregion Designer generated code
185