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