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