OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/unittest_import_proto3.proto | 2 // source: google/protobuf/unittest_import_proto3.proto |
3 #pragma warning disable 1591, 0612, 3021 | 3 #pragma warning disable 1591, 0612, 3021 |
4 #region Designer generated code | 4 #region Designer generated code |
5 | 5 |
6 using pb = global::Google.Protobuf; | 6 using pb = global::Google.Protobuf; |
7 using pbc = global::Google.Protobuf.Collections; | 7 using pbc = global::Google.Protobuf.Collections; |
8 using pbr = global::Google.Protobuf.Reflection; | 8 using pbr = global::Google.Protobuf.Reflection; |
9 using scg = global::System.Collections.Generic; | 9 using scg = global::System.Collections.Generic; |
10 namespace Google.Protobuf.TestProtos { | 10 namespace Google.Protobuf.TestProtos { |
11 | 11 |
12 /// <summary>Holder for reflection information generated from google/protobuf/
unittest_import_proto3.proto</summary> | 12 /// <summary>Holder for reflection information generated from google/protobuf/
unittest_import_proto3.proto</summary> |
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
14 public static partial class UnittestImportProto3Reflection { | 13 public static partial class UnittestImportProto3Reflection { |
15 | 14 |
16 #region Descriptor | 15 #region Descriptor |
17 /// <summary>File descriptor for google/protobuf/unittest_import_proto3.prot
o</summary> | 16 /// <summary>File descriptor for google/protobuf/unittest_import_proto3.prot
o</summary> |
18 public static pbr::FileDescriptor Descriptor { | 17 public static pbr::FileDescriptor Descriptor { |
19 get { return descriptor; } | 18 get { return descriptor; } |
20 } | 19 } |
21 private static pbr::FileDescriptor descriptor; | 20 private static pbr::FileDescriptor descriptor; |
22 | 21 |
23 static UnittestImportProto3Reflection() { | 22 static UnittestImportProto3Reflection() { |
(...skipping 20 matching lines...) Expand all Loading... |
44 public enum ImportEnum { | 43 public enum ImportEnum { |
45 [pbr::OriginalName("IMPORT_ENUM_UNSPECIFIED")] Unspecified = 0, | 44 [pbr::OriginalName("IMPORT_ENUM_UNSPECIFIED")] Unspecified = 0, |
46 [pbr::OriginalName("IMPORT_FOO")] ImportFoo = 7, | 45 [pbr::OriginalName("IMPORT_FOO")] ImportFoo = 7, |
47 [pbr::OriginalName("IMPORT_BAR")] ImportBar = 8, | 46 [pbr::OriginalName("IMPORT_BAR")] ImportBar = 8, |
48 [pbr::OriginalName("IMPORT_BAZ")] ImportBaz = 9, | 47 [pbr::OriginalName("IMPORT_BAZ")] ImportBaz = 9, |
49 } | 48 } |
50 | 49 |
51 #endregion | 50 #endregion |
52 | 51 |
53 #region Messages | 52 #region Messages |
54 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
55 public sealed partial class ImportMessage : pb::IMessage<ImportMessage> { | 53 public sealed partial class ImportMessage : pb::IMessage<ImportMessage> { |
56 private static readonly pb::MessageParser<ImportMessage> _parser = new pb::M
essageParser<ImportMessage>(() => new ImportMessage()); | 54 private static readonly pb::MessageParser<ImportMessage> _parser = new pb::M
essageParser<ImportMessage>(() => new ImportMessage()); |
| 55 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
57 public static pb::MessageParser<ImportMessage> Parser { get { return _parser
; } } | 56 public static pb::MessageParser<ImportMessage> Parser { get { return _parser
; } } |
58 | 57 |
| 58 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
59 public static pbr::MessageDescriptor Descriptor { | 59 public static pbr::MessageDescriptor Descriptor { |
60 get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflec
tion.Descriptor.MessageTypes[0]; } | 60 get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflec
tion.Descriptor.MessageTypes[0]; } |
61 } | 61 } |
62 | 62 |
| 63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
63 pbr::MessageDescriptor pb::IMessage.Descriptor { | 64 pbr::MessageDescriptor pb::IMessage.Descriptor { |
64 get { return Descriptor; } | 65 get { return Descriptor; } |
65 } | 66 } |
66 | 67 |
| 68 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
67 public ImportMessage() { | 69 public ImportMessage() { |
68 OnConstruction(); | 70 OnConstruction(); |
69 } | 71 } |
70 | 72 |
71 partial void OnConstruction(); | 73 partial void OnConstruction(); |
72 | 74 |
| 75 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
73 public ImportMessage(ImportMessage other) : this() { | 76 public ImportMessage(ImportMessage other) : this() { |
74 d_ = other.d_; | 77 d_ = other.d_; |
75 } | 78 } |
76 | 79 |
| 80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
77 public ImportMessage Clone() { | 81 public ImportMessage Clone() { |
78 return new ImportMessage(this); | 82 return new ImportMessage(this); |
79 } | 83 } |
80 | 84 |
81 /// <summary>Field number for the "d" field.</summary> | 85 /// <summary>Field number for the "d" field.</summary> |
82 public const int DFieldNumber = 1; | 86 public const int DFieldNumber = 1; |
83 private int d_; | 87 private int d_; |
| 88 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
84 public int D { | 89 public int D { |
85 get { return d_; } | 90 get { return d_; } |
86 set { | 91 set { |
87 d_ = value; | 92 d_ = value; |
88 } | 93 } |
89 } | 94 } |
90 | 95 |
| 96 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
91 public override bool Equals(object other) { | 97 public override bool Equals(object other) { |
92 return Equals(other as ImportMessage); | 98 return Equals(other as ImportMessage); |
93 } | 99 } |
94 | 100 |
| 101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
95 public bool Equals(ImportMessage other) { | 102 public bool Equals(ImportMessage other) { |
96 if (ReferenceEquals(other, null)) { | 103 if (ReferenceEquals(other, null)) { |
97 return false; | 104 return false; |
98 } | 105 } |
99 if (ReferenceEquals(other, this)) { | 106 if (ReferenceEquals(other, this)) { |
100 return true; | 107 return true; |
101 } | 108 } |
102 if (D != other.D) return false; | 109 if (D != other.D) return false; |
103 return true; | 110 return true; |
104 } | 111 } |
105 | 112 |
| 113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
106 public override int GetHashCode() { | 114 public override int GetHashCode() { |
107 int hash = 1; | 115 int hash = 1; |
108 if (D != 0) hash ^= D.GetHashCode(); | 116 if (D != 0) hash ^= D.GetHashCode(); |
109 return hash; | 117 return hash; |
110 } | 118 } |
111 | 119 |
| 120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
112 public override string ToString() { | 121 public override string ToString() { |
113 return pb::JsonFormatter.ToDiagnosticString(this); | 122 return pb::JsonFormatter.ToDiagnosticString(this); |
114 } | 123 } |
115 | 124 |
| 125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
116 public void WriteTo(pb::CodedOutputStream output) { | 126 public void WriteTo(pb::CodedOutputStream output) { |
117 if (D != 0) { | 127 if (D != 0) { |
118 output.WriteRawTag(8); | 128 output.WriteRawTag(8); |
119 output.WriteInt32(D); | 129 output.WriteInt32(D); |
120 } | 130 } |
121 } | 131 } |
122 | 132 |
| 133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
123 public int CalculateSize() { | 134 public int CalculateSize() { |
124 int size = 0; | 135 int size = 0; |
125 if (D != 0) { | 136 if (D != 0) { |
126 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D); | 137 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D); |
127 } | 138 } |
128 return size; | 139 return size; |
129 } | 140 } |
130 | 141 |
| 142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
131 public void MergeFrom(ImportMessage other) { | 143 public void MergeFrom(ImportMessage other) { |
132 if (other == null) { | 144 if (other == null) { |
133 return; | 145 return; |
134 } | 146 } |
135 if (other.D != 0) { | 147 if (other.D != 0) { |
136 D = other.D; | 148 D = other.D; |
137 } | 149 } |
138 } | 150 } |
139 | 151 |
| 152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
140 public void MergeFrom(pb::CodedInputStream input) { | 153 public void MergeFrom(pb::CodedInputStream input) { |
141 uint tag; | 154 uint tag; |
142 while ((tag = input.ReadTag()) != 0) { | 155 while ((tag = input.ReadTag()) != 0) { |
143 switch(tag) { | 156 switch(tag) { |
144 default: | 157 default: |
145 input.SkipLastField(); | 158 input.SkipLastField(); |
146 break; | 159 break; |
147 case 8: { | 160 case 8: { |
148 D = input.ReadInt32(); | 161 D = input.ReadInt32(); |
149 break; | 162 break; |
150 } | 163 } |
151 } | 164 } |
152 } | 165 } |
153 } | 166 } |
154 | 167 |
155 } | 168 } |
156 | 169 |
157 #endregion | 170 #endregion |
158 | 171 |
159 } | 172 } |
160 | 173 |
161 #endregion Designer generated code | 174 #endregion Designer generated code |
OLD | NEW |