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/wrappers.proto | 2 // source: google/protobuf/wrappers.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.WellKnownTypes { | 10 namespace Google.Protobuf.WellKnownTypes { |
11 | 11 |
12 /// <summary>Holder for reflection information generated from google/protobuf/
wrappers.proto</summary> | 12 /// <summary>Holder for reflection information generated from google/protobuf/
wrappers.proto</summary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
13 public static partial class WrappersReflection { | 14 public static partial class WrappersReflection { |
14 | 15 |
15 #region Descriptor | 16 #region Descriptor |
16 /// <summary>File descriptor for google/protobuf/wrappers.proto</summary> | 17 /// <summary>File descriptor for google/protobuf/wrappers.proto</summary> |
17 public static pbr::FileDescriptor Descriptor { | 18 public static pbr::FileDescriptor Descriptor { |
18 get { return descriptor; } | 19 get { return descriptor; } |
19 } | 20 } |
20 private static pbr::FileDescriptor descriptor; | 21 private static pbr::FileDescriptor descriptor; |
21 | 22 |
22 static WrappersReflection() { | 23 static WrappersReflection() { |
23 byte[] descriptorData = global::System.Convert.FromBase64String( | 24 byte[] descriptorData = global::System.Convert.FromBase64String( |
24 string.Concat( | 25 string.Concat( |
25 "Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90", | 26 "Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90", |
26 "b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZh", | 27 "b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZh", |
27 "bHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASAB", | 28 "bHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASAB", |
28 "KAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1", | 29 "KAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1", |
29 "ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEo", | 30 "ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEo", |
30 "DSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUS", | 31 "DSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUS", |
31 "DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJ8", | 32 "DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJ/", |
32 "ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUAFaKmdpdGh1", | 33 "ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUAFaKmdpdGh1", |
33 "Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy93cmFwcGVyc/gBAaICA0dQ", | 34 "Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy93cmFwcGVyc6ABAfgBAaIC", |
34 "QqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z")); | 35 "A0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z")); |
35 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | 36 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
36 new pbr::FileDescriptor[] { }, | 37 new pbr::FileDescriptor[] { }, |
37 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { | 38 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
38 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.DoubleValue), global::Google.Protobuf.WellKnownTypes.DoubleValue.Parser,
new[]{ "Value" }, null, null, null), | 39 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.DoubleValue), global::Google.Protobuf.WellKnownTypes.DoubleValue.Parser,
new[]{ "Value" }, null, null, null), |
39 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.FloatValue), global::Google.Protobuf.WellKnownTypes.FloatValue.Parser, n
ew[]{ "Value" }, null, null, null), | 40 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.FloatValue), global::Google.Protobuf.WellKnownTypes.FloatValue.Parser, n
ew[]{ "Value" }, null, null, null), |
40 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Int64Value), global::Google.Protobuf.WellKnownTypes.Int64Value.Parser, n
ew[]{ "Value" }, null, null, null), | 41 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Int64Value), global::Google.Protobuf.WellKnownTypes.Int64Value.Parser, n
ew[]{ "Value" }, null, null, null), |
41 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.UInt64Value), global::Google.Protobuf.WellKnownTypes.UInt64Value.Parser,
new[]{ "Value" }, null, null, null), | 42 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.UInt64Value), global::Google.Protobuf.WellKnownTypes.UInt64Value.Parser,
new[]{ "Value" }, null, null, null), |
42 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Int32Value), global::Google.Protobuf.WellKnownTypes.Int32Value.Parser, n
ew[]{ "Value" }, null, null, null), | 43 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Int32Value), global::Google.Protobuf.WellKnownTypes.Int32Value.Parser, n
ew[]{ "Value" }, null, null, null), |
43 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.UInt32Value), global::Google.Protobuf.WellKnownTypes.UInt32Value.Parser,
new[]{ "Value" }, null, null, null), | 44 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.UInt32Value), global::Google.Protobuf.WellKnownTypes.UInt32Value.Parser,
new[]{ "Value" }, null, null, null), |
44 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.BoolValue), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser, new
[]{ "Value" }, null, null, null), | 45 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.BoolValue), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser, new
[]{ "Value" }, null, null, null), |
45 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.StringValue), global::Google.Protobuf.WellKnownTypes.StringValue.Parser,
new[]{ "Value" }, null, null, null), | 46 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.StringValue), global::Google.Protobuf.WellKnownTypes.StringValue.Parser,
new[]{ "Value" }, null, null, null), |
46 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.BytesValue), global::Google.Protobuf.WellKnownTypes.BytesValue.Parser, n
ew[]{ "Value" }, null, null, null) | 47 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.BytesValue), global::Google.Protobuf.WellKnownTypes.BytesValue.Parser, n
ew[]{ "Value" }, null, null, null) |
47 })); | 48 })); |
48 } | 49 } |
49 #endregion | 50 #endregion |
50 | 51 |
51 } | 52 } |
52 #region Messages | 53 #region Messages |
53 /// <summary> | 54 /// <summary> |
54 /// Wrapper message for `double`. | 55 /// Wrapper message for `double`. |
55 /// | 56 /// |
56 /// The JSON representation for `DoubleValue` is JSON number. | 57 /// The JSON representation for `DoubleValue` is JSON number. |
57 /// </summary> | 58 /// </summary> |
| 59 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
58 public sealed partial class DoubleValue : pb::IMessage<DoubleValue> { | 60 public sealed partial class DoubleValue : pb::IMessage<DoubleValue> { |
59 private static readonly pb::MessageParser<DoubleValue> _parser = new pb::Mes
sageParser<DoubleValue>(() => new DoubleValue()); | 61 private static readonly pb::MessageParser<DoubleValue> _parser = new pb::Mes
sageParser<DoubleValue>(() => new DoubleValue()); |
60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
61 public static pb::MessageParser<DoubleValue> Parser { get { return _parser;
} } | 62 public static pb::MessageParser<DoubleValue> Parser { get { return _parser;
} } |
62 | 63 |
63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
64 public static pbr::MessageDescriptor Descriptor { | 64 public static pbr::MessageDescriptor Descriptor { |
65 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[0]; } | 65 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[0]; } |
66 } | 66 } |
67 | 67 |
68 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
69 pbr::MessageDescriptor pb::IMessage.Descriptor { | 68 pbr::MessageDescriptor pb::IMessage.Descriptor { |
70 get { return Descriptor; } | 69 get { return Descriptor; } |
71 } | 70 } |
72 | 71 |
73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
74 public DoubleValue() { | 72 public DoubleValue() { |
75 OnConstruction(); | 73 OnConstruction(); |
76 } | 74 } |
77 | 75 |
78 partial void OnConstruction(); | 76 partial void OnConstruction(); |
79 | 77 |
80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
81 public DoubleValue(DoubleValue other) : this() { | 78 public DoubleValue(DoubleValue other) : this() { |
82 value_ = other.value_; | 79 value_ = other.value_; |
83 } | 80 } |
84 | 81 |
85 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
86 public DoubleValue Clone() { | 82 public DoubleValue Clone() { |
87 return new DoubleValue(this); | 83 return new DoubleValue(this); |
88 } | 84 } |
89 | 85 |
90 /// <summary>Field number for the "value" field.</summary> | 86 /// <summary>Field number for the "value" field.</summary> |
91 public const int ValueFieldNumber = 1; | 87 public const int ValueFieldNumber = 1; |
92 private double value_; | 88 private double value_; |
93 /// <summary> | 89 /// <summary> |
94 /// The double value. | 90 /// The double value. |
95 /// </summary> | 91 /// </summary> |
96 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
97 public double Value { | 92 public double Value { |
98 get { return value_; } | 93 get { return value_; } |
99 set { | 94 set { |
100 value_ = value; | 95 value_ = value; |
101 } | 96 } |
102 } | 97 } |
103 | 98 |
104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
105 public override bool Equals(object other) { | 99 public override bool Equals(object other) { |
106 return Equals(other as DoubleValue); | 100 return Equals(other as DoubleValue); |
107 } | 101 } |
108 | 102 |
109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
110 public bool Equals(DoubleValue other) { | 103 public bool Equals(DoubleValue other) { |
111 if (ReferenceEquals(other, null)) { | 104 if (ReferenceEquals(other, null)) { |
112 return false; | 105 return false; |
113 } | 106 } |
114 if (ReferenceEquals(other, this)) { | 107 if (ReferenceEquals(other, this)) { |
115 return true; | 108 return true; |
116 } | 109 } |
117 if (Value != other.Value) return false; | 110 if (Value != other.Value) return false; |
118 return true; | 111 return true; |
119 } | 112 } |
120 | 113 |
121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
122 public override int GetHashCode() { | 114 public override int GetHashCode() { |
123 int hash = 1; | 115 int hash = 1; |
124 if (Value != 0D) hash ^= Value.GetHashCode(); | 116 if (Value != 0D) hash ^= Value.GetHashCode(); |
125 return hash; | 117 return hash; |
126 } | 118 } |
127 | 119 |
128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
129 public override string ToString() { | 120 public override string ToString() { |
130 return pb::JsonFormatter.ToDiagnosticString(this); | 121 return pb::JsonFormatter.ToDiagnosticString(this); |
131 } | 122 } |
132 | 123 |
133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
134 public void WriteTo(pb::CodedOutputStream output) { | 124 public void WriteTo(pb::CodedOutputStream output) { |
135 if (Value != 0D) { | 125 if (Value != 0D) { |
136 output.WriteRawTag(9); | 126 output.WriteRawTag(9); |
137 output.WriteDouble(Value); | 127 output.WriteDouble(Value); |
138 } | 128 } |
139 } | 129 } |
140 | 130 |
141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
142 public int CalculateSize() { | 131 public int CalculateSize() { |
143 int size = 0; | 132 int size = 0; |
144 if (Value != 0D) { | 133 if (Value != 0D) { |
145 size += 1 + 8; | 134 size += 1 + 8; |
146 } | 135 } |
147 return size; | 136 return size; |
148 } | 137 } |
149 | 138 |
150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
151 public void MergeFrom(DoubleValue other) { | 139 public void MergeFrom(DoubleValue other) { |
152 if (other == null) { | 140 if (other == null) { |
153 return; | 141 return; |
154 } | 142 } |
155 if (other.Value != 0D) { | 143 if (other.Value != 0D) { |
156 Value = other.Value; | 144 Value = other.Value; |
157 } | 145 } |
158 } | 146 } |
159 | 147 |
160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
161 public void MergeFrom(pb::CodedInputStream input) { | 148 public void MergeFrom(pb::CodedInputStream input) { |
162 uint tag; | 149 uint tag; |
163 while ((tag = input.ReadTag()) != 0) { | 150 while ((tag = input.ReadTag()) != 0) { |
164 switch(tag) { | 151 switch(tag) { |
165 default: | 152 default: |
166 input.SkipLastField(); | 153 input.SkipLastField(); |
167 break; | 154 break; |
168 case 9: { | 155 case 9: { |
169 Value = input.ReadDouble(); | 156 Value = input.ReadDouble(); |
170 break; | 157 break; |
171 } | 158 } |
172 } | 159 } |
173 } | 160 } |
174 } | 161 } |
175 | 162 |
176 } | 163 } |
177 | 164 |
178 /// <summary> | 165 /// <summary> |
179 /// Wrapper message for `float`. | 166 /// Wrapper message for `float`. |
180 /// | 167 /// |
181 /// The JSON representation for `FloatValue` is JSON number. | 168 /// The JSON representation for `FloatValue` is JSON number. |
182 /// </summary> | 169 /// </summary> |
| 170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
183 public sealed partial class FloatValue : pb::IMessage<FloatValue> { | 171 public sealed partial class FloatValue : pb::IMessage<FloatValue> { |
184 private static readonly pb::MessageParser<FloatValue> _parser = new pb::Mess
ageParser<FloatValue>(() => new FloatValue()); | 172 private static readonly pb::MessageParser<FloatValue> _parser = new pb::Mess
ageParser<FloatValue>(() => new FloatValue()); |
185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
186 public static pb::MessageParser<FloatValue> Parser { get { return _parser; }
} | 173 public static pb::MessageParser<FloatValue> Parser { get { return _parser; }
} |
187 | 174 |
188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
189 public static pbr::MessageDescriptor Descriptor { | 175 public static pbr::MessageDescriptor Descriptor { |
190 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[1]; } | 176 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[1]; } |
191 } | 177 } |
192 | 178 |
193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
194 pbr::MessageDescriptor pb::IMessage.Descriptor { | 179 pbr::MessageDescriptor pb::IMessage.Descriptor { |
195 get { return Descriptor; } | 180 get { return Descriptor; } |
196 } | 181 } |
197 | 182 |
198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
199 public FloatValue() { | 183 public FloatValue() { |
200 OnConstruction(); | 184 OnConstruction(); |
201 } | 185 } |
202 | 186 |
203 partial void OnConstruction(); | 187 partial void OnConstruction(); |
204 | 188 |
205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
206 public FloatValue(FloatValue other) : this() { | 189 public FloatValue(FloatValue other) : this() { |
207 value_ = other.value_; | 190 value_ = other.value_; |
208 } | 191 } |
209 | 192 |
210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
211 public FloatValue Clone() { | 193 public FloatValue Clone() { |
212 return new FloatValue(this); | 194 return new FloatValue(this); |
213 } | 195 } |
214 | 196 |
215 /// <summary>Field number for the "value" field.</summary> | 197 /// <summary>Field number for the "value" field.</summary> |
216 public const int ValueFieldNumber = 1; | 198 public const int ValueFieldNumber = 1; |
217 private float value_; | 199 private float value_; |
218 /// <summary> | 200 /// <summary> |
219 /// The float value. | 201 /// The float value. |
220 /// </summary> | 202 /// </summary> |
221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
222 public float Value { | 203 public float Value { |
223 get { return value_; } | 204 get { return value_; } |
224 set { | 205 set { |
225 value_ = value; | 206 value_ = value; |
226 } | 207 } |
227 } | 208 } |
228 | 209 |
229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
230 public override bool Equals(object other) { | 210 public override bool Equals(object other) { |
231 return Equals(other as FloatValue); | 211 return Equals(other as FloatValue); |
232 } | 212 } |
233 | 213 |
234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
235 public bool Equals(FloatValue other) { | 214 public bool Equals(FloatValue other) { |
236 if (ReferenceEquals(other, null)) { | 215 if (ReferenceEquals(other, null)) { |
237 return false; | 216 return false; |
238 } | 217 } |
239 if (ReferenceEquals(other, this)) { | 218 if (ReferenceEquals(other, this)) { |
240 return true; | 219 return true; |
241 } | 220 } |
242 if (Value != other.Value) return false; | 221 if (Value != other.Value) return false; |
243 return true; | 222 return true; |
244 } | 223 } |
245 | 224 |
246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
247 public override int GetHashCode() { | 225 public override int GetHashCode() { |
248 int hash = 1; | 226 int hash = 1; |
249 if (Value != 0F) hash ^= Value.GetHashCode(); | 227 if (Value != 0F) hash ^= Value.GetHashCode(); |
250 return hash; | 228 return hash; |
251 } | 229 } |
252 | 230 |
253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
254 public override string ToString() { | 231 public override string ToString() { |
255 return pb::JsonFormatter.ToDiagnosticString(this); | 232 return pb::JsonFormatter.ToDiagnosticString(this); |
256 } | 233 } |
257 | 234 |
258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
259 public void WriteTo(pb::CodedOutputStream output) { | 235 public void WriteTo(pb::CodedOutputStream output) { |
260 if (Value != 0F) { | 236 if (Value != 0F) { |
261 output.WriteRawTag(13); | 237 output.WriteRawTag(13); |
262 output.WriteFloat(Value); | 238 output.WriteFloat(Value); |
263 } | 239 } |
264 } | 240 } |
265 | 241 |
266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
267 public int CalculateSize() { | 242 public int CalculateSize() { |
268 int size = 0; | 243 int size = 0; |
269 if (Value != 0F) { | 244 if (Value != 0F) { |
270 size += 1 + 4; | 245 size += 1 + 4; |
271 } | 246 } |
272 return size; | 247 return size; |
273 } | 248 } |
274 | 249 |
275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
276 public void MergeFrom(FloatValue other) { | 250 public void MergeFrom(FloatValue other) { |
277 if (other == null) { | 251 if (other == null) { |
278 return; | 252 return; |
279 } | 253 } |
280 if (other.Value != 0F) { | 254 if (other.Value != 0F) { |
281 Value = other.Value; | 255 Value = other.Value; |
282 } | 256 } |
283 } | 257 } |
284 | 258 |
285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
286 public void MergeFrom(pb::CodedInputStream input) { | 259 public void MergeFrom(pb::CodedInputStream input) { |
287 uint tag; | 260 uint tag; |
288 while ((tag = input.ReadTag()) != 0) { | 261 while ((tag = input.ReadTag()) != 0) { |
289 switch(tag) { | 262 switch(tag) { |
290 default: | 263 default: |
291 input.SkipLastField(); | 264 input.SkipLastField(); |
292 break; | 265 break; |
293 case 13: { | 266 case 13: { |
294 Value = input.ReadFloat(); | 267 Value = input.ReadFloat(); |
295 break; | 268 break; |
296 } | 269 } |
297 } | 270 } |
298 } | 271 } |
299 } | 272 } |
300 | 273 |
301 } | 274 } |
302 | 275 |
303 /// <summary> | 276 /// <summary> |
304 /// Wrapper message for `int64`. | 277 /// Wrapper message for `int64`. |
305 /// | 278 /// |
306 /// The JSON representation for `Int64Value` is JSON string. | 279 /// The JSON representation for `Int64Value` is JSON string. |
307 /// </summary> | 280 /// </summary> |
| 281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
308 public sealed partial class Int64Value : pb::IMessage<Int64Value> { | 282 public sealed partial class Int64Value : pb::IMessage<Int64Value> { |
309 private static readonly pb::MessageParser<Int64Value> _parser = new pb::Mess
ageParser<Int64Value>(() => new Int64Value()); | 283 private static readonly pb::MessageParser<Int64Value> _parser = new pb::Mess
ageParser<Int64Value>(() => new Int64Value()); |
310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
311 public static pb::MessageParser<Int64Value> Parser { get { return _parser; }
} | 284 public static pb::MessageParser<Int64Value> Parser { get { return _parser; }
} |
312 | 285 |
313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
314 public static pbr::MessageDescriptor Descriptor { | 286 public static pbr::MessageDescriptor Descriptor { |
315 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[2]; } | 287 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[2]; } |
316 } | 288 } |
317 | 289 |
318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
319 pbr::MessageDescriptor pb::IMessage.Descriptor { | 290 pbr::MessageDescriptor pb::IMessage.Descriptor { |
320 get { return Descriptor; } | 291 get { return Descriptor; } |
321 } | 292 } |
322 | 293 |
323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
324 public Int64Value() { | 294 public Int64Value() { |
325 OnConstruction(); | 295 OnConstruction(); |
326 } | 296 } |
327 | 297 |
328 partial void OnConstruction(); | 298 partial void OnConstruction(); |
329 | 299 |
330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
331 public Int64Value(Int64Value other) : this() { | 300 public Int64Value(Int64Value other) : this() { |
332 value_ = other.value_; | 301 value_ = other.value_; |
333 } | 302 } |
334 | 303 |
335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
336 public Int64Value Clone() { | 304 public Int64Value Clone() { |
337 return new Int64Value(this); | 305 return new Int64Value(this); |
338 } | 306 } |
339 | 307 |
340 /// <summary>Field number for the "value" field.</summary> | 308 /// <summary>Field number for the "value" field.</summary> |
341 public const int ValueFieldNumber = 1; | 309 public const int ValueFieldNumber = 1; |
342 private long value_; | 310 private long value_; |
343 /// <summary> | 311 /// <summary> |
344 /// The int64 value. | 312 /// The int64 value. |
345 /// </summary> | 313 /// </summary> |
346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
347 public long Value { | 314 public long Value { |
348 get { return value_; } | 315 get { return value_; } |
349 set { | 316 set { |
350 value_ = value; | 317 value_ = value; |
351 } | 318 } |
352 } | 319 } |
353 | 320 |
354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
355 public override bool Equals(object other) { | 321 public override bool Equals(object other) { |
356 return Equals(other as Int64Value); | 322 return Equals(other as Int64Value); |
357 } | 323 } |
358 | 324 |
359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
360 public bool Equals(Int64Value other) { | 325 public bool Equals(Int64Value other) { |
361 if (ReferenceEquals(other, null)) { | 326 if (ReferenceEquals(other, null)) { |
362 return false; | 327 return false; |
363 } | 328 } |
364 if (ReferenceEquals(other, this)) { | 329 if (ReferenceEquals(other, this)) { |
365 return true; | 330 return true; |
366 } | 331 } |
367 if (Value != other.Value) return false; | 332 if (Value != other.Value) return false; |
368 return true; | 333 return true; |
369 } | 334 } |
370 | 335 |
371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
372 public override int GetHashCode() { | 336 public override int GetHashCode() { |
373 int hash = 1; | 337 int hash = 1; |
374 if (Value != 0L) hash ^= Value.GetHashCode(); | 338 if (Value != 0L) hash ^= Value.GetHashCode(); |
375 return hash; | 339 return hash; |
376 } | 340 } |
377 | 341 |
378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
379 public override string ToString() { | 342 public override string ToString() { |
380 return pb::JsonFormatter.ToDiagnosticString(this); | 343 return pb::JsonFormatter.ToDiagnosticString(this); |
381 } | 344 } |
382 | 345 |
383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
384 public void WriteTo(pb::CodedOutputStream output) { | 346 public void WriteTo(pb::CodedOutputStream output) { |
385 if (Value != 0L) { | 347 if (Value != 0L) { |
386 output.WriteRawTag(8); | 348 output.WriteRawTag(8); |
387 output.WriteInt64(Value); | 349 output.WriteInt64(Value); |
388 } | 350 } |
389 } | 351 } |
390 | 352 |
391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
392 public int CalculateSize() { | 353 public int CalculateSize() { |
393 int size = 0; | 354 int size = 0; |
394 if (Value != 0L) { | 355 if (Value != 0L) { |
395 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value); | 356 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value); |
396 } | 357 } |
397 return size; | 358 return size; |
398 } | 359 } |
399 | 360 |
400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
401 public void MergeFrom(Int64Value other) { | 361 public void MergeFrom(Int64Value other) { |
402 if (other == null) { | 362 if (other == null) { |
403 return; | 363 return; |
404 } | 364 } |
405 if (other.Value != 0L) { | 365 if (other.Value != 0L) { |
406 Value = other.Value; | 366 Value = other.Value; |
407 } | 367 } |
408 } | 368 } |
409 | 369 |
410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
411 public void MergeFrom(pb::CodedInputStream input) { | 370 public void MergeFrom(pb::CodedInputStream input) { |
412 uint tag; | 371 uint tag; |
413 while ((tag = input.ReadTag()) != 0) { | 372 while ((tag = input.ReadTag()) != 0) { |
414 switch(tag) { | 373 switch(tag) { |
415 default: | 374 default: |
416 input.SkipLastField(); | 375 input.SkipLastField(); |
417 break; | 376 break; |
418 case 8: { | 377 case 8: { |
419 Value = input.ReadInt64(); | 378 Value = input.ReadInt64(); |
420 break; | 379 break; |
421 } | 380 } |
422 } | 381 } |
423 } | 382 } |
424 } | 383 } |
425 | 384 |
426 } | 385 } |
427 | 386 |
428 /// <summary> | 387 /// <summary> |
429 /// Wrapper message for `uint64`. | 388 /// Wrapper message for `uint64`. |
430 /// | 389 /// |
431 /// The JSON representation for `UInt64Value` is JSON string. | 390 /// The JSON representation for `UInt64Value` is JSON string. |
432 /// </summary> | 391 /// </summary> |
| 392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
433 public sealed partial class UInt64Value : pb::IMessage<UInt64Value> { | 393 public sealed partial class UInt64Value : pb::IMessage<UInt64Value> { |
434 private static readonly pb::MessageParser<UInt64Value> _parser = new pb::Mes
sageParser<UInt64Value>(() => new UInt64Value()); | 394 private static readonly pb::MessageParser<UInt64Value> _parser = new pb::Mes
sageParser<UInt64Value>(() => new UInt64Value()); |
435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
436 public static pb::MessageParser<UInt64Value> Parser { get { return _parser;
} } | 395 public static pb::MessageParser<UInt64Value> Parser { get { return _parser;
} } |
437 | 396 |
438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
439 public static pbr::MessageDescriptor Descriptor { | 397 public static pbr::MessageDescriptor Descriptor { |
440 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[3]; } | 398 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[3]; } |
441 } | 399 } |
442 | 400 |
443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
444 pbr::MessageDescriptor pb::IMessage.Descriptor { | 401 pbr::MessageDescriptor pb::IMessage.Descriptor { |
445 get { return Descriptor; } | 402 get { return Descriptor; } |
446 } | 403 } |
447 | 404 |
448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
449 public UInt64Value() { | 405 public UInt64Value() { |
450 OnConstruction(); | 406 OnConstruction(); |
451 } | 407 } |
452 | 408 |
453 partial void OnConstruction(); | 409 partial void OnConstruction(); |
454 | 410 |
455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
456 public UInt64Value(UInt64Value other) : this() { | 411 public UInt64Value(UInt64Value other) : this() { |
457 value_ = other.value_; | 412 value_ = other.value_; |
458 } | 413 } |
459 | 414 |
460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
461 public UInt64Value Clone() { | 415 public UInt64Value Clone() { |
462 return new UInt64Value(this); | 416 return new UInt64Value(this); |
463 } | 417 } |
464 | 418 |
465 /// <summary>Field number for the "value" field.</summary> | 419 /// <summary>Field number for the "value" field.</summary> |
466 public const int ValueFieldNumber = 1; | 420 public const int ValueFieldNumber = 1; |
467 private ulong value_; | 421 private ulong value_; |
468 /// <summary> | 422 /// <summary> |
469 /// The uint64 value. | 423 /// The uint64 value. |
470 /// </summary> | 424 /// </summary> |
471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
472 public ulong Value { | 425 public ulong Value { |
473 get { return value_; } | 426 get { return value_; } |
474 set { | 427 set { |
475 value_ = value; | 428 value_ = value; |
476 } | 429 } |
477 } | 430 } |
478 | 431 |
479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
480 public override bool Equals(object other) { | 432 public override bool Equals(object other) { |
481 return Equals(other as UInt64Value); | 433 return Equals(other as UInt64Value); |
482 } | 434 } |
483 | 435 |
484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
485 public bool Equals(UInt64Value other) { | 436 public bool Equals(UInt64Value other) { |
486 if (ReferenceEquals(other, null)) { | 437 if (ReferenceEquals(other, null)) { |
487 return false; | 438 return false; |
488 } | 439 } |
489 if (ReferenceEquals(other, this)) { | 440 if (ReferenceEquals(other, this)) { |
490 return true; | 441 return true; |
491 } | 442 } |
492 if (Value != other.Value) return false; | 443 if (Value != other.Value) return false; |
493 return true; | 444 return true; |
494 } | 445 } |
495 | 446 |
496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
497 public override int GetHashCode() { | 447 public override int GetHashCode() { |
498 int hash = 1; | 448 int hash = 1; |
499 if (Value != 0UL) hash ^= Value.GetHashCode(); | 449 if (Value != 0UL) hash ^= Value.GetHashCode(); |
500 return hash; | 450 return hash; |
501 } | 451 } |
502 | 452 |
503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
504 public override string ToString() { | 453 public override string ToString() { |
505 return pb::JsonFormatter.ToDiagnosticString(this); | 454 return pb::JsonFormatter.ToDiagnosticString(this); |
506 } | 455 } |
507 | 456 |
508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
509 public void WriteTo(pb::CodedOutputStream output) { | 457 public void WriteTo(pb::CodedOutputStream output) { |
510 if (Value != 0UL) { | 458 if (Value != 0UL) { |
511 output.WriteRawTag(8); | 459 output.WriteRawTag(8); |
512 output.WriteUInt64(Value); | 460 output.WriteUInt64(Value); |
513 } | 461 } |
514 } | 462 } |
515 | 463 |
516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
517 public int CalculateSize() { | 464 public int CalculateSize() { |
518 int size = 0; | 465 int size = 0; |
519 if (Value != 0UL) { | 466 if (Value != 0UL) { |
520 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value); | 467 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value); |
521 } | 468 } |
522 return size; | 469 return size; |
523 } | 470 } |
524 | 471 |
525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
526 public void MergeFrom(UInt64Value other) { | 472 public void MergeFrom(UInt64Value other) { |
527 if (other == null) { | 473 if (other == null) { |
528 return; | 474 return; |
529 } | 475 } |
530 if (other.Value != 0UL) { | 476 if (other.Value != 0UL) { |
531 Value = other.Value; | 477 Value = other.Value; |
532 } | 478 } |
533 } | 479 } |
534 | 480 |
535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
536 public void MergeFrom(pb::CodedInputStream input) { | 481 public void MergeFrom(pb::CodedInputStream input) { |
537 uint tag; | 482 uint tag; |
538 while ((tag = input.ReadTag()) != 0) { | 483 while ((tag = input.ReadTag()) != 0) { |
539 switch(tag) { | 484 switch(tag) { |
540 default: | 485 default: |
541 input.SkipLastField(); | 486 input.SkipLastField(); |
542 break; | 487 break; |
543 case 8: { | 488 case 8: { |
544 Value = input.ReadUInt64(); | 489 Value = input.ReadUInt64(); |
545 break; | 490 break; |
546 } | 491 } |
547 } | 492 } |
548 } | 493 } |
549 } | 494 } |
550 | 495 |
551 } | 496 } |
552 | 497 |
553 /// <summary> | 498 /// <summary> |
554 /// Wrapper message for `int32`. | 499 /// Wrapper message for `int32`. |
555 /// | 500 /// |
556 /// The JSON representation for `Int32Value` is JSON number. | 501 /// The JSON representation for `Int32Value` is JSON number. |
557 /// </summary> | 502 /// </summary> |
| 503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
558 public sealed partial class Int32Value : pb::IMessage<Int32Value> { | 504 public sealed partial class Int32Value : pb::IMessage<Int32Value> { |
559 private static readonly pb::MessageParser<Int32Value> _parser = new pb::Mess
ageParser<Int32Value>(() => new Int32Value()); | 505 private static readonly pb::MessageParser<Int32Value> _parser = new pb::Mess
ageParser<Int32Value>(() => new Int32Value()); |
560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
561 public static pb::MessageParser<Int32Value> Parser { get { return _parser; }
} | 506 public static pb::MessageParser<Int32Value> Parser { get { return _parser; }
} |
562 | 507 |
563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
564 public static pbr::MessageDescriptor Descriptor { | 508 public static pbr::MessageDescriptor Descriptor { |
565 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[4]; } | 509 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[4]; } |
566 } | 510 } |
567 | 511 |
568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
569 pbr::MessageDescriptor pb::IMessage.Descriptor { | 512 pbr::MessageDescriptor pb::IMessage.Descriptor { |
570 get { return Descriptor; } | 513 get { return Descriptor; } |
571 } | 514 } |
572 | 515 |
573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
574 public Int32Value() { | 516 public Int32Value() { |
575 OnConstruction(); | 517 OnConstruction(); |
576 } | 518 } |
577 | 519 |
578 partial void OnConstruction(); | 520 partial void OnConstruction(); |
579 | 521 |
580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
581 public Int32Value(Int32Value other) : this() { | 522 public Int32Value(Int32Value other) : this() { |
582 value_ = other.value_; | 523 value_ = other.value_; |
583 } | 524 } |
584 | 525 |
585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
586 public Int32Value Clone() { | 526 public Int32Value Clone() { |
587 return new Int32Value(this); | 527 return new Int32Value(this); |
588 } | 528 } |
589 | 529 |
590 /// <summary>Field number for the "value" field.</summary> | 530 /// <summary>Field number for the "value" field.</summary> |
591 public const int ValueFieldNumber = 1; | 531 public const int ValueFieldNumber = 1; |
592 private int value_; | 532 private int value_; |
593 /// <summary> | 533 /// <summary> |
594 /// The int32 value. | 534 /// The int32 value. |
595 /// </summary> | 535 /// </summary> |
596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
597 public int Value { | 536 public int Value { |
598 get { return value_; } | 537 get { return value_; } |
599 set { | 538 set { |
600 value_ = value; | 539 value_ = value; |
601 } | 540 } |
602 } | 541 } |
603 | 542 |
604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
605 public override bool Equals(object other) { | 543 public override bool Equals(object other) { |
606 return Equals(other as Int32Value); | 544 return Equals(other as Int32Value); |
607 } | 545 } |
608 | 546 |
609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
610 public bool Equals(Int32Value other) { | 547 public bool Equals(Int32Value other) { |
611 if (ReferenceEquals(other, null)) { | 548 if (ReferenceEquals(other, null)) { |
612 return false; | 549 return false; |
613 } | 550 } |
614 if (ReferenceEquals(other, this)) { | 551 if (ReferenceEquals(other, this)) { |
615 return true; | 552 return true; |
616 } | 553 } |
617 if (Value != other.Value) return false; | 554 if (Value != other.Value) return false; |
618 return true; | 555 return true; |
619 } | 556 } |
620 | 557 |
621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
622 public override int GetHashCode() { | 558 public override int GetHashCode() { |
623 int hash = 1; | 559 int hash = 1; |
624 if (Value != 0) hash ^= Value.GetHashCode(); | 560 if (Value != 0) hash ^= Value.GetHashCode(); |
625 return hash; | 561 return hash; |
626 } | 562 } |
627 | 563 |
628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
629 public override string ToString() { | 564 public override string ToString() { |
630 return pb::JsonFormatter.ToDiagnosticString(this); | 565 return pb::JsonFormatter.ToDiagnosticString(this); |
631 } | 566 } |
632 | 567 |
633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
634 public void WriteTo(pb::CodedOutputStream output) { | 568 public void WriteTo(pb::CodedOutputStream output) { |
635 if (Value != 0) { | 569 if (Value != 0) { |
636 output.WriteRawTag(8); | 570 output.WriteRawTag(8); |
637 output.WriteInt32(Value); | 571 output.WriteInt32(Value); |
638 } | 572 } |
639 } | 573 } |
640 | 574 |
641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
642 public int CalculateSize() { | 575 public int CalculateSize() { |
643 int size = 0; | 576 int size = 0; |
644 if (Value != 0) { | 577 if (Value != 0) { |
645 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); | 578 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); |
646 } | 579 } |
647 return size; | 580 return size; |
648 } | 581 } |
649 | 582 |
650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
651 public void MergeFrom(Int32Value other) { | 583 public void MergeFrom(Int32Value other) { |
652 if (other == null) { | 584 if (other == null) { |
653 return; | 585 return; |
654 } | 586 } |
655 if (other.Value != 0) { | 587 if (other.Value != 0) { |
656 Value = other.Value; | 588 Value = other.Value; |
657 } | 589 } |
658 } | 590 } |
659 | 591 |
660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
661 public void MergeFrom(pb::CodedInputStream input) { | 592 public void MergeFrom(pb::CodedInputStream input) { |
662 uint tag; | 593 uint tag; |
663 while ((tag = input.ReadTag()) != 0) { | 594 while ((tag = input.ReadTag()) != 0) { |
664 switch(tag) { | 595 switch(tag) { |
665 default: | 596 default: |
666 input.SkipLastField(); | 597 input.SkipLastField(); |
667 break; | 598 break; |
668 case 8: { | 599 case 8: { |
669 Value = input.ReadInt32(); | 600 Value = input.ReadInt32(); |
670 break; | 601 break; |
671 } | 602 } |
672 } | 603 } |
673 } | 604 } |
674 } | 605 } |
675 | 606 |
676 } | 607 } |
677 | 608 |
678 /// <summary> | 609 /// <summary> |
679 /// Wrapper message for `uint32`. | 610 /// Wrapper message for `uint32`. |
680 /// | 611 /// |
681 /// The JSON representation for `UInt32Value` is JSON number. | 612 /// The JSON representation for `UInt32Value` is JSON number. |
682 /// </summary> | 613 /// </summary> |
| 614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
683 public sealed partial class UInt32Value : pb::IMessage<UInt32Value> { | 615 public sealed partial class UInt32Value : pb::IMessage<UInt32Value> { |
684 private static readonly pb::MessageParser<UInt32Value> _parser = new pb::Mes
sageParser<UInt32Value>(() => new UInt32Value()); | 616 private static readonly pb::MessageParser<UInt32Value> _parser = new pb::Mes
sageParser<UInt32Value>(() => new UInt32Value()); |
685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
686 public static pb::MessageParser<UInt32Value> Parser { get { return _parser;
} } | 617 public static pb::MessageParser<UInt32Value> Parser { get { return _parser;
} } |
687 | 618 |
688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
689 public static pbr::MessageDescriptor Descriptor { | 619 public static pbr::MessageDescriptor Descriptor { |
690 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[5]; } | 620 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[5]; } |
691 } | 621 } |
692 | 622 |
693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
694 pbr::MessageDescriptor pb::IMessage.Descriptor { | 623 pbr::MessageDescriptor pb::IMessage.Descriptor { |
695 get { return Descriptor; } | 624 get { return Descriptor; } |
696 } | 625 } |
697 | 626 |
698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
699 public UInt32Value() { | 627 public UInt32Value() { |
700 OnConstruction(); | 628 OnConstruction(); |
701 } | 629 } |
702 | 630 |
703 partial void OnConstruction(); | 631 partial void OnConstruction(); |
704 | 632 |
705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
706 public UInt32Value(UInt32Value other) : this() { | 633 public UInt32Value(UInt32Value other) : this() { |
707 value_ = other.value_; | 634 value_ = other.value_; |
708 } | 635 } |
709 | 636 |
710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
711 public UInt32Value Clone() { | 637 public UInt32Value Clone() { |
712 return new UInt32Value(this); | 638 return new UInt32Value(this); |
713 } | 639 } |
714 | 640 |
715 /// <summary>Field number for the "value" field.</summary> | 641 /// <summary>Field number for the "value" field.</summary> |
716 public const int ValueFieldNumber = 1; | 642 public const int ValueFieldNumber = 1; |
717 private uint value_; | 643 private uint value_; |
718 /// <summary> | 644 /// <summary> |
719 /// The uint32 value. | 645 /// The uint32 value. |
720 /// </summary> | 646 /// </summary> |
721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
722 public uint Value { | 647 public uint Value { |
723 get { return value_; } | 648 get { return value_; } |
724 set { | 649 set { |
725 value_ = value; | 650 value_ = value; |
726 } | 651 } |
727 } | 652 } |
728 | 653 |
729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
730 public override bool Equals(object other) { | 654 public override bool Equals(object other) { |
731 return Equals(other as UInt32Value); | 655 return Equals(other as UInt32Value); |
732 } | 656 } |
733 | 657 |
734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
735 public bool Equals(UInt32Value other) { | 658 public bool Equals(UInt32Value other) { |
736 if (ReferenceEquals(other, null)) { | 659 if (ReferenceEquals(other, null)) { |
737 return false; | 660 return false; |
738 } | 661 } |
739 if (ReferenceEquals(other, this)) { | 662 if (ReferenceEquals(other, this)) { |
740 return true; | 663 return true; |
741 } | 664 } |
742 if (Value != other.Value) return false; | 665 if (Value != other.Value) return false; |
743 return true; | 666 return true; |
744 } | 667 } |
745 | 668 |
746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
747 public override int GetHashCode() { | 669 public override int GetHashCode() { |
748 int hash = 1; | 670 int hash = 1; |
749 if (Value != 0) hash ^= Value.GetHashCode(); | 671 if (Value != 0) hash ^= Value.GetHashCode(); |
750 return hash; | 672 return hash; |
751 } | 673 } |
752 | 674 |
753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
754 public override string ToString() { | 675 public override string ToString() { |
755 return pb::JsonFormatter.ToDiagnosticString(this); | 676 return pb::JsonFormatter.ToDiagnosticString(this); |
756 } | 677 } |
757 | 678 |
758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
759 public void WriteTo(pb::CodedOutputStream output) { | 679 public void WriteTo(pb::CodedOutputStream output) { |
760 if (Value != 0) { | 680 if (Value != 0) { |
761 output.WriteRawTag(8); | 681 output.WriteRawTag(8); |
762 output.WriteUInt32(Value); | 682 output.WriteUInt32(Value); |
763 } | 683 } |
764 } | 684 } |
765 | 685 |
766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
767 public int CalculateSize() { | 686 public int CalculateSize() { |
768 int size = 0; | 687 int size = 0; |
769 if (Value != 0) { | 688 if (Value != 0) { |
770 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value); | 689 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value); |
771 } | 690 } |
772 return size; | 691 return size; |
773 } | 692 } |
774 | 693 |
775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
776 public void MergeFrom(UInt32Value other) { | 694 public void MergeFrom(UInt32Value other) { |
777 if (other == null) { | 695 if (other == null) { |
778 return; | 696 return; |
779 } | 697 } |
780 if (other.Value != 0) { | 698 if (other.Value != 0) { |
781 Value = other.Value; | 699 Value = other.Value; |
782 } | 700 } |
783 } | 701 } |
784 | 702 |
785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
786 public void MergeFrom(pb::CodedInputStream input) { | 703 public void MergeFrom(pb::CodedInputStream input) { |
787 uint tag; | 704 uint tag; |
788 while ((tag = input.ReadTag()) != 0) { | 705 while ((tag = input.ReadTag()) != 0) { |
789 switch(tag) { | 706 switch(tag) { |
790 default: | 707 default: |
791 input.SkipLastField(); | 708 input.SkipLastField(); |
792 break; | 709 break; |
793 case 8: { | 710 case 8: { |
794 Value = input.ReadUInt32(); | 711 Value = input.ReadUInt32(); |
795 break; | 712 break; |
796 } | 713 } |
797 } | 714 } |
798 } | 715 } |
799 } | 716 } |
800 | 717 |
801 } | 718 } |
802 | 719 |
803 /// <summary> | 720 /// <summary> |
804 /// Wrapper message for `bool`. | 721 /// Wrapper message for `bool`. |
805 /// | 722 /// |
806 /// The JSON representation for `BoolValue` is JSON `true` and `false`. | 723 /// The JSON representation for `BoolValue` is JSON `true` and `false`. |
807 /// </summary> | 724 /// </summary> |
| 725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
808 public sealed partial class BoolValue : pb::IMessage<BoolValue> { | 726 public sealed partial class BoolValue : pb::IMessage<BoolValue> { |
809 private static readonly pb::MessageParser<BoolValue> _parser = new pb::Messa
geParser<BoolValue>(() => new BoolValue()); | 727 private static readonly pb::MessageParser<BoolValue> _parser = new pb::Messa
geParser<BoolValue>(() => new BoolValue()); |
810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
811 public static pb::MessageParser<BoolValue> Parser { get { return _parser; }
} | 728 public static pb::MessageParser<BoolValue> Parser { get { return _parser; }
} |
812 | 729 |
813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
814 public static pbr::MessageDescriptor Descriptor { | 730 public static pbr::MessageDescriptor Descriptor { |
815 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[6]; } | 731 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[6]; } |
816 } | 732 } |
817 | 733 |
818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
819 pbr::MessageDescriptor pb::IMessage.Descriptor { | 734 pbr::MessageDescriptor pb::IMessage.Descriptor { |
820 get { return Descriptor; } | 735 get { return Descriptor; } |
821 } | 736 } |
822 | 737 |
823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
824 public BoolValue() { | 738 public BoolValue() { |
825 OnConstruction(); | 739 OnConstruction(); |
826 } | 740 } |
827 | 741 |
828 partial void OnConstruction(); | 742 partial void OnConstruction(); |
829 | 743 |
830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
831 public BoolValue(BoolValue other) : this() { | 744 public BoolValue(BoolValue other) : this() { |
832 value_ = other.value_; | 745 value_ = other.value_; |
833 } | 746 } |
834 | 747 |
835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
836 public BoolValue Clone() { | 748 public BoolValue Clone() { |
837 return new BoolValue(this); | 749 return new BoolValue(this); |
838 } | 750 } |
839 | 751 |
840 /// <summary>Field number for the "value" field.</summary> | 752 /// <summary>Field number for the "value" field.</summary> |
841 public const int ValueFieldNumber = 1; | 753 public const int ValueFieldNumber = 1; |
842 private bool value_; | 754 private bool value_; |
843 /// <summary> | 755 /// <summary> |
844 /// The bool value. | 756 /// The bool value. |
845 /// </summary> | 757 /// </summary> |
846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
847 public bool Value { | 758 public bool Value { |
848 get { return value_; } | 759 get { return value_; } |
849 set { | 760 set { |
850 value_ = value; | 761 value_ = value; |
851 } | 762 } |
852 } | 763 } |
853 | 764 |
854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
855 public override bool Equals(object other) { | 765 public override bool Equals(object other) { |
856 return Equals(other as BoolValue); | 766 return Equals(other as BoolValue); |
857 } | 767 } |
858 | 768 |
859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
860 public bool Equals(BoolValue other) { | 769 public bool Equals(BoolValue other) { |
861 if (ReferenceEquals(other, null)) { | 770 if (ReferenceEquals(other, null)) { |
862 return false; | 771 return false; |
863 } | 772 } |
864 if (ReferenceEquals(other, this)) { | 773 if (ReferenceEquals(other, this)) { |
865 return true; | 774 return true; |
866 } | 775 } |
867 if (Value != other.Value) return false; | 776 if (Value != other.Value) return false; |
868 return true; | 777 return true; |
869 } | 778 } |
870 | 779 |
871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
872 public override int GetHashCode() { | 780 public override int GetHashCode() { |
873 int hash = 1; | 781 int hash = 1; |
874 if (Value != false) hash ^= Value.GetHashCode(); | 782 if (Value != false) hash ^= Value.GetHashCode(); |
875 return hash; | 783 return hash; |
876 } | 784 } |
877 | 785 |
878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
879 public override string ToString() { | 786 public override string ToString() { |
880 return pb::JsonFormatter.ToDiagnosticString(this); | 787 return pb::JsonFormatter.ToDiagnosticString(this); |
881 } | 788 } |
882 | 789 |
883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
884 public void WriteTo(pb::CodedOutputStream output) { | 790 public void WriteTo(pb::CodedOutputStream output) { |
885 if (Value != false) { | 791 if (Value != false) { |
886 output.WriteRawTag(8); | 792 output.WriteRawTag(8); |
887 output.WriteBool(Value); | 793 output.WriteBool(Value); |
888 } | 794 } |
889 } | 795 } |
890 | 796 |
891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
892 public int CalculateSize() { | 797 public int CalculateSize() { |
893 int size = 0; | 798 int size = 0; |
894 if (Value != false) { | 799 if (Value != false) { |
895 size += 1 + 1; | 800 size += 1 + 1; |
896 } | 801 } |
897 return size; | 802 return size; |
898 } | 803 } |
899 | 804 |
900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
901 public void MergeFrom(BoolValue other) { | 805 public void MergeFrom(BoolValue other) { |
902 if (other == null) { | 806 if (other == null) { |
903 return; | 807 return; |
904 } | 808 } |
905 if (other.Value != false) { | 809 if (other.Value != false) { |
906 Value = other.Value; | 810 Value = other.Value; |
907 } | 811 } |
908 } | 812 } |
909 | 813 |
910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
911 public void MergeFrom(pb::CodedInputStream input) { | 814 public void MergeFrom(pb::CodedInputStream input) { |
912 uint tag; | 815 uint tag; |
913 while ((tag = input.ReadTag()) != 0) { | 816 while ((tag = input.ReadTag()) != 0) { |
914 switch(tag) { | 817 switch(tag) { |
915 default: | 818 default: |
916 input.SkipLastField(); | 819 input.SkipLastField(); |
917 break; | 820 break; |
918 case 8: { | 821 case 8: { |
919 Value = input.ReadBool(); | 822 Value = input.ReadBool(); |
920 break; | 823 break; |
921 } | 824 } |
922 } | 825 } |
923 } | 826 } |
924 } | 827 } |
925 | 828 |
926 } | 829 } |
927 | 830 |
928 /// <summary> | 831 /// <summary> |
929 /// Wrapper message for `string`. | 832 /// Wrapper message for `string`. |
930 /// | 833 /// |
931 /// The JSON representation for `StringValue` is JSON string. | 834 /// The JSON representation for `StringValue` is JSON string. |
932 /// </summary> | 835 /// </summary> |
| 836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
933 public sealed partial class StringValue : pb::IMessage<StringValue> { | 837 public sealed partial class StringValue : pb::IMessage<StringValue> { |
934 private static readonly pb::MessageParser<StringValue> _parser = new pb::Mes
sageParser<StringValue>(() => new StringValue()); | 838 private static readonly pb::MessageParser<StringValue> _parser = new pb::Mes
sageParser<StringValue>(() => new StringValue()); |
935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
936 public static pb::MessageParser<StringValue> Parser { get { return _parser;
} } | 839 public static pb::MessageParser<StringValue> Parser { get { return _parser;
} } |
937 | 840 |
938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
939 public static pbr::MessageDescriptor Descriptor { | 841 public static pbr::MessageDescriptor Descriptor { |
940 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[7]; } | 842 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[7]; } |
941 } | 843 } |
942 | 844 |
943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
944 pbr::MessageDescriptor pb::IMessage.Descriptor { | 845 pbr::MessageDescriptor pb::IMessage.Descriptor { |
945 get { return Descriptor; } | 846 get { return Descriptor; } |
946 } | 847 } |
947 | 848 |
948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
949 public StringValue() { | 849 public StringValue() { |
950 OnConstruction(); | 850 OnConstruction(); |
951 } | 851 } |
952 | 852 |
953 partial void OnConstruction(); | 853 partial void OnConstruction(); |
954 | 854 |
955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
956 public StringValue(StringValue other) : this() { | 855 public StringValue(StringValue other) : this() { |
957 value_ = other.value_; | 856 value_ = other.value_; |
958 } | 857 } |
959 | 858 |
960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
961 public StringValue Clone() { | 859 public StringValue Clone() { |
962 return new StringValue(this); | 860 return new StringValue(this); |
963 } | 861 } |
964 | 862 |
965 /// <summary>Field number for the "value" field.</summary> | 863 /// <summary>Field number for the "value" field.</summary> |
966 public const int ValueFieldNumber = 1; | 864 public const int ValueFieldNumber = 1; |
967 private string value_ = ""; | 865 private string value_ = ""; |
968 /// <summary> | 866 /// <summary> |
969 /// The string value. | 867 /// The string value. |
970 /// </summary> | 868 /// </summary> |
971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
972 public string Value { | 869 public string Value { |
973 get { return value_; } | 870 get { return value_; } |
974 set { | 871 set { |
975 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 872 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
976 } | 873 } |
977 } | 874 } |
978 | 875 |
979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
980 public override bool Equals(object other) { | 876 public override bool Equals(object other) { |
981 return Equals(other as StringValue); | 877 return Equals(other as StringValue); |
982 } | 878 } |
983 | 879 |
984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
985 public bool Equals(StringValue other) { | 880 public bool Equals(StringValue other) { |
986 if (ReferenceEquals(other, null)) { | 881 if (ReferenceEquals(other, null)) { |
987 return false; | 882 return false; |
988 } | 883 } |
989 if (ReferenceEquals(other, this)) { | 884 if (ReferenceEquals(other, this)) { |
990 return true; | 885 return true; |
991 } | 886 } |
992 if (Value != other.Value) return false; | 887 if (Value != other.Value) return false; |
993 return true; | 888 return true; |
994 } | 889 } |
995 | 890 |
996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
997 public override int GetHashCode() { | 891 public override int GetHashCode() { |
998 int hash = 1; | 892 int hash = 1; |
999 if (Value.Length != 0) hash ^= Value.GetHashCode(); | 893 if (Value.Length != 0) hash ^= Value.GetHashCode(); |
1000 return hash; | 894 return hash; |
1001 } | 895 } |
1002 | 896 |
1003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1004 public override string ToString() { | 897 public override string ToString() { |
1005 return pb::JsonFormatter.ToDiagnosticString(this); | 898 return pb::JsonFormatter.ToDiagnosticString(this); |
1006 } | 899 } |
1007 | 900 |
1008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1009 public void WriteTo(pb::CodedOutputStream output) { | 901 public void WriteTo(pb::CodedOutputStream output) { |
1010 if (Value.Length != 0) { | 902 if (Value.Length != 0) { |
1011 output.WriteRawTag(10); | 903 output.WriteRawTag(10); |
1012 output.WriteString(Value); | 904 output.WriteString(Value); |
1013 } | 905 } |
1014 } | 906 } |
1015 | 907 |
1016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1017 public int CalculateSize() { | 908 public int CalculateSize() { |
1018 int size = 0; | 909 int size = 0; |
1019 if (Value.Length != 0) { | 910 if (Value.Length != 0) { |
1020 size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); | 911 size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); |
1021 } | 912 } |
1022 return size; | 913 return size; |
1023 } | 914 } |
1024 | 915 |
1025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1026 public void MergeFrom(StringValue other) { | 916 public void MergeFrom(StringValue other) { |
1027 if (other == null) { | 917 if (other == null) { |
1028 return; | 918 return; |
1029 } | 919 } |
1030 if (other.Value.Length != 0) { | 920 if (other.Value.Length != 0) { |
1031 Value = other.Value; | 921 Value = other.Value; |
1032 } | 922 } |
1033 } | 923 } |
1034 | 924 |
1035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1036 public void MergeFrom(pb::CodedInputStream input) { | 925 public void MergeFrom(pb::CodedInputStream input) { |
1037 uint tag; | 926 uint tag; |
1038 while ((tag = input.ReadTag()) != 0) { | 927 while ((tag = input.ReadTag()) != 0) { |
1039 switch(tag) { | 928 switch(tag) { |
1040 default: | 929 default: |
1041 input.SkipLastField(); | 930 input.SkipLastField(); |
1042 break; | 931 break; |
1043 case 10: { | 932 case 10: { |
1044 Value = input.ReadString(); | 933 Value = input.ReadString(); |
1045 break; | 934 break; |
1046 } | 935 } |
1047 } | 936 } |
1048 } | 937 } |
1049 } | 938 } |
1050 | 939 |
1051 } | 940 } |
1052 | 941 |
1053 /// <summary> | 942 /// <summary> |
1054 /// Wrapper message for `bytes`. | 943 /// Wrapper message for `bytes`. |
1055 /// | 944 /// |
1056 /// The JSON representation for `BytesValue` is JSON string. | 945 /// The JSON representation for `BytesValue` is JSON string. |
1057 /// </summary> | 946 /// </summary> |
| 947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
1058 public sealed partial class BytesValue : pb::IMessage<BytesValue> { | 948 public sealed partial class BytesValue : pb::IMessage<BytesValue> { |
1059 private static readonly pb::MessageParser<BytesValue> _parser = new pb::Mess
ageParser<BytesValue>(() => new BytesValue()); | 949 private static readonly pb::MessageParser<BytesValue> _parser = new pb::Mess
ageParser<BytesValue>(() => new BytesValue()); |
1060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1061 public static pb::MessageParser<BytesValue> Parser { get { return _parser; }
} | 950 public static pb::MessageParser<BytesValue> Parser { get { return _parser; }
} |
1062 | 951 |
1063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1064 public static pbr::MessageDescriptor Descriptor { | 952 public static pbr::MessageDescriptor Descriptor { |
1065 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[8]; } | 953 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Des
criptor.MessageTypes[8]; } |
1066 } | 954 } |
1067 | 955 |
1068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1069 pbr::MessageDescriptor pb::IMessage.Descriptor { | 956 pbr::MessageDescriptor pb::IMessage.Descriptor { |
1070 get { return Descriptor; } | 957 get { return Descriptor; } |
1071 } | 958 } |
1072 | 959 |
1073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1074 public BytesValue() { | 960 public BytesValue() { |
1075 OnConstruction(); | 961 OnConstruction(); |
1076 } | 962 } |
1077 | 963 |
1078 partial void OnConstruction(); | 964 partial void OnConstruction(); |
1079 | 965 |
1080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1081 public BytesValue(BytesValue other) : this() { | 966 public BytesValue(BytesValue other) : this() { |
1082 value_ = other.value_; | 967 value_ = other.value_; |
1083 } | 968 } |
1084 | 969 |
1085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1086 public BytesValue Clone() { | 970 public BytesValue Clone() { |
1087 return new BytesValue(this); | 971 return new BytesValue(this); |
1088 } | 972 } |
1089 | 973 |
1090 /// <summary>Field number for the "value" field.</summary> | 974 /// <summary>Field number for the "value" field.</summary> |
1091 public const int ValueFieldNumber = 1; | 975 public const int ValueFieldNumber = 1; |
1092 private pb::ByteString value_ = pb::ByteString.Empty; | 976 private pb::ByteString value_ = pb::ByteString.Empty; |
1093 /// <summary> | 977 /// <summary> |
1094 /// The bytes value. | 978 /// The bytes value. |
1095 /// </summary> | 979 /// </summary> |
1096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1097 public pb::ByteString Value { | 980 public pb::ByteString Value { |
1098 get { return value_; } | 981 get { return value_; } |
1099 set { | 982 set { |
1100 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 983 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1101 } | 984 } |
1102 } | 985 } |
1103 | 986 |
1104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1105 public override bool Equals(object other) { | 987 public override bool Equals(object other) { |
1106 return Equals(other as BytesValue); | 988 return Equals(other as BytesValue); |
1107 } | 989 } |
1108 | 990 |
1109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1110 public bool Equals(BytesValue other) { | 991 public bool Equals(BytesValue other) { |
1111 if (ReferenceEquals(other, null)) { | 992 if (ReferenceEquals(other, null)) { |
1112 return false; | 993 return false; |
1113 } | 994 } |
1114 if (ReferenceEquals(other, this)) { | 995 if (ReferenceEquals(other, this)) { |
1115 return true; | 996 return true; |
1116 } | 997 } |
1117 if (Value != other.Value) return false; | 998 if (Value != other.Value) return false; |
1118 return true; | 999 return true; |
1119 } | 1000 } |
1120 | 1001 |
1121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1122 public override int GetHashCode() { | 1002 public override int GetHashCode() { |
1123 int hash = 1; | 1003 int hash = 1; |
1124 if (Value.Length != 0) hash ^= Value.GetHashCode(); | 1004 if (Value.Length != 0) hash ^= Value.GetHashCode(); |
1125 return hash; | 1005 return hash; |
1126 } | 1006 } |
1127 | 1007 |
1128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1129 public override string ToString() { | 1008 public override string ToString() { |
1130 return pb::JsonFormatter.ToDiagnosticString(this); | 1009 return pb::JsonFormatter.ToDiagnosticString(this); |
1131 } | 1010 } |
1132 | 1011 |
1133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1134 public void WriteTo(pb::CodedOutputStream output) { | 1012 public void WriteTo(pb::CodedOutputStream output) { |
1135 if (Value.Length != 0) { | 1013 if (Value.Length != 0) { |
1136 output.WriteRawTag(10); | 1014 output.WriteRawTag(10); |
1137 output.WriteBytes(Value); | 1015 output.WriteBytes(Value); |
1138 } | 1016 } |
1139 } | 1017 } |
1140 | 1018 |
1141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1142 public int CalculateSize() { | 1019 public int CalculateSize() { |
1143 int size = 0; | 1020 int size = 0; |
1144 if (Value.Length != 0) { | 1021 if (Value.Length != 0) { |
1145 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value); | 1022 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value); |
1146 } | 1023 } |
1147 return size; | 1024 return size; |
1148 } | 1025 } |
1149 | 1026 |
1150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1151 public void MergeFrom(BytesValue other) { | 1027 public void MergeFrom(BytesValue other) { |
1152 if (other == null) { | 1028 if (other == null) { |
1153 return; | 1029 return; |
1154 } | 1030 } |
1155 if (other.Value.Length != 0) { | 1031 if (other.Value.Length != 0) { |
1156 Value = other.Value; | 1032 Value = other.Value; |
1157 } | 1033 } |
1158 } | 1034 } |
1159 | 1035 |
1160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
1161 public void MergeFrom(pb::CodedInputStream input) { | 1036 public void MergeFrom(pb::CodedInputStream input) { |
1162 uint tag; | 1037 uint tag; |
1163 while ((tag = input.ReadTag()) != 0) { | 1038 while ((tag = input.ReadTag()) != 0) { |
1164 switch(tag) { | 1039 switch(tag) { |
1165 default: | 1040 default: |
1166 input.SkipLastField(); | 1041 input.SkipLastField(); |
1167 break; | 1042 break; |
1168 case 10: { | 1043 case 10: { |
1169 Value = input.ReadBytes(); | 1044 Value = input.ReadBytes(); |
1170 break; | 1045 break; |
1171 } | 1046 } |
1172 } | 1047 } |
1173 } | 1048 } |
1174 } | 1049 } |
1175 | 1050 |
1176 } | 1051 } |
1177 | 1052 |
1178 #endregion | 1053 #endregion |
1179 | 1054 |
1180 } | 1055 } |
1181 | 1056 |
1182 #endregion Designer generated code | 1057 #endregion Designer generated code |
OLD | NEW |