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