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