| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: ecs/components/common/Color4.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 ecs/components/common/Color4.proto</summary> |
| | 15 | | public static partial class Color4Reflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for ecs/components/common/Color4.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static Color4Reflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiJlY3MvY29tcG9uZW50cy9jb21tb24vQ29sb3I0LnByb3RvEhBkZWNlbnRy", |
| | 28 | | "YWxhbmQuZWNzIjQKBkNvbG9yNBIJCgFyGAEgASgCEgkKAWcYAiABKAISCQoB", |
| | 29 | | "YhgDIAEoAhIJCgFhGAQgASgCQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv", |
| | 30 | | "dG8z")); |
| 0 | 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::DCL.ECSComponents.Color4), global::DCL.ECSComponents.Color4.Par |
| | 35 | | })); |
| 0 | 36 | | } |
| | 37 | | #endregion |
| | 38 | |
|
| | 39 | | } |
| | 40 | | #region Messages |
| | 41 | | public sealed partial class Color4 : pb::IMessage<Color4> |
| | 42 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 43 | | , pb::IBufferMessage |
| | 44 | | #endif |
| | 45 | | { |
| | 46 | | private static readonly pb::MessageParser<Color4> _parser = new pb::MessageParser<Color4>(() => new Color4()); |
| | 47 | | private pb::UnknownFieldSet _unknownFields; |
| | 48 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 49 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 50 | | public static pb::MessageParser<Color4> Parser { get { return _parser; } } |
| | 51 | |
|
| | 52 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 53 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 54 | | public static pbr::MessageDescriptor Descriptor { |
| | 55 | | get { return global::DCL.ECSComponents.Color4Reflection.Descriptor.MessageTypes[0]; } |
| | 56 | | } |
| | 57 | |
|
| | 58 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 59 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 60 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 61 | | get { return Descriptor; } |
| | 62 | | } |
| | 63 | |
|
| | 64 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 65 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 66 | | public Color4() { |
| | 67 | | OnConstruction(); |
| | 68 | | } |
| | 69 | |
|
| | 70 | | partial void OnConstruction(); |
| | 71 | |
|
| | 72 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 73 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 74 | | public Color4(Color4 other) : this() { |
| | 75 | | r_ = other.r_; |
| | 76 | | g_ = other.g_; |
| | 77 | | b_ = other.b_; |
| | 78 | | a_ = other.a_; |
| | 79 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 80 | | } |
| | 81 | |
|
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 84 | | public Color4 Clone() { |
| | 85 | | return new Color4(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 { |
| | 94 | | get { return r_; } |
| | 95 | | set { |
| | 96 | | r_ = value; |
| | 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 { |
| | 106 | | get { return g_; } |
| | 107 | | set { |
| | 108 | | g_ = value; |
| | 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 { |
| | 118 | | get { return b_; } |
| | 119 | | set { |
| | 120 | | b_ = value; |
| | 121 | | } |
| | 122 | | } |
| | 123 | |
|
| | 124 | | /// <summary>Field number for the "a" field.</summary> |
| | 125 | | public const int AFieldNumber = 4; |
| | 126 | | private float a_; |
| | 127 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 128 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 129 | | public float A { |
| | 130 | | get { return a_; } |
| | 131 | | set { |
| | 132 | | a_ = value; |
| | 133 | | } |
| | 134 | | } |
| | 135 | |
|
| | 136 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 137 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 138 | | public override bool Equals(object other) { |
| | 139 | | return Equals(other as Color4); |
| | 140 | | } |
| | 141 | |
|
| | 142 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 143 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 144 | | public bool Equals(Color4 other) { |
| | 145 | | if (ReferenceEquals(other, null)) { |
| | 146 | | return false; |
| | 147 | | } |
| | 148 | | if (ReferenceEquals(other, this)) { |
| | 149 | | return true; |
| | 150 | | } |
| | 151 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; |
| | 152 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; |
| | 153 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; |
| | 154 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; |
| | 155 | | return Equals(_unknownFields, other._unknownFields); |
| | 156 | | } |
| | 157 | |
|
| | 158 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 159 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 160 | | public override int GetHashCode() { |
| | 161 | | int hash = 1; |
| | 162 | | if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); |
| | 163 | | if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); |
| | 164 | | if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); |
| | 165 | | if (A != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); |
| | 166 | | if (_unknownFields != null) { |
| | 167 | | hash ^= _unknownFields.GetHashCode(); |
| | 168 | | } |
| | 169 | | return hash; |
| | 170 | | } |
| | 171 | |
|
| | 172 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 173 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 174 | | public override string ToString() { |
| | 175 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 176 | | } |
| | 177 | |
|
| | 178 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 179 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 180 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 181 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 182 | | output.WriteRawMessage(this); |
| | 183 | | #else |
| | 184 | | if (R != 0F) { |
| | 185 | | output.WriteRawTag(13); |
| | 186 | | output.WriteFloat(R); |
| | 187 | | } |
| | 188 | | if (G != 0F) { |
| | 189 | | output.WriteRawTag(21); |
| | 190 | | output.WriteFloat(G); |
| | 191 | | } |
| | 192 | | if (B != 0F) { |
| | 193 | | output.WriteRawTag(29); |
| | 194 | | output.WriteFloat(B); |
| | 195 | | } |
| | 196 | | if (A != 0F) { |
| | 197 | | output.WriteRawTag(37); |
| | 198 | | output.WriteFloat(A); |
| | 199 | | } |
| | 200 | | if (_unknownFields != null) { |
| | 201 | | _unknownFields.WriteTo(output); |
| | 202 | | } |
| | 203 | | #endif |
| | 204 | | } |
| | 205 | |
|
| | 206 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 207 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 208 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 209 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 210 | | if (R != 0F) { |
| | 211 | | output.WriteRawTag(13); |
| | 212 | | output.WriteFloat(R); |
| | 213 | | } |
| | 214 | | if (G != 0F) { |
| | 215 | | output.WriteRawTag(21); |
| | 216 | | output.WriteFloat(G); |
| | 217 | | } |
| | 218 | | if (B != 0F) { |
| | 219 | | output.WriteRawTag(29); |
| | 220 | | output.WriteFloat(B); |
| | 221 | | } |
| | 222 | | if (A != 0F) { |
| | 223 | | output.WriteRawTag(37); |
| | 224 | | output.WriteFloat(A); |
| | 225 | | } |
| | 226 | | if (_unknownFields != null) { |
| | 227 | | _unknownFields.WriteTo(ref output); |
| | 228 | | } |
| | 229 | | } |
| | 230 | | #endif |
| | 231 | |
|
| | 232 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 233 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 234 | | public int CalculateSize() { |
| | 235 | | int size = 0; |
| | 236 | | if (R != 0F) { |
| | 237 | | size += 1 + 4; |
| | 238 | | } |
| | 239 | | if (G != 0F) { |
| | 240 | | size += 1 + 4; |
| | 241 | | } |
| | 242 | | if (B != 0F) { |
| | 243 | | size += 1 + 4; |
| | 244 | | } |
| | 245 | | if (A != 0F) { |
| | 246 | | size += 1 + 4; |
| | 247 | | } |
| | 248 | | if (_unknownFields != null) { |
| | 249 | | size += _unknownFields.CalculateSize(); |
| | 250 | | } |
| | 251 | | return size; |
| | 252 | | } |
| | 253 | |
|
| | 254 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 255 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 256 | | public void MergeFrom(Color4 other) { |
| | 257 | | if (other == null) { |
| | 258 | | return; |
| | 259 | | } |
| | 260 | | if (other.R != 0F) { |
| | 261 | | R = other.R; |
| | 262 | | } |
| | 263 | | if (other.G != 0F) { |
| | 264 | | G = other.G; |
| | 265 | | } |
| | 266 | | if (other.B != 0F) { |
| | 267 | | B = other.B; |
| | 268 | | } |
| | 269 | | if (other.A != 0F) { |
| | 270 | | A = other.A; |
| | 271 | | } |
| | 272 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 273 | | } |
| | 274 | |
|
| | 275 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 276 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 277 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 278 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 279 | | input.ReadRawMessage(this); |
| | 280 | | #else |
| | 281 | | uint tag; |
| | 282 | | while ((tag = input.ReadTag()) != 0) { |
| | 283 | | switch(tag) { |
| | 284 | | default: |
| | 285 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, 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 | | case 37: { |
| | 300 | | A = input.ReadFloat(); |
| | 301 | | break; |
| | 302 | | } |
| | 303 | | } |
| | 304 | | } |
| | 305 | | #endif |
| | 306 | | } |
| | 307 | |
|
| | 308 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 309 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 310 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 311 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 312 | | uint tag; |
| | 313 | | while ((tag = input.ReadTag()) != 0) { |
| | 314 | | switch(tag) { |
| | 315 | | default: |
| | 316 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 317 | | break; |
| | 318 | | case 13: { |
| | 319 | | R = input.ReadFloat(); |
| | 320 | | break; |
| | 321 | | } |
| | 322 | | case 21: { |
| | 323 | | G = input.ReadFloat(); |
| | 324 | | break; |
| | 325 | | } |
| | 326 | | case 29: { |
| | 327 | | B = input.ReadFloat(); |
| | 328 | | break; |
| | 329 | | } |
| | 330 | | case 37: { |
| | 331 | | A = input.ReadFloat(); |
| | 332 | | break; |
| | 333 | | } |
| | 334 | | } |
| | 335 | | } |
| | 336 | | } |
| | 337 | | #endif |
| | 338 | |
|
| | 339 | | } |
| | 340 | |
|
| | 341 | | #endregion |
| | 342 | |
|
| | 343 | | } |
| | 344 | |
|
| | 345 | | #endregion Designer generated code |