| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/common/colors.proto |
| | 4 | | // </auto-generated> |
| | 5 | | #pragma warning disable 1591, 0612, 3021 |
| | 6 | | #region Designer generated code |
| | 7 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace Decentraland.Common { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/common/colors.proto</summary> |
| | 15 | | public static partial class ColorsReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/common/colors.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static ColorsReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiBkZWNlbnRyYWxhbmQvY29tbW9uL2NvbG9ycy5wcm90bxITZGVjZW50cmFs", |
| | 28 | | "YW5kLmNvbW1vbiIpCgZDb2xvcjMSCQoBchgBIAEoAhIJCgFnGAIgASgCEgkK", |
| | 29 | | "AWIYAyABKAIiNAoGQ29sb3I0EgkKAXIYASABKAISCQoBZxgCIAEoAhIJCgFi", |
| | 30 | | "GAMgASgCEgkKAWEYBCABKAJiBnByb3RvMw==")); |
| | 31 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 32 | | new pbr::FileDescriptor[] { }, |
| | 33 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 34 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Color3), global::Decentraland.Common.Color3 |
| | 35 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Color4), global::Decentraland.Common.Color4 |
| | 36 | | })); |
| | 37 | | } |
| | 38 | | #endregion |
| | 39 | |
|
| | 40 | | } |
| | 41 | | #region Messages |
| | 42 | | public sealed partial class Color3 : pb::IMessage<Color3> |
| | 43 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 44 | | , pb::IBufferMessage |
| | 45 | | #endif |
| | 46 | | { |
| 1 | 47 | | private static readonly pb::MessageParser<Color3> _parser = new pb::MessageParser<Color3>(() => new Color3()); |
| | 48 | | private pb::UnknownFieldSet _unknownFields; |
| | 49 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 50 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 51 | | public static pb::MessageParser<Color3> Parser { get { return _parser; } } |
| | 52 | |
|
| | 53 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 54 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 55 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 56 | | get { return global::Decentraland.Common.ColorsReflection.Descriptor.MessageTypes[0]; } |
| | 57 | | } |
| | 58 | |
|
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 60 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 61 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 62 | | get { return Descriptor; } |
| | 63 | | } |
| | 64 | |
|
| | 65 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 66 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 83 | 67 | | public Color3() { |
| | 68 | | OnConstruction(); |
| 83 | 69 | | } |
| | 70 | |
|
| | 71 | | partial void OnConstruction(); |
| | 72 | |
|
| | 73 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 74 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 38 | 75 | | public Color3(Color3 other) : this() { |
| 38 | 76 | | r_ = other.r_; |
| 38 | 77 | | g_ = other.g_; |
| 38 | 78 | | b_ = other.b_; |
| 38 | 79 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 38 | 80 | | } |
| | 81 | |
|
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 84 | | public Color3 Clone() { |
| 0 | 85 | | return new Color3(this); |
| | 86 | | } |
| | 87 | |
|
| | 88 | | /// <summary>Field number for the "r" field.</summary> |
| | 89 | | public const int RFieldNumber = 1; |
| | 90 | | private float r_; |
| | 91 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 92 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 93 | | public float R { |
| 51 | 94 | | get { return r_; } |
| | 95 | | set { |
| 45 | 96 | | r_ = value; |
| 45 | 97 | | } |
| | 98 | | } |
| | 99 | |
|
| | 100 | | /// <summary>Field number for the "g" field.</summary> |
| | 101 | | public const int GFieldNumber = 2; |
| | 102 | | private float g_; |
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 105 | | public float G { |
| 48 | 106 | | get { return g_; } |
| | 107 | | set { |
| 44 | 108 | | g_ = value; |
| 44 | 109 | | } |
| | 110 | | } |
| | 111 | |
|
| | 112 | | /// <summary>Field number for the "b" field.</summary> |
| | 113 | | public const int BFieldNumber = 3; |
| | 114 | | private float b_; |
| | 115 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 116 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 117 | | public float B { |
| 50 | 118 | | get { return b_; } |
| | 119 | | set { |
| 46 | 120 | | b_ = value; |
| 46 | 121 | | } |
| | 122 | | } |
| | 123 | |
|
| | 124 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 125 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 126 | | public override bool Equals(object other) { |
| 0 | 127 | | return Equals(other as Color3); |
| | 128 | | } |
| | 129 | |
|
| | 130 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 131 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 132 | | public bool Equals(Color3 other) { |
| 3 | 133 | | if (ReferenceEquals(other, null)) { |
| 0 | 134 | | return false; |
| | 135 | | } |
| 3 | 136 | | if (ReferenceEquals(other, this)) { |
| 2 | 137 | | return true; |
| | 138 | | } |
| 2 | 139 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; |
| 0 | 140 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; |
| 0 | 141 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; |
| 0 | 142 | | return Equals(_unknownFields, other._unknownFields); |
| | 143 | | } |
| | 144 | |
|
| | 145 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 146 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 147 | | public override int GetHashCode() { |
| 0 | 148 | | int hash = 1; |
| 0 | 149 | | if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); |
| 0 | 150 | | if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); |
| 0 | 151 | | if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); |
| 0 | 152 | | if (_unknownFields != null) { |
| 0 | 153 | | hash ^= _unknownFields.GetHashCode(); |
| | 154 | | } |
| 0 | 155 | | return hash; |
| | 156 | | } |
| | 157 | |
|
| | 158 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 159 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 160 | | public override string ToString() { |
| 0 | 161 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 162 | | } |
| | 163 | |
|
| | 164 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 165 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 166 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 167 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 168 | | output.WriteRawMessage(this); |
| | 169 | | #else |
| 0 | 170 | | if (R != 0F) { |
| 0 | 171 | | output.WriteRawTag(13); |
| 0 | 172 | | output.WriteFloat(R); |
| | 173 | | } |
| 0 | 174 | | if (G != 0F) { |
| 0 | 175 | | output.WriteRawTag(21); |
| 0 | 176 | | output.WriteFloat(G); |
| | 177 | | } |
| 0 | 178 | | if (B != 0F) { |
| 0 | 179 | | output.WriteRawTag(29); |
| 0 | 180 | | output.WriteFloat(B); |
| | 181 | | } |
| 0 | 182 | | if (_unknownFields != null) { |
| 0 | 183 | | _unknownFields.WriteTo(output); |
| | 184 | | } |
| | 185 | | #endif |
| 0 | 186 | | } |
| | 187 | |
|
| | 188 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 189 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 190 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 191 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 192 | | if (R != 0F) { |
| | 193 | | output.WriteRawTag(13); |
| | 194 | | output.WriteFloat(R); |
| | 195 | | } |
| | 196 | | if (G != 0F) { |
| | 197 | | output.WriteRawTag(21); |
| | 198 | | output.WriteFloat(G); |
| | 199 | | } |
| | 200 | | if (B != 0F) { |
| | 201 | | output.WriteRawTag(29); |
| | 202 | | output.WriteFloat(B); |
| | 203 | | } |
| | 204 | | if (_unknownFields != null) { |
| | 205 | | _unknownFields.WriteTo(ref output); |
| | 206 | | } |
| | 207 | | } |
| | 208 | | #endif |
| | 209 | |
|
| | 210 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 211 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 212 | | public int CalculateSize() { |
| 0 | 213 | | int size = 0; |
| 0 | 214 | | if (R != 0F) { |
| 0 | 215 | | size += 1 + 4; |
| | 216 | | } |
| 0 | 217 | | if (G != 0F) { |
| 0 | 218 | | size += 1 + 4; |
| | 219 | | } |
| 0 | 220 | | if (B != 0F) { |
| 0 | 221 | | size += 1 + 4; |
| | 222 | | } |
| 0 | 223 | | if (_unknownFields != null) { |
| 0 | 224 | | size += _unknownFields.CalculateSize(); |
| | 225 | | } |
| 0 | 226 | | return size; |
| | 227 | | } |
| | 228 | |
|
| | 229 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 230 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 231 | | public void MergeFrom(Color3 other) { |
| 0 | 232 | | if (other == null) { |
| 0 | 233 | | return; |
| | 234 | | } |
| 0 | 235 | | if (other.R != 0F) { |
| 0 | 236 | | R = other.R; |
| | 237 | | } |
| 0 | 238 | | if (other.G != 0F) { |
| 0 | 239 | | G = other.G; |
| | 240 | | } |
| 0 | 241 | | if (other.B != 0F) { |
| 0 | 242 | | B = other.B; |
| | 243 | | } |
| 0 | 244 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 245 | | } |
| | 246 | |
|
| | 247 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 248 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 249 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 250 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 251 | | input.ReadRawMessage(this); |
| | 252 | | #else |
| | 253 | | uint tag; |
| 0 | 254 | | while ((tag = input.ReadTag()) != 0) { |
| | 255 | | switch(tag) { |
| | 256 | | default: |
| 0 | 257 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 258 | | break; |
| | 259 | | case 13: { |
| 0 | 260 | | R = input.ReadFloat(); |
| 0 | 261 | | break; |
| | 262 | | } |
| | 263 | | case 21: { |
| 0 | 264 | | G = input.ReadFloat(); |
| 0 | 265 | | break; |
| | 266 | | } |
| | 267 | | case 29: { |
| 0 | 268 | | B = input.ReadFloat(); |
| | 269 | | break; |
| | 270 | | } |
| | 271 | | } |
| | 272 | | } |
| | 273 | | #endif |
| 0 | 274 | | } |
| | 275 | |
|
| | 276 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 277 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 278 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 279 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 280 | | uint tag; |
| | 281 | | while ((tag = input.ReadTag()) != 0) { |
| | 282 | | switch(tag) { |
| | 283 | | default: |
| | 284 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 285 | | break; |
| | 286 | | case 13: { |
| | 287 | | R = input.ReadFloat(); |
| | 288 | | break; |
| | 289 | | } |
| | 290 | | case 21: { |
| | 291 | | G = input.ReadFloat(); |
| | 292 | | break; |
| | 293 | | } |
| | 294 | | case 29: { |
| | 295 | | B = input.ReadFloat(); |
| | 296 | | break; |
| | 297 | | } |
| | 298 | | } |
| | 299 | | } |
| | 300 | | } |
| | 301 | | #endif |
| | 302 | |
|
| | 303 | | } |
| | 304 | |
|
| | 305 | | public sealed partial class Color4 : pb::IMessage<Color4> |
| | 306 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 307 | | , pb::IBufferMessage |
| | 308 | | #endif |
| | 309 | | { |
| | 310 | | private static readonly pb::MessageParser<Color4> _parser = new pb::MessageParser<Color4>(() => new Color4()); |
| | 311 | | private pb::UnknownFieldSet _unknownFields; |
| | 312 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 313 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 314 | | public static pb::MessageParser<Color4> Parser { get { return _parser; } } |
| | 315 | |
|
| | 316 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 317 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 318 | | public static pbr::MessageDescriptor Descriptor { |
| | 319 | | get { return global::Decentraland.Common.ColorsReflection.Descriptor.MessageTypes[1]; } |
| | 320 | | } |
| | 321 | |
|
| | 322 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 323 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 324 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 325 | | get { return Descriptor; } |
| | 326 | | } |
| | 327 | |
|
| | 328 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 329 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 330 | | public Color4() { |
| | 331 | | OnConstruction(); |
| | 332 | | } |
| | 333 | |
|
| | 334 | | partial void OnConstruction(); |
| | 335 | |
|
| | 336 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 337 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 338 | | public Color4(Color4 other) : this() { |
| | 339 | | r_ = other.r_; |
| | 340 | | g_ = other.g_; |
| | 341 | | b_ = other.b_; |
| | 342 | | a_ = other.a_; |
| | 343 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 344 | | } |
| | 345 | |
|
| | 346 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 347 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 348 | | public Color4 Clone() { |
| | 349 | | return new Color4(this); |
| | 350 | | } |
| | 351 | |
|
| | 352 | | /// <summary>Field number for the "r" field.</summary> |
| | 353 | | public const int RFieldNumber = 1; |
| | 354 | | private float r_; |
| | 355 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 356 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 357 | | public float R { |
| | 358 | | get { return r_; } |
| | 359 | | set { |
| | 360 | | r_ = value; |
| | 361 | | } |
| | 362 | | } |
| | 363 | |
|
| | 364 | | /// <summary>Field number for the "g" field.</summary> |
| | 365 | | public const int GFieldNumber = 2; |
| | 366 | | private float g_; |
| | 367 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 368 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 369 | | public float G { |
| | 370 | | get { return g_; } |
| | 371 | | set { |
| | 372 | | g_ = value; |
| | 373 | | } |
| | 374 | | } |
| | 375 | |
|
| | 376 | | /// <summary>Field number for the "b" field.</summary> |
| | 377 | | public const int BFieldNumber = 3; |
| | 378 | | private float b_; |
| | 379 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 380 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 381 | | public float B { |
| | 382 | | get { return b_; } |
| | 383 | | set { |
| | 384 | | b_ = value; |
| | 385 | | } |
| | 386 | | } |
| | 387 | |
|
| | 388 | | /// <summary>Field number for the "a" field.</summary> |
| | 389 | | public const int AFieldNumber = 4; |
| | 390 | | private float a_; |
| | 391 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 392 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 393 | | public float A { |
| | 394 | | get { return a_; } |
| | 395 | | set { |
| | 396 | | a_ = value; |
| | 397 | | } |
| | 398 | | } |
| | 399 | |
|
| | 400 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 401 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 402 | | public override bool Equals(object other) { |
| | 403 | | return Equals(other as Color4); |
| | 404 | | } |
| | 405 | |
|
| | 406 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 407 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 408 | | public bool Equals(Color4 other) { |
| | 409 | | if (ReferenceEquals(other, null)) { |
| | 410 | | return false; |
| | 411 | | } |
| | 412 | | if (ReferenceEquals(other, this)) { |
| | 413 | | return true; |
| | 414 | | } |
| | 415 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; |
| | 416 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; |
| | 417 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; |
| | 418 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; |
| | 419 | | return Equals(_unknownFields, other._unknownFields); |
| | 420 | | } |
| | 421 | |
|
| | 422 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 423 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 424 | | public override int GetHashCode() { |
| | 425 | | int hash = 1; |
| | 426 | | if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); |
| | 427 | | if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); |
| | 428 | | if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); |
| | 429 | | if (A != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); |
| | 430 | | if (_unknownFields != null) { |
| | 431 | | hash ^= _unknownFields.GetHashCode(); |
| | 432 | | } |
| | 433 | | return hash; |
| | 434 | | } |
| | 435 | |
|
| | 436 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 437 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 438 | | public override string ToString() { |
| | 439 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 440 | | } |
| | 441 | |
|
| | 442 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 443 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 444 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 445 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 446 | | output.WriteRawMessage(this); |
| | 447 | | #else |
| | 448 | | if (R != 0F) { |
| | 449 | | output.WriteRawTag(13); |
| | 450 | | output.WriteFloat(R); |
| | 451 | | } |
| | 452 | | if (G != 0F) { |
| | 453 | | output.WriteRawTag(21); |
| | 454 | | output.WriteFloat(G); |
| | 455 | | } |
| | 456 | | if (B != 0F) { |
| | 457 | | output.WriteRawTag(29); |
| | 458 | | output.WriteFloat(B); |
| | 459 | | } |
| | 460 | | if (A != 0F) { |
| | 461 | | output.WriteRawTag(37); |
| | 462 | | output.WriteFloat(A); |
| | 463 | | } |
| | 464 | | if (_unknownFields != null) { |
| | 465 | | _unknownFields.WriteTo(output); |
| | 466 | | } |
| | 467 | | #endif |
| | 468 | | } |
| | 469 | |
|
| | 470 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 471 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 472 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 473 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 474 | | if (R != 0F) { |
| | 475 | | output.WriteRawTag(13); |
| | 476 | | output.WriteFloat(R); |
| | 477 | | } |
| | 478 | | if (G != 0F) { |
| | 479 | | output.WriteRawTag(21); |
| | 480 | | output.WriteFloat(G); |
| | 481 | | } |
| | 482 | | if (B != 0F) { |
| | 483 | | output.WriteRawTag(29); |
| | 484 | | output.WriteFloat(B); |
| | 485 | | } |
| | 486 | | if (A != 0F) { |
| | 487 | | output.WriteRawTag(37); |
| | 488 | | output.WriteFloat(A); |
| | 489 | | } |
| | 490 | | if (_unknownFields != null) { |
| | 491 | | _unknownFields.WriteTo(ref output); |
| | 492 | | } |
| | 493 | | } |
| | 494 | | #endif |
| | 495 | |
|
| | 496 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 497 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 498 | | public int CalculateSize() { |
| | 499 | | int size = 0; |
| | 500 | | if (R != 0F) { |
| | 501 | | size += 1 + 4; |
| | 502 | | } |
| | 503 | | if (G != 0F) { |
| | 504 | | size += 1 + 4; |
| | 505 | | } |
| | 506 | | if (B != 0F) { |
| | 507 | | size += 1 + 4; |
| | 508 | | } |
| | 509 | | if (A != 0F) { |
| | 510 | | size += 1 + 4; |
| | 511 | | } |
| | 512 | | if (_unknownFields != null) { |
| | 513 | | size += _unknownFields.CalculateSize(); |
| | 514 | | } |
| | 515 | | return size; |
| | 516 | | } |
| | 517 | |
|
| | 518 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 519 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 520 | | public void MergeFrom(Color4 other) { |
| | 521 | | if (other == null) { |
| | 522 | | return; |
| | 523 | | } |
| | 524 | | if (other.R != 0F) { |
| | 525 | | R = other.R; |
| | 526 | | } |
| | 527 | | if (other.G != 0F) { |
| | 528 | | G = other.G; |
| | 529 | | } |
| | 530 | | if (other.B != 0F) { |
| | 531 | | B = other.B; |
| | 532 | | } |
| | 533 | | if (other.A != 0F) { |
| | 534 | | A = other.A; |
| | 535 | | } |
| | 536 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 537 | | } |
| | 538 | |
|
| | 539 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 540 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 541 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 542 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 543 | | input.ReadRawMessage(this); |
| | 544 | | #else |
| | 545 | | uint tag; |
| | 546 | | while ((tag = input.ReadTag()) != 0) { |
| | 547 | | switch(tag) { |
| | 548 | | default: |
| | 549 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 550 | | break; |
| | 551 | | case 13: { |
| | 552 | | R = input.ReadFloat(); |
| | 553 | | break; |
| | 554 | | } |
| | 555 | | case 21: { |
| | 556 | | G = input.ReadFloat(); |
| | 557 | | break; |
| | 558 | | } |
| | 559 | | case 29: { |
| | 560 | | B = input.ReadFloat(); |
| | 561 | | break; |
| | 562 | | } |
| | 563 | | case 37: { |
| | 564 | | A = input.ReadFloat(); |
| | 565 | | break; |
| | 566 | | } |
| | 567 | | } |
| | 568 | | } |
| | 569 | | #endif |
| | 570 | | } |
| | 571 | |
|
| | 572 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 573 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 574 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 575 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 576 | | uint tag; |
| | 577 | | while ((tag = input.ReadTag()) != 0) { |
| | 578 | | switch(tag) { |
| | 579 | | default: |
| | 580 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 581 | | break; |
| | 582 | | case 13: { |
| | 583 | | R = input.ReadFloat(); |
| | 584 | | break; |
| | 585 | | } |
| | 586 | | case 21: { |
| | 587 | | G = input.ReadFloat(); |
| | 588 | | break; |
| | 589 | | } |
| | 590 | | case 29: { |
| | 591 | | B = input.ReadFloat(); |
| | 592 | | break; |
| | 593 | | } |
| | 594 | | case 37: { |
| | 595 | | A = input.ReadFloat(); |
| | 596 | | break; |
| | 597 | | } |
| | 598 | | } |
| | 599 | | } |
| | 600 | | } |
| | 601 | | #endif |
| | 602 | |
|
| | 603 | | } |
| | 604 | |
|
| | 605 | | #endregion |
| | 606 | |
|
| | 607 | | } |
| | 608 | |
|
| | 609 | | #endregion Designer generated code |