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, 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 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 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 49 public static pb::MessageParser<Foo> Parser { get { return _parser; } } 50 51 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 52 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 53 public static pbr::MessageDescriptor Descriptor { 54 get { return global::UnitTest.Issues.TestProtos.UnittestIssue6936BReflection.Descriptor.MessageTypes[0]; } 55 } 56 57 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 58 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 59 pbr::MessageDescriptor pb::IMessage.Descriptor { 60 get { return Descriptor; } 61 } 62 63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 64 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Foo()65 public Foo() { 66 OnConstruction(); 67 } 68 OnConstruction()69 partial void OnConstruction(); 70 71 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 72 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Foo(Foo other)73 public Foo(Foo other) : this() { 74 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 75 } 76 77 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 78 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()79 public Foo Clone() { 80 return new Foo(this); 81 } 82 83 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 84 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)85 public override bool Equals(object other) { 86 return Equals(other as Foo); 87 } 88 89 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 90 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Foo other)91 public bool Equals(Foo other) { 92 if (ReferenceEquals(other, null)) { 93 return false; 94 } 95 if (ReferenceEquals(other, this)) { 96 return true; 97 } 98 return Equals(_unknownFields, other._unknownFields); 99 } 100 101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()103 public override int GetHashCode() { 104 int hash = 1; 105 if (_unknownFields != null) { 106 hash ^= _unknownFields.GetHashCode(); 107 } 108 return hash; 109 } 110 111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()113 public override string ToString() { 114 return pb::JsonFormatter.ToDiagnosticString(this); 115 } 116 117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)119 public void WriteTo(pb::CodedOutputStream output) { 120 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 121 output.WriteRawMessage(this); 122 #else 123 if (_unknownFields != null) { 124 _unknownFields.WriteTo(output); 125 } 126 #endif 127 } 128 129 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)132 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 133 if (_unknownFields != null) { 134 _unknownFields.WriteTo(ref output); 135 } 136 } 137 #endif 138 139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()141 public int CalculateSize() { 142 int size = 0; 143 if (_unknownFields != null) { 144 size += _unknownFields.CalculateSize(); 145 } 146 return size; 147 } 148 149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Foo other)151 public void MergeFrom(Foo other) { 152 if (other == null) { 153 return; 154 } 155 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 156 } 157 158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)160 public void MergeFrom(pb::CodedInputStream input) { 161 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 162 input.ReadRawMessage(this); 163 #else 164 uint tag; 165 while ((tag = input.ReadTag()) != 0) { 166 switch(tag) { 167 default: 168 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 169 break; 170 } 171 } 172 #endif 173 } 174 175 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)178 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 179 uint tag; 180 while ((tag = input.ReadTag()) != 0) { 181 switch(tag) { 182 default: 183 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 184 break; 185 } 186 } 187 } 188 #endif 189 190 } 191 192 #endregion 193 194 } 195 196 #endregion Designer generated code 197