| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: ecs/components/OnPointerUp.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/OnPointerUp.proto</summary> |
| | 15 | | public static partial class OnPointerUpReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for ecs/components/OnPointerUp.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static OnPointerUpReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiBlY3MvY29tcG9uZW50cy9PblBvaW50ZXJVcC5wcm90bxIQZGVjZW50cmFs", |
| | 28 | | "YW5kLmVjcxooZWNzL2NvbXBvbmVudHMvY29tbW9uL0FjdGlvbkJ1dHRvbi5w", |
| | 29 | | "cm90byLRAQoNUEJPblBvaW50ZXJVcBIzCgZidXR0b24YASABKA4yHi5kZWNl", |
| | 30 | | "bnRyYWxhbmQuZWNzLkFjdGlvbkJ1dHRvbkgAiAEBEhcKCmhvdmVyX3RleHQY", |
| | 31 | | "AiABKAlIAYgBARIZCgxtYXhfZGlzdGFuY2UYAyABKAJIAogBARIaCg1zaG93", |
| | 32 | | "X2ZlZWRiYWNrGAQgASgISAOIAQFCCQoHX2J1dHRvbkINCgtfaG92ZXJfdGV4", |
| | 33 | | "dEIPCg1fbWF4X2Rpc3RhbmNlQhAKDl9zaG93X2ZlZWRiYWNrQhSqAhFEQ0wu", |
| | 34 | | "RUNTQ29tcG9uZW50c2IGcHJvdG8z")); |
| | 35 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 36 | | new pbr::FileDescriptor[] { global::DCL.ECSComponents.ActionButtonReflection.Descriptor, }, |
| | 37 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 38 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerUp), global::DCL.ECSComponents.PBO |
| | 39 | | })); |
| | 40 | | } |
| | 41 | | #endregion |
| | 42 | |
|
| | 43 | | } |
| | 44 | | #region Messages |
| | 45 | | public sealed partial class PBOnPointerUp : pb::IMessage<PBOnPointerUp> |
| | 46 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 47 | | , pb::IBufferMessage |
| | 48 | | #endif |
| | 49 | | { |
| 0 | 50 | | private static readonly pb::MessageParser<PBOnPointerUp> _parser = new pb::MessageParser<PBOnPointerUp>(() => new PB |
| | 51 | | private pb::UnknownFieldSet _unknownFields; |
| | 52 | | private int _hasBits0; |
| | 53 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 54 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 55 | | public static pb::MessageParser<PBOnPointerUp> 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::DCL.ECSComponents.OnPointerUpReflection.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)] |
| 0 | 71 | | public PBOnPointerUp() { |
| | 72 | | OnConstruction(); |
| 0 | 73 | | } |
| | 74 | |
|
| | 75 | | partial void OnConstruction(); |
| | 76 | |
|
| | 77 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 78 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 79 | | public PBOnPointerUp(PBOnPointerUp other) : this() { |
| 0 | 80 | | _hasBits0 = other._hasBits0; |
| 0 | 81 | | button_ = other.button_; |
| 0 | 82 | | hoverText_ = other.hoverText_; |
| 0 | 83 | | maxDistance_ = other.maxDistance_; |
| 0 | 84 | | showFeedback_ = other.showFeedback_; |
| 0 | 85 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 86 | | } |
| | 87 | |
|
| | 88 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 89 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 90 | | public PBOnPointerUp Clone() { |
| 0 | 91 | | return new PBOnPointerUp(this); |
| | 92 | | } |
| | 93 | |
|
| | 94 | | /// <summary>Field number for the "button" field.</summary> |
| | 95 | | public const int ButtonFieldNumber = 1; |
| | 96 | | private global::DCL.ECSComponents.ActionButton button_; |
| | 97 | | /// <summary> |
| | 98 | | /// default=ActionButton.ANY |
| | 99 | | /// </summary> |
| | 100 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 101 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 102 | | public global::DCL.ECSComponents.ActionButton Button { |
| 0 | 103 | | get { if ((_hasBits0 & 1) != 0) { return button_; } else { return global::DCL.ECSComponents.ActionButton.Pointer; |
| | 104 | | set { |
| 0 | 105 | | _hasBits0 |= 1; |
| 0 | 106 | | button_ = value; |
| 0 | 107 | | } |
| | 108 | | } |
| | 109 | | /// <summary>Gets whether the "button" field is set</summary> |
| | 110 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 111 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 112 | | public bool HasButton { |
| 0 | 113 | | get { return (_hasBits0 & 1) != 0; } |
| | 114 | | } |
| | 115 | | /// <summary>Clears the value of the "button" field</summary> |
| | 116 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 117 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 118 | | public void ClearButton() { |
| 0 | 119 | | _hasBits0 &= ~1; |
| 0 | 120 | | } |
| | 121 | |
|
| | 122 | | /// <summary>Field number for the "hover_text" field.</summary> |
| | 123 | | public const int HoverTextFieldNumber = 2; |
| | 124 | | private string hoverText_; |
| | 125 | | /// <summary> |
| | 126 | | /// default='Interact' |
| | 127 | | /// </summary> |
| | 128 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 129 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 130 | | public string HoverText { |
| 0 | 131 | | get { return hoverText_ ?? ""; } |
| | 132 | | set { |
| 0 | 133 | | hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 134 | | } |
| | 135 | | } |
| | 136 | | /// <summary>Gets whether the "hover_text" field is set</summary> |
| | 137 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 138 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 139 | | public bool HasHoverText { |
| 0 | 140 | | get { return hoverText_ != null; } |
| | 141 | | } |
| | 142 | | /// <summary>Clears the value of the "hover_text" field</summary> |
| | 143 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 144 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 145 | | public void ClearHoverText() { |
| 0 | 146 | | hoverText_ = null; |
| 0 | 147 | | } |
| | 148 | |
|
| | 149 | | /// <summary>Field number for the "max_distance" field.</summary> |
| | 150 | | public const int MaxDistanceFieldNumber = 3; |
| | 151 | | private float maxDistance_; |
| | 152 | | /// <summary> |
| | 153 | | /// default=10 |
| | 154 | | /// </summary> |
| | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 156 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 157 | | public float MaxDistance { |
| 0 | 158 | | get { if ((_hasBits0 & 2) != 0) { return maxDistance_; } else { return 0F; } } |
| | 159 | | set { |
| 0 | 160 | | _hasBits0 |= 2; |
| 0 | 161 | | maxDistance_ = value; |
| 0 | 162 | | } |
| | 163 | | } |
| | 164 | | /// <summary>Gets whether the "max_distance" field is set</summary> |
| | 165 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 166 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 167 | | public bool HasMaxDistance { |
| 0 | 168 | | get { return (_hasBits0 & 2) != 0; } |
| | 169 | | } |
| | 170 | | /// <summary>Clears the value of the "max_distance" field</summary> |
| | 171 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 172 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 173 | | public void ClearMaxDistance() { |
| 0 | 174 | | _hasBits0 &= ~2; |
| 0 | 175 | | } |
| | 176 | |
|
| | 177 | | /// <summary>Field number for the "show_feedback" field.</summary> |
| | 178 | | public const int ShowFeedbackFieldNumber = 4; |
| | 179 | | private bool showFeedback_; |
| | 180 | | /// <summary> |
| | 181 | | /// default=true |
| | 182 | | /// </summary> |
| | 183 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 184 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 185 | | public bool ShowFeedback { |
| 0 | 186 | | get { if ((_hasBits0 & 4) != 0) { return showFeedback_; } else { return false; } } |
| | 187 | | set { |
| 0 | 188 | | _hasBits0 |= 4; |
| 0 | 189 | | showFeedback_ = value; |
| 0 | 190 | | } |
| | 191 | | } |
| | 192 | | /// <summary>Gets whether the "show_feedback" field is set</summary> |
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | public bool HasShowFeedback { |
| 0 | 196 | | get { return (_hasBits0 & 4) != 0; } |
| | 197 | | } |
| | 198 | | /// <summary>Clears the value of the "show_feedback" field</summary> |
| | 199 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 200 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 201 | | public void ClearShowFeedback() { |
| 0 | 202 | | _hasBits0 &= ~4; |
| 0 | 203 | | } |
| | 204 | |
|
| | 205 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 206 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 207 | | public override bool Equals(object other) { |
| 0 | 208 | | return Equals(other as PBOnPointerUp); |
| | 209 | | } |
| | 210 | |
|
| | 211 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 212 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 213 | | public bool Equals(PBOnPointerUp other) { |
| 0 | 214 | | if (ReferenceEquals(other, null)) { |
| 0 | 215 | | return false; |
| | 216 | | } |
| 0 | 217 | | if (ReferenceEquals(other, this)) { |
| 0 | 218 | | return true; |
| | 219 | | } |
| 0 | 220 | | if (Button != other.Button) return false; |
| 0 | 221 | | if (HoverText != other.HoverText) return false; |
| 0 | 222 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f |
| 0 | 223 | | if (ShowFeedback != other.ShowFeedback) return false; |
| 0 | 224 | | return Equals(_unknownFields, other._unknownFields); |
| | 225 | | } |
| | 226 | |
|
| | 227 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 228 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 229 | | public override int GetHashCode() { |
| 0 | 230 | | int hash = 1; |
| 0 | 231 | | if (HasButton) hash ^= Button.GetHashCode(); |
| 0 | 232 | | if (HasHoverText) hash ^= HoverText.GetHashCode(); |
| 0 | 233 | | if (HasMaxDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistance); |
| 0 | 234 | | if (HasShowFeedback) hash ^= ShowFeedback.GetHashCode(); |
| 0 | 235 | | if (_unknownFields != null) { |
| 0 | 236 | | hash ^= _unknownFields.GetHashCode(); |
| | 237 | | } |
| 0 | 238 | | return hash; |
| | 239 | | } |
| | 240 | |
|
| | 241 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 242 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 243 | | public override string ToString() { |
| 0 | 244 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 245 | | } |
| | 246 | |
|
| | 247 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 248 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 249 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 250 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 251 | | output.WriteRawMessage(this); |
| | 252 | | #else |
| 0 | 253 | | if (HasButton) { |
| 0 | 254 | | output.WriteRawTag(8); |
| 0 | 255 | | output.WriteEnum((int) Button); |
| | 256 | | } |
| 0 | 257 | | if (HasHoverText) { |
| 0 | 258 | | output.WriteRawTag(18); |
| 0 | 259 | | output.WriteString(HoverText); |
| | 260 | | } |
| 0 | 261 | | if (HasMaxDistance) { |
| 0 | 262 | | output.WriteRawTag(29); |
| 0 | 263 | | output.WriteFloat(MaxDistance); |
| | 264 | | } |
| 0 | 265 | | if (HasShowFeedback) { |
| 0 | 266 | | output.WriteRawTag(32); |
| 0 | 267 | | output.WriteBool(ShowFeedback); |
| | 268 | | } |
| 0 | 269 | | if (_unknownFields != null) { |
| 0 | 270 | | _unknownFields.WriteTo(output); |
| | 271 | | } |
| | 272 | | #endif |
| 0 | 273 | | } |
| | 274 | |
|
| | 275 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 276 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 277 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 278 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 279 | | if (HasButton) { |
| | 280 | | output.WriteRawTag(8); |
| | 281 | | output.WriteEnum((int) Button); |
| | 282 | | } |
| | 283 | | if (HasHoverText) { |
| | 284 | | output.WriteRawTag(18); |
| | 285 | | output.WriteString(HoverText); |
| | 286 | | } |
| | 287 | | if (HasMaxDistance) { |
| | 288 | | output.WriteRawTag(29); |
| | 289 | | output.WriteFloat(MaxDistance); |
| | 290 | | } |
| | 291 | | if (HasShowFeedback) { |
| | 292 | | output.WriteRawTag(32); |
| | 293 | | output.WriteBool(ShowFeedback); |
| | 294 | | } |
| | 295 | | if (_unknownFields != null) { |
| | 296 | | _unknownFields.WriteTo(ref output); |
| | 297 | | } |
| | 298 | | } |
| | 299 | | #endif |
| | 300 | |
|
| | 301 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 302 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 303 | | public int CalculateSize() { |
| 0 | 304 | | int size = 0; |
| 0 | 305 | | if (HasButton) { |
| 0 | 306 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button); |
| | 307 | | } |
| 0 | 308 | | if (HasHoverText) { |
| 0 | 309 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText); |
| | 310 | | } |
| 0 | 311 | | if (HasMaxDistance) { |
| 0 | 312 | | size += 1 + 4; |
| | 313 | | } |
| 0 | 314 | | if (HasShowFeedback) { |
| 0 | 315 | | size += 1 + 1; |
| | 316 | | } |
| 0 | 317 | | if (_unknownFields != null) { |
| 0 | 318 | | size += _unknownFields.CalculateSize(); |
| | 319 | | } |
| 0 | 320 | | return size; |
| | 321 | | } |
| | 322 | |
|
| | 323 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 324 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 325 | | public void MergeFrom(PBOnPointerUp other) { |
| 0 | 326 | | if (other == null) { |
| 0 | 327 | | return; |
| | 328 | | } |
| 0 | 329 | | if (other.HasButton) { |
| 0 | 330 | | Button = other.Button; |
| | 331 | | } |
| 0 | 332 | | if (other.HasHoverText) { |
| 0 | 333 | | HoverText = other.HoverText; |
| | 334 | | } |
| 0 | 335 | | if (other.HasMaxDistance) { |
| 0 | 336 | | MaxDistance = other.MaxDistance; |
| | 337 | | } |
| 0 | 338 | | if (other.HasShowFeedback) { |
| 0 | 339 | | ShowFeedback = other.ShowFeedback; |
| | 340 | | } |
| 0 | 341 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 342 | | } |
| | 343 | |
|
| | 344 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 345 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 346 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 347 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 348 | | input.ReadRawMessage(this); |
| | 349 | | #else |
| | 350 | | uint tag; |
| 0 | 351 | | while ((tag = input.ReadTag()) != 0) { |
| | 352 | | switch(tag) { |
| | 353 | | default: |
| 0 | 354 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 355 | | break; |
| | 356 | | case 8: { |
| 0 | 357 | | Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum(); |
| 0 | 358 | | break; |
| | 359 | | } |
| | 360 | | case 18: { |
| 0 | 361 | | HoverText = input.ReadString(); |
| 0 | 362 | | break; |
| | 363 | | } |
| | 364 | | case 29: { |
| 0 | 365 | | MaxDistance = input.ReadFloat(); |
| 0 | 366 | | break; |
| | 367 | | } |
| | 368 | | case 32: { |
| 0 | 369 | | ShowFeedback = input.ReadBool(); |
| | 370 | | break; |
| | 371 | | } |
| | 372 | | } |
| | 373 | | } |
| | 374 | | #endif |
| 0 | 375 | | } |
| | 376 | |
|
| | 377 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 378 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 379 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 380 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 381 | | uint tag; |
| | 382 | | while ((tag = input.ReadTag()) != 0) { |
| | 383 | | switch(tag) { |
| | 384 | | default: |
| | 385 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 386 | | break; |
| | 387 | | case 8: { |
| | 388 | | Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum(); |
| | 389 | | break; |
| | 390 | | } |
| | 391 | | case 18: { |
| | 392 | | HoverText = input.ReadString(); |
| | 393 | | break; |
| | 394 | | } |
| | 395 | | case 29: { |
| | 396 | | MaxDistance = input.ReadFloat(); |
| | 397 | | break; |
| | 398 | | } |
| | 399 | | case 32: { |
| | 400 | | ShowFeedback = input.ReadBool(); |
| | 401 | | break; |
| | 402 | | } |
| | 403 | | } |
| | 404 | | } |
| | 405 | | } |
| | 406 | | #endif |
| | 407 | |
|
| | 408 | | } |
| | 409 | |
|
| | 410 | | #endregion |
| | 411 | |
|
| | 412 | | } |
| | 413 | |
|
| | 414 | | #endregion Designer generated code |