aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Intellisense/StructCompletionItemPopup.cs
blob: 09512f405adf7dc051ae8aea0d1d52682e7571eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.Scripting.Editors.Intellisense
{
    public class StructCompletionItemPopup : CompletionItemPopupControl
    {
        static StructCompletionItemPopup()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(StructCompletionItemPopup), new FrameworkPropertyMetadata(typeof(StructCompletionItemPopup)));
        }
    }
}
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: DispenserRunningData.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Tango.PMR.EmbeddedParameters {

  /// <summary>Holder for reflection information generated from DispenserRunningData.proto</summary>
  public static partial class DispenserRunningDataReflection {

    #region Descriptor
    /// <summary>File descriptor for DispenserRunningData.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static DispenserRunningDataReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChpEaXNwZW5zZXJSdW5uaW5nRGF0YS5wcm90bxIcVGFuZ28uUE1SLkVtYmVk",
            "ZGVkUGFyYW1ldGVycyKzAQoURGlzcGVuc2VyUnVubmluZ0RhdGESFwoPTnVt",
            "YmVyT2ZSZWZpbGxzGAEgASgNEiEKGVRvdGFsQ29uc3VtZWRJbk5hbm9MaXR0",
            "ZXIYAiABKAESHAoUQ29uc3VtZWRJbk5hbm9MaXR0ZXIYAyABKAESGgoSTmFu",
            "b0xpdHRlclBlclB1bHNlGAQgASgBEhIKCk1pY3JvU3RlcHMYBSABKA0SEQoJ",
            "RGlyZWN0aW9uGAYgASgIQigKJmNvbS50d2luZS50YW5nby5wbXIuZW1iZWRk",
            "ZWRwYXJhbWV0ZXJzYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.EmbeddedParameters.DispenserRunningData), global::Tango.PMR.EmbeddedParameters.DispenserRunningData.Parser, new[]{ "NumberOfRefills", "TotalConsumedInNanoLitter", "ConsumedInNanoLitter", "NanoLitterPerPulse", "MicroSteps", "Direction" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  public sealed partial class DispenserRunningData : pb::IMessage<DispenserRunningData> {
    private static readonly pb::MessageParser<DispenserRunningData> _parser = new pb::MessageParser<DispenserRunningData>(() => new DispenserRunningData());
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<DispenserRunningData> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Tango.PMR.EmbeddedParameters.DispenserRunningDataReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DispenserRunningData() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DispenserRunningData(DispenserRunningData other) : this() {
      numberOfRefills_ = other.numberOfRefills_;
      totalConsumedInNanoLitter_ = other.totalConsumedInNanoLitter_;
      consumedInNanoLitter_ = other.consumedInNanoLitter_;
      nanoLitterPerPulse_ = other.nanoLitterPerPulse_;
      microSteps_ = other.microSteps_;
      direction_ = other.direction_;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DispenserRunningData Clone() {
      return new DispenserRunningData(this);
    }

    /// <summary>Field number for the "NumberOfRefills" field.</summary>
    public const int NumberOfRefillsFieldNumber = 1;
    private uint numberOfRefills_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public uint NumberOfRefills {
      get { return numberOfRefills_; }
      set {
        numberOfRefills_ = value;
      }
    }

    /// <summary>Field number for the "TotalConsumedInNanoLitter" field.</summary>
    public const int TotalConsumedInNanoLitterFieldNumber = 2;
    private double totalConsumedInNanoLitter_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public double TotalConsumedInNanoLitter {
      get { return totalConsumedInNanoLitter_; }
      set {
        totalConsumedInNanoLitter_ = value;
      }
    }

    /// <summary>Field number for the "ConsumedInNanoLitter" field.</summary>
    public const int ConsumedInNanoLitterFieldNumber = 3;
    private double consumedInNanoLitter_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public double ConsumedInNanoLitter {
      get { return consumedInNanoLitter_; }
      set {
        consumedInNanoLitter_ = value;
      }
    }

    /// <summary>Field number for the "NanoLitterPerPulse" field.</summary>
    public const int NanoLitterPerPulseFieldNumber = 4;
    private double nanoLitterPerPulse_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public double NanoLitterPerPulse {
      get { return nanoLitterPerPulse_; }
      set {
        nanoLitterPerPulse_ = value;
      }
    }

    /// <summary>Field number for the "MicroSteps" field.</summary>
    public const int MicroStepsFieldNumber = 5;
    private uint microSteps_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public uint MicroSteps {
      get { return microSteps_; }
      set {
        microSteps_ = value;
      }
    }

    /// <summary>Field number for the "Direction" field.</summary>
    public const int DirectionFieldNumber = 6;
    private bool direction_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Direction {
      get { return direction_; }
      set {
        direction_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as DispenserRunningData);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(DispenserRunningData other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (NumberOfRefills != other.NumberOfRefills) return false;
      if (TotalConsumedInNanoLitter != other.TotalConsumedInNanoLitter) return false;
      if (ConsumedInNanoLitter != other.ConsumedInNanoLitter) return false;
      if (NanoLitterPerPulse != other.NanoLitterPerPulse) return false;
      if (MicroSteps != other.MicroSteps) return false;
      if (Direction != other.Direction) return false;
      return true;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (NumberOfRefills != 0) hash ^= NumberOfRefills.GetHashCode();
      if (TotalConsumedInNanoLitter != 0D) hash ^= TotalConsumedInNanoLitter.GetHashCode();
      if (ConsumedInNanoLitter != 0D) hash ^= ConsumedInNanoLitter.GetHashCode();
      if (NanoLitterPerPulse != 0D) hash ^= NanoLitterPerPulse.GetHashCode();
      if (MicroSteps != 0) hash ^= MicroSteps.GetHashCode();
      if (Direction != false) hash ^= Direction.GetHashCode();
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void WriteTo(pb::CodedOutputStream output) {
      if (NumberOfRefills != 0) {
        output.WriteRawTag(8);
        output.WriteUInt32(NumberOfRefills);
      }
      if (TotalConsumedInNanoLitter != 0D) {
        output.WriteRawTag(17);
        output.WriteDouble(TotalConsumedInNanoLitter);
      }
      if (ConsumedInNanoLitter != 0D) {
        output.WriteRawTag(25);
        output.WriteDouble(ConsumedInNanoLitter);
      }
      if (NanoLitterPerPulse != 0D) {
        output.WriteRawTag(33);
        output.WriteDouble(NanoLitterPerPulse);
      }
      if (MicroSteps != 0) {
        output.WriteRawTag(40);
        output.WriteUInt32(MicroSteps);
      }
      if (Direction != false) {
        output.WriteRawTag(48);
        output.WriteBool(Direction);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (NumberOfRefills != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumberOfRefills);
      }
      if (TotalConsumedInNanoLitter != 0D) {
        size += 1 + 8;
      }
      if (ConsumedInNanoLitter != 0D) {
        size += 1 + 8;
      }
      if (NanoLitterPerPulse != 0D) {
        size += 1 + 8;
      }
      if (MicroSteps != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MicroSteps);
      }
      if (Direction != false) {
        size += 1 + 1;
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(DispenserRunningData other) {
      if (other == null) {
        return;
      }
      if (other.NumberOfRefills != 0) {
        NumberOfRefills = other.NumberOfRefills;
      }
      if (other.TotalConsumedInNanoLitter != 0D) {
        TotalConsumedInNanoLitter = other.TotalConsumedInNanoLitter;
      }
      if (other.ConsumedInNanoLitter != 0D) {
        ConsumedInNanoLitter = other.ConsumedInNanoLitter;
      }
      if (other.NanoLitterPerPulse != 0D) {
        NanoLitterPerPulse = other.NanoLitterPerPulse;
      }
      if (other.MicroSteps != 0) {
        MicroSteps = other.MicroSteps;
      }
      if (other.Direction != false) {
        Direction = other.Direction;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            input.SkipLastField();
            break;
          case 8: {
            NumberOfRefills = input.ReadUInt32();
            break;
          }
          case 17: {
            TotalConsumedInNanoLitter = input.ReadDouble();
            break;
          }
          case 25: {
            ConsumedInNanoLitter = input.ReadDouble();
            break;
          }
          case 33: {
            NanoLitterPerPulse = input.ReadDouble();
            break;
          }
          case 40: {
            MicroSteps = input.ReadUInt32();
            break;
          }
          case 48: {
            Direction = input.ReadBool();
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code