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