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