| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: OnPointerDown.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 OnPointerDown.proto</summary> |
| | 15 | | public static partial class OnPointerDownReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for OnPointerDown.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static OnPointerDownReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "ChNPblBvaW50ZXJEb3duLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzGhljb21t", |
| | 28 | | "b24vQWN0aW9uQnV0dG9uLnByb3RvIm0KD1BCT25Qb2ludGVyRG93bhIdCgZi", |
| | 29 | | "dXR0b24YASABKA4yDS5BY3Rpb25CdXR0b24SEgoKaG92ZXJfdGV4dBgCIAEo", |
| | 30 | | "CRIQCghkaXN0YW5jZRgDIAEoAhIVCg1zaG93X2ZlZWRiYWNrGAQgASgIQhSq", |
| | 31 | | "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z")); |
| | 32 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 33 | | new pbr::FileDescriptor[] { global::ActionButtonReflection.Descriptor, }, |
| | 34 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 35 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerDown), global::DCL.ECSComponents.P |
| | 36 | | })); |
| | 37 | | } |
| | 38 | | #endregion |
| | 39 | |
|
| | 40 | | } |
| | 41 | | #region Messages |
| | 42 | | public sealed partial class PBOnPointerDown : pb::IMessage<PBOnPointerDown> { |
| 0 | 43 | | private static readonly pb::MessageParser<PBOnPointerDown> _parser = new pb::MessageParser<PBOnPointerDown>(() => ne |
| | 44 | | private pb::UnknownFieldSet _unknownFields; |
| | 45 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 46 | | public static pb::MessageParser<PBOnPointerDown> Parser { get { return _parser; } } |
| | 47 | |
|
| | 48 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 49 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 50 | | get { return global::DCL.ECSComponents.OnPointerDownReflection.Descriptor.MessageTypes[0]; } |
| | 51 | | } |
| | 52 | |
|
| | 53 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 54 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 55 | | get { return Descriptor; } |
| | 56 | | } |
| | 57 | |
|
| | 58 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 59 | | public PBOnPointerDown() { |
| | 60 | | OnConstruction(); |
| 0 | 61 | | } |
| | 62 | |
|
| | 63 | | partial void OnConstruction(); |
| | 64 | |
|
| | 65 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 66 | | public PBOnPointerDown(PBOnPointerDown other) : this() { |
| 0 | 67 | | button_ = other.button_; |
| 0 | 68 | | hoverText_ = other.hoverText_; |
| 0 | 69 | | distance_ = other.distance_; |
| 0 | 70 | | showFeedback_ = other.showFeedback_; |
| 0 | 71 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 72 | | } |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | public PBOnPointerDown Clone() { |
| 0 | 76 | | return new PBOnPointerDown(this); |
| | 77 | | } |
| | 78 | |
|
| | 79 | | /// <summary>Field number for the "button" field.</summary> |
| | 80 | | public const int ButtonFieldNumber = 1; |
| | 81 | | private global::ActionButton button_ = global::ActionButton.Pointer; |
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | public global::ActionButton Button { |
| 0 | 84 | | get { return button_; } |
| | 85 | | set { |
| 0 | 86 | | button_ = value; |
| 0 | 87 | | } |
| | 88 | | } |
| | 89 | |
|
| | 90 | | /// <summary>Field number for the "hover_text" field.</summary> |
| | 91 | | public const int HoverTextFieldNumber = 2; |
| 0 | 92 | | private string hoverText_ = ""; |
| | 93 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 94 | | public string HoverText { |
| 0 | 95 | | get { return hoverText_; } |
| | 96 | | set { |
| 0 | 97 | | hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 98 | | } |
| | 99 | | } |
| | 100 | |
|
| | 101 | | /// <summary>Field number for the "distance" field.</summary> |
| | 102 | | public const int DistanceFieldNumber = 3; |
| | 103 | | private float distance_; |
| | 104 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 105 | | public float Distance { |
| 0 | 106 | | get { return distance_; } |
| | 107 | | set { |
| 0 | 108 | | distance_ = value; |
| 0 | 109 | | } |
| | 110 | | } |
| | 111 | |
|
| | 112 | | /// <summary>Field number for the "show_feedback" field.</summary> |
| | 113 | | public const int ShowFeedbackFieldNumber = 4; |
| | 114 | | private bool showFeedback_; |
| | 115 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 116 | | public bool ShowFeedback { |
| 0 | 117 | | get { return showFeedback_; } |
| | 118 | | set { |
| 0 | 119 | | showFeedback_ = value; |
| 0 | 120 | | } |
| | 121 | | } |
| | 122 | |
|
| | 123 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 124 | | public override bool Equals(object other) { |
| 0 | 125 | | return Equals(other as PBOnPointerDown); |
| | 126 | | } |
| | 127 | |
|
| | 128 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 129 | | public bool Equals(PBOnPointerDown other) { |
| 0 | 130 | | if (ReferenceEquals(other, null)) { |
| 0 | 131 | | return false; |
| | 132 | | } |
| 0 | 133 | | if (ReferenceEquals(other, this)) { |
| 0 | 134 | | return true; |
| | 135 | | } |
| 0 | 136 | | if (Button != other.Button) return false; |
| 0 | 137 | | if (HoverText != other.HoverText) return false; |
| 0 | 138 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; |
| 0 | 139 | | if (ShowFeedback != other.ShowFeedback) return false; |
| 0 | 140 | | return Equals(_unknownFields, other._unknownFields); |
| | 141 | | } |
| | 142 | |
|
| | 143 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 144 | | public override int GetHashCode() { |
| 0 | 145 | | int hash = 1; |
| 0 | 146 | | if (Button != global::ActionButton.Pointer) hash ^= Button.GetHashCode(); |
| 0 | 147 | | if (HoverText.Length != 0) hash ^= HoverText.GetHashCode(); |
| 0 | 148 | | if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); |
| 0 | 149 | | if (ShowFeedback != false) hash ^= ShowFeedback.GetHashCode(); |
| 0 | 150 | | if (_unknownFields != null) { |
| 0 | 151 | | hash ^= _unknownFields.GetHashCode(); |
| | 152 | | } |
| 0 | 153 | | return hash; |
| | 154 | | } |
| | 155 | |
|
| | 156 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 157 | | public override string ToString() { |
| 0 | 158 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 159 | | } |
| | 160 | |
|
| | 161 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 162 | | public void WriteTo(pb::CodedOutputStream output) { |
| 0 | 163 | | if (Button != global::ActionButton.Pointer) { |
| 0 | 164 | | output.WriteRawTag(8); |
| 0 | 165 | | output.WriteEnum((int) Button); |
| | 166 | | } |
| 0 | 167 | | if (HoverText.Length != 0) { |
| 0 | 168 | | output.WriteRawTag(18); |
| 0 | 169 | | output.WriteString(HoverText); |
| | 170 | | } |
| 0 | 171 | | if (Distance != 0F) { |
| 0 | 172 | | output.WriteRawTag(29); |
| 0 | 173 | | output.WriteFloat(Distance); |
| | 174 | | } |
| 0 | 175 | | if (ShowFeedback != false) { |
| 0 | 176 | | output.WriteRawTag(32); |
| 0 | 177 | | output.WriteBool(ShowFeedback); |
| | 178 | | } |
| 0 | 179 | | if (_unknownFields != null) { |
| 0 | 180 | | _unknownFields.WriteTo(output); |
| | 181 | | } |
| 0 | 182 | | } |
| | 183 | |
|
| | 184 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 185 | | public int CalculateSize() { |
| 0 | 186 | | int size = 0; |
| 0 | 187 | | if (Button != global::ActionButton.Pointer) { |
| 0 | 188 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button); |
| | 189 | | } |
| 0 | 190 | | if (HoverText.Length != 0) { |
| 0 | 191 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText); |
| | 192 | | } |
| 0 | 193 | | if (Distance != 0F) { |
| 0 | 194 | | size += 1 + 4; |
| | 195 | | } |
| 0 | 196 | | if (ShowFeedback != false) { |
| 0 | 197 | | size += 1 + 1; |
| | 198 | | } |
| 0 | 199 | | if (_unknownFields != null) { |
| 0 | 200 | | size += _unknownFields.CalculateSize(); |
| | 201 | | } |
| 0 | 202 | | return size; |
| | 203 | | } |
| | 204 | |
|
| | 205 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 206 | | public void MergeFrom(PBOnPointerDown other) { |
| 0 | 207 | | if (other == null) { |
| 0 | 208 | | return; |
| | 209 | | } |
| 0 | 210 | | if (other.Button != global::ActionButton.Pointer) { |
| 0 | 211 | | Button = other.Button; |
| | 212 | | } |
| 0 | 213 | | if (other.HoverText.Length != 0) { |
| 0 | 214 | | HoverText = other.HoverText; |
| | 215 | | } |
| 0 | 216 | | if (other.Distance != 0F) { |
| 0 | 217 | | Distance = other.Distance; |
| | 218 | | } |
| 0 | 219 | | if (other.ShowFeedback != false) { |
| 0 | 220 | | ShowFeedback = other.ShowFeedback; |
| | 221 | | } |
| 0 | 222 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 223 | | } |
| | 224 | |
|
| | 225 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 226 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 227 | | uint tag; |
| 0 | 228 | | while ((tag = input.ReadTag()) != 0) { |
| | 229 | | switch(tag) { |
| | 230 | | default: |
| 0 | 231 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 232 | | break; |
| | 233 | | case 8: { |
| 0 | 234 | | Button = (global::ActionButton) input.ReadEnum(); |
| 0 | 235 | | break; |
| | 236 | | } |
| | 237 | | case 18: { |
| 0 | 238 | | HoverText = input.ReadString(); |
| 0 | 239 | | break; |
| | 240 | | } |
| | 241 | | case 29: { |
| 0 | 242 | | Distance = input.ReadFloat(); |
| 0 | 243 | | break; |
| | 244 | | } |
| | 245 | | case 32: { |
| 0 | 246 | | ShowFeedback = input.ReadBool(); |
| | 247 | | break; |
| | 248 | | } |
| | 249 | | } |
| | 250 | | } |
| 0 | 251 | | } |
| | 252 | |
|
| | 253 | | } |
| | 254 | |
|
| | 255 | | #endregion |
| | 256 | |
|
| | 257 | | } |
| | 258 | |
|
| | 259 | | #endregion Designer generated code |