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
6#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
12namespace 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
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    public static pb::MessageParser<Bar> Parser { get { return _parser; } }
51
52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
53    public static pbr::MessageDescriptor Descriptor {
54      get { return global::UnitTest.Issues.TestProtos.UnittestIssue6936CReflection.Descriptor.MessageTypes[0]; }
55    }
56
57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
58    pbr::MessageDescriptor pb::IMessage.Descriptor {
59      get { return Descriptor; }
60    }
61
62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
63    public Bar() {
64      OnConstruction();
65    }
66
67    partial void OnConstruction();
68
69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70    public Bar(Bar other) : this() {
71      foo_ = other.foo_ != null ? other.foo_.Clone() : null;
72      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
73    }
74
75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76    public Bar Clone() {
77      return new Bar(this);
78    }
79
80    /// <summary>Field number for the "foo" field.</summary>
81    public const int FooFieldNumber = 1;
82    private global::UnitTest.Issues.TestProtos.Foo foo_;
83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
84    public global::UnitTest.Issues.TestProtos.Foo Foo {
85      get { return foo_; }
86      set {
87        foo_ = value;
88      }
89    }
90
91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92    public override bool Equals(object other) {
93      return Equals(other as Bar);
94    }
95
96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
97    public bool Equals(Bar other) {
98      if (ReferenceEquals(other, null)) {
99        return false;
100      }
101      if (ReferenceEquals(other, this)) {
102        return true;
103      }
104      if (!object.Equals(Foo, other.Foo)) return false;
105      return Equals(_unknownFields, other._unknownFields);
106    }
107
108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
109    public override int GetHashCode() {
110      int hash = 1;
111      if (foo_ != null) hash ^= Foo.GetHashCode();
112      if (_unknownFields != null) {
113        hash ^= _unknownFields.GetHashCode();
114      }
115      return hash;
116    }
117
118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
119    public override string ToString() {
120      return pb::JsonFormatter.ToDiagnosticString(this);
121    }
122
123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
124    public void WriteTo(pb::CodedOutputStream output) {
125    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
126      output.WriteRawMessage(this);
127    #else
128      if (foo_ != null) {
129        output.WriteRawTag(10);
130        output.WriteMessage(Foo);
131      }
132      if (_unknownFields != null) {
133        _unknownFields.WriteTo(output);
134      }
135    #endif
136    }
137
138    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
140    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
141      if (foo_ != null) {
142        output.WriteRawTag(10);
143        output.WriteMessage(Foo);
144      }
145      if (_unknownFields != null) {
146        _unknownFields.WriteTo(ref output);
147      }
148    }
149    #endif
150
151    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
152    public int CalculateSize() {
153      int size = 0;
154      if (foo_ != null) {
155        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Foo);
156      }
157      if (_unknownFields != null) {
158        size += _unknownFields.CalculateSize();
159      }
160      return size;
161    }
162
163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
164    public void MergeFrom(Bar other) {
165      if (other == null) {
166        return;
167      }
168      if (other.foo_ != null) {
169        if (foo_ == null) {
170          Foo = new global::UnitTest.Issues.TestProtos.Foo();
171        }
172        Foo.MergeFrom(other.Foo);
173      }
174      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
175    }
176
177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
178    public void MergeFrom(pb::CodedInputStream input) {
179    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
180      input.ReadRawMessage(this);
181    #else
182      uint tag;
183      while ((tag = input.ReadTag()) != 0) {
184        switch(tag) {
185          default:
186            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
187            break;
188          case 10: {
189            if (foo_ == null) {
190              Foo = new global::UnitTest.Issues.TestProtos.Foo();
191            }
192            input.ReadMessage(Foo);
193            break;
194          }
195        }
196      }
197    #endif
198    }
199
200    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
202    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
203      uint tag;
204      while ((tag = input.ReadTag()) != 0) {
205        switch(tag) {
206          default:
207            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
208            break;
209          case 10: {
210            if (foo_ == null) {
211              Foo = new global::UnitTest.Issues.TestProtos.Foo();
212            }
213            input.ReadMessage(Foo);
214            break;
215          }
216        }
217      }
218    }
219    #endif
220
221  }
222
223  #endregion
224
225}
226
227#endregion Designer generated code
228