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