1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: unittest_issue6936_c.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_c.proto</summary>
15   public static partial class UnittestIssue6936CReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for unittest_issue6936_c.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
UnittestIssue6936CReflection()24     static UnittestIssue6936CReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Chp1bml0dGVzdF9pc3N1ZTY5MzZfYy5wcm90bxIPdW5pdHRlc3RfaXNzdWVz",
28             "Ghp1bml0dGVzdF9pc3N1ZTY5MzZfYS5wcm90bxoadW5pdHRlc3RfaXNzdWU2",
29             "OTM2X2IucHJvdG8iMQoDQmFyEiEKA2ZvbxgBIAEoCzIULnVuaXR0ZXN0X2lz",
30             "c3Vlcy5Gb286B4K1GANiYXJCHaoCGlVuaXRUZXN0Lklzc3Vlcy5UZXN0UHJv",
31             "dG9zYgZwcm90bzM="));
32       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
33           new pbr::FileDescriptor[] { global::UnitTest.Issues.TestProtos.UnittestIssue6936AReflection.Descriptor, global::UnitTest.Issues.TestProtos.UnittestIssue6936BReflection.Descriptor, },
34           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
35             new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Bar), global::UnitTest.Issues.TestProtos.Bar.Parser, new[]{ "Foo" }, null, null, null, null)
36           }));
37     }
38     #endregion
39 
40   }
41   #region Messages
42   public sealed partial class Bar : pb::IMessage<Bar>
43   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
44       , pb::IBufferMessage
45   #endif
46   {
47     private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar());
48     private pb::UnknownFieldSet _unknownFields;
49     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
50     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
51     public static pb::MessageParser<Bar> 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.UnittestIssue6936CReflection.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)]
Bar()67     public Bar() {
68       OnConstruction();
69     }
70 
OnConstruction()71     partial void OnConstruction();
72 
73     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
74     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Bar(Bar other)75     public Bar(Bar other) : this() {
76       foo_ = other.foo_ != null ? other.foo_.Clone() : null;
77       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
78     }
79 
80     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
81     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()82     public Bar Clone() {
83       return new Bar(this);
84     }
85 
86     /// <summary>Field number for the "foo" field.</summary>
87     public const int FooFieldNumber = 1;
88     private global::UnitTest.Issues.TestProtos.Foo foo_;
89     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
90     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
91     public global::UnitTest.Issues.TestProtos.Foo Foo {
92       get { return foo_; }
93       set {
94         foo_ = value;
95       }
96     }
97 
98     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
99     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)100     public override bool Equals(object other) {
101       return Equals(other as Bar);
102     }
103 
104     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
105     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Bar other)106     public bool Equals(Bar other) {
107       if (ReferenceEquals(other, null)) {
108         return false;
109       }
110       if (ReferenceEquals(other, this)) {
111         return true;
112       }
113       if (!object.Equals(Foo, other.Foo)) return false;
114       return Equals(_unknownFields, other._unknownFields);
115     }
116 
117     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
118     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()119     public override int GetHashCode() {
120       int hash = 1;
121       if (foo_ != null) hash ^= Foo.GetHashCode();
122       if (_unknownFields != null) {
123         hash ^= _unknownFields.GetHashCode();
124       }
125       return hash;
126     }
127 
128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()130     public override string ToString() {
131       return pb::JsonFormatter.ToDiagnosticString(this);
132     }
133 
134     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
135     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)136     public void WriteTo(pb::CodedOutputStream output) {
137     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
138       output.WriteRawMessage(this);
139     #else
140       if (foo_ != null) {
141         output.WriteRawTag(10);
142         output.WriteMessage(Foo);
143       }
144       if (_unknownFields != null) {
145         _unknownFields.WriteTo(output);
146       }
147     #endif
148     }
149 
150     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
151     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
152     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)153     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
154       if (foo_ != null) {
155         output.WriteRawTag(10);
156         output.WriteMessage(Foo);
157       }
158       if (_unknownFields != null) {
159         _unknownFields.WriteTo(ref output);
160       }
161     }
162     #endif
163 
164     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
165     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()166     public int CalculateSize() {
167       int size = 0;
168       if (foo_ != null) {
169         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Foo);
170       }
171       if (_unknownFields != null) {
172         size += _unknownFields.CalculateSize();
173       }
174       return size;
175     }
176 
177     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
178     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Bar other)179     public void MergeFrom(Bar other) {
180       if (other == null) {
181         return;
182       }
183       if (other.foo_ != null) {
184         if (foo_ == null) {
185           Foo = new global::UnitTest.Issues.TestProtos.Foo();
186         }
187         Foo.MergeFrom(other.Foo);
188       }
189       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
190     }
191 
192     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
193     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)194     public void MergeFrom(pb::CodedInputStream input) {
195     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
196       input.ReadRawMessage(this);
197     #else
198       uint tag;
199       while ((tag = input.ReadTag()) != 0) {
200         switch(tag) {
201           default:
202             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
203             break;
204           case 10: {
205             if (foo_ == null) {
206               Foo = new global::UnitTest.Issues.TestProtos.Foo();
207             }
208             input.ReadMessage(Foo);
209             break;
210           }
211         }
212       }
213     #endif
214     }
215 
216     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
217     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
218     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)219     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
220       uint tag;
221       while ((tag = input.ReadTag()) != 0) {
222         switch(tag) {
223           default:
224             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
225             break;
226           case 10: {
227             if (foo_ == null) {
228               Foo = new global::UnitTest.Issues.TestProtos.Foo();
229             }
230             input.ReadMessage(Foo);
231             break;
232           }
233         }
234       }
235     }
236     #endif
237 
238   }
239 
240   #endregion
241 
242 }
243 
244 #endregion Designer generated code
245