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