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