| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: Color3.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 | | /// <summary>Holder for reflection information generated from Color3.proto</summary> |
| | 13 | | public static partial class Color3Reflection { |
| | 14 | |
|
| | 15 | | #region Descriptor |
| | 16 | | /// <summary>File descriptor for Color3.proto</summary> |
| | 17 | | public static pbr::FileDescriptor Descriptor { |
| | 18 | | get { return descriptor; } |
| | 19 | | } |
| | 20 | | private static pbr::FileDescriptor descriptor; |
| | 21 | |
|
| | 22 | | static Color3Reflection() { |
| | 23 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 24 | | string.Concat( |
| | 25 | | "CgxDb2xvcjMucHJvdG8iKQoGQ29sb3IzEgkKAXIYASABKAISCQoBZxgCIAEo", |
| | 26 | | "AhIJCgFiGAMgASgCYgZwcm90bzM=")); |
| | 27 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 28 | | new pbr::FileDescriptor[] { }, |
| | 29 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 30 | | new pbr::GeneratedClrTypeInfo(typeof(global::Color3), global::Color3.Parser, new[]{ "R", "G", "B" }, null, nul |
| | 31 | | })); |
| | 32 | | } |
| | 33 | | #endregion |
| | 34 | |
|
| | 35 | | } |
| | 36 | | #region Messages |
| | 37 | | public sealed partial class Color3 : pb::IMessage<Color3> |
| | 38 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 39 | | , pb::IBufferMessage |
| | 40 | | #endif |
| | 41 | | { |
| 1 | 42 | | private static readonly pb::MessageParser<Color3> _parser = new pb::MessageParser<Color3>(() => new Color3()); |
| | 43 | | private pb::UnknownFieldSet _unknownFields; |
| | 44 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 45 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 46 | | public static pb::MessageParser<Color3> Parser { get { return _parser; } } |
| | 47 | |
|
| | 48 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 49 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 50 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 51 | | get { return global::Color3Reflection.Descriptor.MessageTypes[0]; } |
| | 52 | | } |
| | 53 | |
|
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 55 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 56 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 57 | | get { return Descriptor; } |
| | 58 | | } |
| | 59 | |
|
| | 60 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 61 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 8 | 62 | | public Color3() { |
| | 63 | | OnConstruction(); |
| 8 | 64 | | } |
| | 65 | |
|
| | 66 | | partial void OnConstruction(); |
| | 67 | |
|
| | 68 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 69 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 4 | 70 | | public Color3(Color3 other) : this() { |
| 4 | 71 | | r_ = other.r_; |
| 4 | 72 | | g_ = other.g_; |
| 4 | 73 | | b_ = other.b_; |
| 4 | 74 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 4 | 75 | | } |
| | 76 | |
|
| | 77 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 78 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 79 | | public Color3 Clone() { |
| 0 | 80 | | return new Color3(this); |
| | 81 | | } |
| | 82 | |
|
| | 83 | | /// <summary>Field number for the "r" field.</summary> |
| | 84 | | public const int RFieldNumber = 1; |
| | 85 | | private float r_; |
| | 86 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 87 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 88 | | public float R { |
| 0 | 89 | | get { return r_; } |
| | 90 | | set { |
| 8 | 91 | | r_ = value; |
| 8 | 92 | | } |
| | 93 | | } |
| | 94 | |
|
| | 95 | | /// <summary>Field number for the "g" field.</summary> |
| | 96 | | public const int GFieldNumber = 2; |
| | 97 | | private float g_; |
| | 98 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 99 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 100 | | public float G { |
| 0 | 101 | | get { return g_; } |
| | 102 | | set { |
| 8 | 103 | | g_ = value; |
| 8 | 104 | | } |
| | 105 | | } |
| | 106 | |
|
| | 107 | | /// <summary>Field number for the "b" field.</summary> |
| | 108 | | public const int BFieldNumber = 3; |
| | 109 | | private float b_; |
| | 110 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 111 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 112 | | public float B { |
| 0 | 113 | | get { return b_; } |
| | 114 | | set { |
| 8 | 115 | | b_ = value; |
| 8 | 116 | | } |
| | 117 | | } |
| | 118 | |
|
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 121 | | public override bool Equals(object other) { |
| 0 | 122 | | return Equals(other as Color3); |
| | 123 | | } |
| | 124 | |
|
| | 125 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 126 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 127 | | public bool Equals(Color3 other) { |
| 9 | 128 | | if (ReferenceEquals(other, null)) { |
| 0 | 129 | | return false; |
| | 130 | | } |
| 9 | 131 | | if (ReferenceEquals(other, this)) { |
| 0 | 132 | | return true; |
| | 133 | | } |
| 13 | 134 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; |
| 5 | 135 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; |
| 5 | 136 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; |
| 5 | 137 | | return Equals(_unknownFields, other._unknownFields); |
| | 138 | | } |
| | 139 | |
|
| | 140 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 141 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 142 | | public override int GetHashCode() { |
| 3 | 143 | | int hash = 1; |
| 3 | 144 | | if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); |
| 3 | 145 | | if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); |
| 3 | 146 | | if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); |
| 3 | 147 | | if (_unknownFields != null) { |
| 0 | 148 | | hash ^= _unknownFields.GetHashCode(); |
| | 149 | | } |
| 3 | 150 | | return hash; |
| | 151 | | } |
| | 152 | |
|
| | 153 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 154 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 155 | | public override string ToString() { |
| 0 | 156 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 157 | | } |
| | 158 | |
|
| | 159 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 160 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 161 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 162 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 163 | | output.WriteRawMessage(this); |
| | 164 | | #else |
| 8 | 165 | | if (R != 0F) { |
| 7 | 166 | | output.WriteRawTag(13); |
| 7 | 167 | | output.WriteFloat(R); |
| | 168 | | } |
| 8 | 169 | | if (G != 0F) { |
| 7 | 170 | | output.WriteRawTag(21); |
| 7 | 171 | | output.WriteFloat(G); |
| | 172 | | } |
| 8 | 173 | | if (B != 0F) { |
| 4 | 174 | | output.WriteRawTag(29); |
| 4 | 175 | | output.WriteFloat(B); |
| | 176 | | } |
| 8 | 177 | | if (_unknownFields != null) { |
| 0 | 178 | | _unknownFields.WriteTo(output); |
| | 179 | | } |
| | 180 | | #endif |
| 8 | 181 | | } |
| | 182 | |
|
| | 183 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 184 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 185 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 186 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 187 | | if (R != 0F) { |
| | 188 | | output.WriteRawTag(13); |
| | 189 | | output.WriteFloat(R); |
| | 190 | | } |
| | 191 | | if (G != 0F) { |
| | 192 | | output.WriteRawTag(21); |
| | 193 | | output.WriteFloat(G); |
| | 194 | | } |
| | 195 | | if (B != 0F) { |
| | 196 | | output.WriteRawTag(29); |
| | 197 | | output.WriteFloat(B); |
| | 198 | | } |
| | 199 | | if (_unknownFields != null) { |
| | 200 | | _unknownFields.WriteTo(ref output); |
| | 201 | | } |
| | 202 | | } |
| | 203 | | #endif |
| | 204 | |
|
| | 205 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 206 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 207 | | public int CalculateSize() { |
| 16 | 208 | | int size = 0; |
| 16 | 209 | | if (R != 0F) { |
| 14 | 210 | | size += 1 + 4; |
| | 211 | | } |
| 16 | 212 | | if (G != 0F) { |
| 14 | 213 | | size += 1 + 4; |
| | 214 | | } |
| 16 | 215 | | if (B != 0F) { |
| 8 | 216 | | size += 1 + 4; |
| | 217 | | } |
| 16 | 218 | | if (_unknownFields != null) { |
| 0 | 219 | | size += _unknownFields.CalculateSize(); |
| | 220 | | } |
| 16 | 221 | | return size; |
| | 222 | | } |
| | 223 | |
|
| | 224 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 225 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 226 | | public void MergeFrom(Color3 other) { |
| 0 | 227 | | if (other == null) { |
| 0 | 228 | | return; |
| | 229 | | } |
| 0 | 230 | | if (other.R != 0F) { |
| 0 | 231 | | R = other.R; |
| | 232 | | } |
| 0 | 233 | | if (other.G != 0F) { |
| 0 | 234 | | G = other.G; |
| | 235 | | } |
| 0 | 236 | | if (other.B != 0F) { |
| 0 | 237 | | B = other.B; |
| | 238 | | } |
| 0 | 239 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 240 | | } |
| | 241 | |
|
| | 242 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 243 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 244 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 245 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 246 | | input.ReadRawMessage(this); |
| | 247 | | #else |
| | 248 | | uint tag; |
| 26 | 249 | | while ((tag = input.ReadTag()) != 0) { |
| | 250 | | switch(tag) { |
| | 251 | | default: |
| 0 | 252 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 253 | | break; |
| | 254 | | case 13: { |
| 7 | 255 | | R = input.ReadFloat(); |
| 7 | 256 | | break; |
| | 257 | | } |
| | 258 | | case 21: { |
| 7 | 259 | | G = input.ReadFloat(); |
| 7 | 260 | | break; |
| | 261 | | } |
| | 262 | | case 29: { |
| 4 | 263 | | B = input.ReadFloat(); |
| | 264 | | break; |
| | 265 | | } |
| | 266 | | } |
| | 267 | | } |
| | 268 | | #endif |
| 8 | 269 | | } |
| | 270 | |
|
| | 271 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 272 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 273 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 274 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 275 | | uint tag; |
| | 276 | | while ((tag = input.ReadTag()) != 0) { |
| | 277 | | switch(tag) { |
| | 278 | | default: |
| | 279 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 280 | | break; |
| | 281 | | case 13: { |
| | 282 | | R = input.ReadFloat(); |
| | 283 | | break; |
| | 284 | | } |
| | 285 | | case 21: { |
| | 286 | | G = input.ReadFloat(); |
| | 287 | | break; |
| | 288 | | } |
| | 289 | | case 29: { |
| | 290 | | B = input.ReadFloat(); |
| | 291 | | break; |
| | 292 | | } |
| | 293 | | } |
| | 294 | | } |
| | 295 | | } |
| | 296 | | #endif |
| | 297 | |
|
| | 298 | | } |
| | 299 | |
|
| | 300 | | #endregion |
| | 301 | |
|
| | 302 | |
|
| | 303 | | #endregion Designer generated code |