1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: google/protobuf/unittest_legacy_features.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 LegacyFeaturesUnittest { 13 14 /// <summary>Holder for reflection information generated from google/protobuf/unittest_legacy_features.proto</summary> 15 public static partial class UnittestLegacyFeaturesReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for google/protobuf/unittest_legacy_features.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 UnittestLegacyFeaturesReflection()24 static UnittestLegacyFeaturesReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "Ci5nb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfbGVnYWN5X2ZlYXR1cmVzLnBy", 28 "b3RvEhhsZWdhY3lfZmVhdHVyZXNfdW5pdHRlc3QigwEKE1Rlc3RFZGl0aW9u", 29 "c01lc3NhZ2USHQoOcmVxdWlyZWRfZmllbGQYASABKAVCBaoBAggDEk0KD2Rl", 30 "bGltaXRlZF9maWVsZBgCIAEoCzItLmxlZ2FjeV9mZWF0dXJlc191bml0dGVz", 31 "dC5UZXN0RWRpdGlvbnNNZXNzYWdlQgWqAQIoAmIIZWRpdGlvbnNw6Ac=")); 32 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 33 new pbr::FileDescriptor[] { }, 34 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { 35 new pbr::GeneratedClrTypeInfo(typeof(global::LegacyFeaturesUnittest.TestEditionsMessage), global::LegacyFeaturesUnittest.TestEditionsMessage.Parser, new[]{ "RequiredField", "DelimitedField" }, null, null, null, null) 36 })); 37 } 38 #endregion 39 40 } 41 #region Messages 42 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 43 public sealed partial class TestEditionsMessage : pb::IMessage<TestEditionsMessage> 44 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 45 , pb::IBufferMessage 46 #endif 47 { 48 private static readonly pb::MessageParser<TestEditionsMessage> _parser = new pb::MessageParser<TestEditionsMessage>(() => new TestEditionsMessage()); 49 private pb::UnknownFieldSet _unknownFields; 50 private int _hasBits0; 51 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 52 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 53 public static pb::MessageParser<TestEditionsMessage> Parser { get { return _parser; } } 54 55 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 56 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 57 public static pbr::MessageDescriptor Descriptor { 58 get { return global::LegacyFeaturesUnittest.UnittestLegacyFeaturesReflection.Descriptor.MessageTypes[0]; } 59 } 60 61 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 62 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 63 pbr::MessageDescriptor pb::IMessage.Descriptor { 64 get { return Descriptor; } 65 } 66 67 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 68 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEditionsMessage()69 public TestEditionsMessage() { 70 OnConstruction(); 71 } 72 OnConstruction()73 partial void OnConstruction(); 74 75 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 76 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEditionsMessage(TestEditionsMessage other)77 public TestEditionsMessage(TestEditionsMessage other) : this() { 78 _hasBits0 = other._hasBits0; 79 requiredField_ = other.requiredField_; 80 delimitedField_ = other.HasDelimitedField ? other.delimitedField_.Clone() : null; 81 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 82 } 83 84 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 85 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()86 public TestEditionsMessage Clone() { 87 return new TestEditionsMessage(this); 88 } 89 90 /// <summary>Field number for the "required_field" field.</summary> 91 public const int RequiredFieldFieldNumber = 1; 92 private readonly static int RequiredFieldDefaultValue = 0; 93 94 private int requiredField_; 95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 96 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 97 public int RequiredField { 98 get { if ((_hasBits0 & 1) != 0) { return requiredField_; } else { return RequiredFieldDefaultValue; } } 99 set { 100 _hasBits0 |= 1; 101 requiredField_ = value; 102 } 103 } 104 /// <summary>Gets whether the "required_field" field is set</summary> 105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 107 public bool HasRequiredField { 108 get { return (_hasBits0 & 1) != 0; } 109 } 110 /// <summary>Clears the value of the "required_field" field</summary> 111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredField()113 public void ClearRequiredField() { 114 _hasBits0 &= ~1; 115 } 116 117 /// <summary>Field number for the "delimited_field" field.</summary> 118 public const int DelimitedFieldFieldNumber = 2; 119 private global::LegacyFeaturesUnittest.TestEditionsMessage delimitedField_; 120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 122 public global::LegacyFeaturesUnittest.TestEditionsMessage DelimitedField { 123 get { return delimitedField_; } 124 set { 125 delimitedField_ = value; 126 } 127 } 128 /// <summary>Gets whether the delimited_field field is set</summary> 129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 131 public bool HasDelimitedField { 132 get { return delimitedField_ != null; } 133 } 134 /// <summary>Clears the value of the delimited_field field</summary> 135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDelimitedField()137 public void ClearDelimitedField() { 138 delimitedField_ = null; 139 } 140 141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)143 public override bool Equals(object other) { 144 return Equals(other as TestEditionsMessage); 145 } 146 147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestEditionsMessage other)149 public bool Equals(TestEditionsMessage other) { 150 if (ReferenceEquals(other, null)) { 151 return false; 152 } 153 if (ReferenceEquals(other, this)) { 154 return true; 155 } 156 if (RequiredField != other.RequiredField) return false; 157 if (!object.Equals(DelimitedField, other.DelimitedField)) return false; 158 return Equals(_unknownFields, other._unknownFields); 159 } 160 161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()163 public override int GetHashCode() { 164 int hash = 1; 165 if (HasRequiredField) hash ^= RequiredField.GetHashCode(); 166 if (HasDelimitedField) hash ^= DelimitedField.GetHashCode(); 167 if (_unknownFields != null) { 168 hash ^= _unknownFields.GetHashCode(); 169 } 170 return hash; 171 } 172 173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()175 public override string ToString() { 176 return pb::JsonFormatter.ToDiagnosticString(this); 177 } 178 179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)181 public void WriteTo(pb::CodedOutputStream output) { 182 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 183 output.WriteRawMessage(this); 184 #else 185 if (HasRequiredField) { 186 output.WriteRawTag(8); 187 output.WriteInt32(RequiredField); 188 } 189 if (HasDelimitedField) { 190 output.WriteRawTag(19); 191 output.WriteGroup(DelimitedField); 192 output.WriteRawTag(20); 193 } 194 if (_unknownFields != null) { 195 _unknownFields.WriteTo(output); 196 } 197 #endif 198 } 199 200 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)203 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 204 if (HasRequiredField) { 205 output.WriteRawTag(8); 206 output.WriteInt32(RequiredField); 207 } 208 if (HasDelimitedField) { 209 output.WriteRawTag(19); 210 output.WriteGroup(DelimitedField); 211 output.WriteRawTag(20); 212 } 213 if (_unknownFields != null) { 214 _unknownFields.WriteTo(ref output); 215 } 216 } 217 #endif 218 219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()221 public int CalculateSize() { 222 int size = 0; 223 if (HasRequiredField) { 224 size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredField); 225 } 226 if (HasDelimitedField) { 227 size += 2 + pb::CodedOutputStream.ComputeGroupSize(DelimitedField); 228 } 229 if (_unknownFields != null) { 230 size += _unknownFields.CalculateSize(); 231 } 232 return size; 233 } 234 235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 236 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestEditionsMessage other)237 public void MergeFrom(TestEditionsMessage other) { 238 if (other == null) { 239 return; 240 } 241 if (other.HasRequiredField) { 242 RequiredField = other.RequiredField; 243 } 244 if (other.HasDelimitedField) { 245 if (!HasDelimitedField) { 246 DelimitedField = new global::LegacyFeaturesUnittest.TestEditionsMessage(); 247 } 248 DelimitedField.MergeFrom(other.DelimitedField); 249 } 250 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 251 } 252 253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 254 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)255 public void MergeFrom(pb::CodedInputStream input) { 256 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 257 input.ReadRawMessage(this); 258 #else 259 uint tag; 260 while ((tag = input.ReadTag()) != 0) { 261 if ((tag & 7) == 4) { 262 // Abort on any end group tag. 263 return; 264 } 265 switch(tag) { 266 default: 267 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 268 break; 269 case 8: { 270 RequiredField = input.ReadInt32(); 271 break; 272 } 273 case 19: { 274 if (!HasDelimitedField) { 275 DelimitedField = new global::LegacyFeaturesUnittest.TestEditionsMessage(); 276 } 277 input.ReadGroup(DelimitedField); 278 break; 279 } 280 } 281 } 282 #endif 283 } 284 285 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)288 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 289 uint tag; 290 while ((tag = input.ReadTag()) != 0) { 291 if ((tag & 7) == 4) { 292 // Abort on any end group tag. 293 return; 294 } 295 switch(tag) { 296 default: 297 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 298 break; 299 case 8: { 300 RequiredField = input.ReadInt32(); 301 break; 302 } 303 case 19: { 304 if (!HasDelimitedField) { 305 DelimitedField = new global::LegacyFeaturesUnittest.TestEditionsMessage(); 306 } 307 input.ReadGroup(DelimitedField); 308 break; 309 } 310 } 311 } 312 } 313 #endif 314 315 } 316 317 #endregion 318 319 } 320 321 #endregion Designer generated code 322