1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: unittest_issue6936_b.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 UnitTest.Issues.TestProtos { 13 14 /// <summary>Holder for reflection information generated from unittest_issue6936_b.proto</summary> 15 public static partial class UnittestIssue6936BReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for unittest_issue6936_b.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 UnittestIssue6936BReflection()24 static UnittestIssue6936BReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "Chp1bml0dGVzdF9pc3N1ZTY5MzZfYi5wcm90bxIPdW5pdHRlc3RfaXNzdWVz", 28 "Ghp1bml0dGVzdF9pc3N1ZTY5MzZfYS5wcm90byIOCgNGb286B4K1GANmb29C", 29 "HaoCGlVuaXRUZXN0Lklzc3Vlcy5UZXN0UHJvdG9zYgZwcm90bzM=")); 30 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 31 new pbr::FileDescriptor[] { global::UnitTest.Issues.TestProtos.UnittestIssue6936AReflection.Descriptor, }, 32 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { 33 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Foo), global::UnitTest.Issues.TestProtos.Foo.Parser, null, null, null, null, null) 34 })); 35 } 36 #endregion 37 38 } 39 #region Messages 40 public sealed partial class Foo : pb::IMessage<Foo> 41 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 42 , pb::IBufferMessage 43 #endif 44 { 45 private static readonly pb::MessageParser<Foo> _parser = new pb::MessageParser<Foo>(() => new Foo()); 46 private pb::UnknownFieldSet _unknownFields; 47 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 48 public static pb::MessageParser<Foo> Parser { get { return _parser; } } 49 50 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 51 public static pbr::MessageDescriptor Descriptor { 52 get { return global::UnitTest.Issues.TestProtos.UnittestIssue6936BReflection.Descriptor.MessageTypes[0]; } 53 } 54 55 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 56 pbr::MessageDescriptor pb::IMessage.Descriptor { 57 get { return Descriptor; } 58 } 59 60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Foo()61 public Foo() { 62 OnConstruction(); 63 } 64 OnConstruction()65 partial void OnConstruction(); 66 67 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Foo(Foo other)68 public Foo(Foo other) : this() { 69 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 70 } 71 72 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()73 public Foo Clone() { 74 return new Foo(this); 75 } 76 77 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)78 public override bool Equals(object other) { 79 return Equals(other as Foo); 80 } 81 82 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Foo other)83 public bool Equals(Foo other) { 84 if (ReferenceEquals(other, null)) { 85 return false; 86 } 87 if (ReferenceEquals(other, this)) { 88 return true; 89 } 90 return Equals(_unknownFields, other._unknownFields); 91 } 92 93 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()94 public override int GetHashCode() { 95 int hash = 1; 96 if (_unknownFields != null) { 97 hash ^= _unknownFields.GetHashCode(); 98 } 99 return hash; 100 } 101 102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()103 public override string ToString() { 104 return pb::JsonFormatter.ToDiagnosticString(this); 105 } 106 107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)108 public void WriteTo(pb::CodedOutputStream output) { 109 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 110 output.WriteRawMessage(this); 111 #else 112 if (_unknownFields != null) { 113 _unknownFields.WriteTo(output); 114 } 115 #endif 116 } 117 118 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)120 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 121 if (_unknownFields != null) { 122 _unknownFields.WriteTo(ref output); 123 } 124 } 125 #endif 126 127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()128 public int CalculateSize() { 129 int size = 0; 130 if (_unknownFields != null) { 131 size += _unknownFields.CalculateSize(); 132 } 133 return size; 134 } 135 136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Foo other)137 public void MergeFrom(Foo other) { 138 if (other == null) { 139 return; 140 } 141 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 142 } 143 144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)145 public void MergeFrom(pb::CodedInputStream input) { 146 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 147 input.ReadRawMessage(this); 148 #else 149 uint tag; 150 while ((tag = input.ReadTag()) != 0) { 151 switch(tag) { 152 default: 153 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 154 break; 155 } 156 } 157 #endif 158 } 159 160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)162 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 163 uint tag; 164 while ((tag = input.ReadTag()) != 0) { 165 switch(tag) { 166 default: 167 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 168 break; 169 } 170 } 171 } 172 #endif 173 174 } 175 176 #endregion 177 178 } 179 180 #endregion Designer generated code 181