• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/unittest_import_proto3.proto
3 #pragma warning disable 1591, 0612, 3021
4 #region Designer generated code
5 
6 using pb = global::Google.Protobuf;
7 using pbc = global::Google.Protobuf.Collections;
8 using pbr = global::Google.Protobuf.Reflection;
9 using scg = global::System.Collections.Generic;
10 namespace Google.Protobuf.TestProtos {
11 
12   /// <summary>Holder for reflection information generated from google/protobuf/unittest_import_proto3.proto</summary>
13   public static partial class UnittestImportProto3Reflection {
14 
15     #region Descriptor
16     /// <summary>File descriptor for google/protobuf/unittest_import_proto3.proto</summary>
17     public static pbr::FileDescriptor Descriptor {
18       get { return descriptor; }
19     }
20     private static pbr::FileDescriptor descriptor;
21 
UnittestImportProto3Reflection()22     static UnittestImportProto3Reflection() {
23       byte[] descriptorData = global::System.Convert.FromBase64String(
24           string.Concat(
25             "Cixnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3Byb3RvMy5wcm90",
26             "bxIYcHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0GjNnb29nbGUvcHJvdG9idWYv",
27             "dW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90bzMucHJvdG8iGgoNSW1wb3J0",
28             "TWVzc2FnZRIJCgFkGAEgASgFKlkKCkltcG9ydEVudW0SGwoXSU1QT1JUX0VO",
29             "VU1fVU5TUEVDSUZJRUQQABIOCgpJTVBPUlRfRk9PEAcSDgoKSU1QT1JUX0JB",
30             "UhAIEg4KCklNUE9SVF9CQVoQCUI8Chhjb20uZ29vZ2xlLnByb3RvYnVmLnRl",
31             "c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv",
32             "Mw=="));
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), }, new pbr::GeneratedClrTypeInfo[] {
36             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.ImportMessage), global::Google.Protobuf.TestProtos.ImportMessage.Parser, new[]{ "D" }, 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     private static readonly pb::MessageParser<ImportMessage> _parser = new pb::MessageParser<ImportMessage>(() => new ImportMessage());
55     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
56     public static pb::MessageParser<ImportMessage> Parser { get { return _parser; } }
57 
58     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
59     public static pbr::MessageDescriptor Descriptor {
60       get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor.MessageTypes[0]; }
61     }
62 
63     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
64     pbr::MessageDescriptor pb::IMessage.Descriptor {
65       get { return Descriptor; }
66     }
67 
68     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ImportMessage()69     public ImportMessage() {
70       OnConstruction();
71     }
72 
OnConstruction()73     partial void OnConstruction();
74 
75     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ImportMessage(ImportMessage other)76     public ImportMessage(ImportMessage other) : this() {
77       d_ = other.d_;
78     }
79 
80     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()81     public ImportMessage Clone() {
82       return new ImportMessage(this);
83     }
84 
85     /// <summary>Field number for the "d" field.</summary>
86     public const int DFieldNumber = 1;
87     private int d_;
88     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
89     public int D {
90       get { return d_; }
91       set {
92         d_ = value;
93       }
94     }
95 
96     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)97     public override bool Equals(object other) {
98       return Equals(other as ImportMessage);
99     }
100 
101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ImportMessage other)102     public bool Equals(ImportMessage other) {
103       if (ReferenceEquals(other, null)) {
104         return false;
105       }
106       if (ReferenceEquals(other, this)) {
107         return true;
108       }
109       if (D != other.D) return false;
110       return true;
111     }
112 
113     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()114     public override int GetHashCode() {
115       int hash = 1;
116       if (D != 0) hash ^= D.GetHashCode();
117       return hash;
118     }
119 
120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()121     public override string ToString() {
122       return pb::JsonFormatter.ToDiagnosticString(this);
123     }
124 
125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)126     public void WriteTo(pb::CodedOutputStream output) {
127       if (D != 0) {
128         output.WriteRawTag(8);
129         output.WriteInt32(D);
130       }
131     }
132 
133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()134     public int CalculateSize() {
135       int size = 0;
136       if (D != 0) {
137         size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
138       }
139       return size;
140     }
141 
142     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ImportMessage other)143     public void MergeFrom(ImportMessage other) {
144       if (other == null) {
145         return;
146       }
147       if (other.D != 0) {
148         D = other.D;
149       }
150     }
151 
152     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)153     public void MergeFrom(pb::CodedInputStream input) {
154       uint tag;
155       while ((tag = input.ReadTag()) != 0) {
156         switch(tag) {
157           default:
158             input.SkipLastField();
159             break;
160           case 8: {
161             D = input.ReadInt32();
162             break;
163           }
164         }
165       }
166     }
167 
168   }
169 
170   #endregion
171 
172 }
173 
174 #endregion Designer generated code
175