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