示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (Etag.Length != 0)
            {
                hash ^= Etag.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
 public void MergeFrom(ServicePerimeter other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.PerimeterType != global::Google.Identity.AccessContextManager.V1.ServicePerimeter.Types.PerimeterType.Regular)
     {
         PerimeterType = other.PerimeterType;
     }
     if (other.status_ != null)
     {
         if (status_ == null)
         {
             Status = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig();
         }
         Status.MergeFrom(other.Status);
     }
     if (other.spec_ != null)
     {
         if (spec_ == null)
         {
             Spec = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig();
         }
         Spec.MergeFrom(other.Spec);
     }
     if (other.UseExplicitDryRunSpec != false)
     {
         UseExplicitDryRunSpec = other.UseExplicitDryRunSpec;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#3
0
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            if (m_lastOrderInfo != m_query.GetCombinedComponentOrderVersion())
            {
                m_lastOrderInfo = m_query.GetCombinedComponentOrderVersion();
                m_spriteAnimations.Clear();
                var animations = new List <SpriteAnimation>();
                EntityManager.GetAllUniqueSharedComponentData(animations);
                foreach (var animation in animations)
                {
                    m_query.SetSharedComponentFilter(animation);
                    var length = m_query.CalculateEntityCount();
                    if (length > 0 && animation.ClipSetEntity != Entity.Null)
                    {
                        m_spriteAnimations.Add(animation);
                    }
                }
            }

            inputDeps = new UpdateTime {
                DeltaTime = Time.DeltaTime
            }.Schedule(this, inputDeps);

            foreach (var spriteAnimation in m_spriteAnimations)
            {
                m_query.SetSharedComponentFilter(spriteAnimation);
                foreach (var spriteAnimator in m_spriteAnimators)
                {
                    inputDeps = JobHandle.CombineDependencies(inputDeps, spriteAnimator.Update(spriteAnimation, inputDeps));
                }
            }
            return(inputDeps);
        }
示例#4
0
 public void MergeFrom(TensorboardTimeSeries other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.ValueType != global::Google.Cloud.AIPlatform.V1.TensorboardTimeSeries.Types.ValueType.Unspecified)
     {
         ValueType = other.ValueType;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.Etag.Length != 0)
     {
         Etag = other.Etag;
     }
     if (other.PluginName.Length != 0)
     {
         PluginName = other.PluginName;
     }
     if (other.PluginData.Length != 0)
     {
         PluginData = other.PluginData;
     }
     if (other.metadata_ != null)
     {
         if (metadata_ == null)
         {
             Metadata = new global::Google.Cloud.AIPlatform.V1.TensorboardTimeSeries.Types.Metadata();
         }
         Metadata.MergeFrom(other.Metadata);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 private void FixedUpdate()
 {
     if (isActive)
     {
         UpdateTime.AddFixedUpdateCount();
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (detailsCase_ == DetailsOneofCase.DeleteDetails)
            {
                hash ^= DeleteDetails.GetHashCode();
            }
            if (detailsCase_ == DetailsOneofCase.CreateModelDetails)
            {
                hash ^= CreateModelDetails.GetHashCode();
            }
            if (ProgressPercent != 0)
            {
                hash ^= ProgressPercent.GetHashCode();
            }
            hash ^= partialFailures_.GetHashCode();
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            hash ^= (int)detailsCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#7
0
        public void Process(Message msg)
        {
            //if (UpdateTime.AddMilliseconds(HelloLimit) < DateTime.Now && LastHello.AddMilliseconds(HelloLimit) < DateTime.Now)
            //{
            //    LastHello = DateTime.Now;
            //    SendTextMessage(TextGeneration.Messages.Hello()).Wait();
            //}
            Worker.TelegramApi.SendChatActionAsync(msg.Chat.Id, Telegram.Bot.Types.Enums.ChatAction.Typing).Wait();
            if (msg.Type == Telegram.Bot.Types.Enums.MessageType.TextMessage)
            {
                Worker.GeneralApi.Send(msg.Date, msg.Text, msg.Chat.Id.ToString(), msg.Chat.Username, Worker.BotInfo.Username).Wait();
            }

            if (UpdateTime.AddMilliseconds(TimeLimit) < DateTime.Now)
            {
                ExitAll();
            }
            if (HandlersStack.Count > 0)
            {
                var handled = HandlersStack.Peek().Process(msg);
                UpdateTime = DateTime.Now;
                return;
            }
            MainHandler.Process(msg);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Target.Length != 0)
            {
                hash ^= Target.GetHashCode();
            }
            if (Type != global::Google.Cloud.Functions.V1.OperationType.OperationUnspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (request_ != null)
            {
                hash ^= Request.GetHashCode();
            }
            if (VersionId != 0L)
            {
                hash ^= VersionId.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (BuildId.Length != 0)
            {
                hash ^= BuildId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#9
0
    public void OnDestroy()
    {
        scaledTimeUpdate = null;


        StageMgr = null;
    }
示例#10
0
        /// <summary>
        /// public void SetSeriesY TInvoker>(
        ///    string title,
        ///     ChartValueType? cvtype = null,
        ///     AxisType? atype = null,
        ///     string ValueMebers = null,
        ///     int? ValuesPerPoint = null,
        ///     TInvoker Invoker = null) where TInvoker : Control
        /// </summary>
        /// <typeparam name="TInvoker"></typeparam>
        /// <param name="title"></param>
        /// <param name="cvtype"></param>
        /// <param name="atype"></param>
        /// <param name="ValueMebers"></param>
        /// <param name="ValuesPerPoint"></param>
        /// <param name="Invoker"></param>
        public void SetSeriesY <TInvoker>(
            string title,
            ChartValueType?cvtype = null,
            AxisType?atype        = null,
            string ValueMebers    = null,
            int?ValuesPerPoint    = null,
            TInvoker Invoker      = null) where TInvoker : Control
        {
            if (Invoker != null)
            {
                //lock (Locker[ChartMain])
                Abbreviate.FormsControls.Invoke(Invoker, () => SetSeriesY <TInvoker>(title, cvtype, atype, ValueMebers, ValuesPerPoint, null));
                UpdateTime.SetNow();
                return;
            }


            if (cvtype != null)
            {
                ChartMain.Series[title].YValueType = (ChartValueType)cvtype;
            }
            if (ValueMebers != null)
            {
                ChartMain.Series[title].YValueMembers = ValueMebers;
            }
            if (atype != null)
            {
                ChartMain.Series[title].YAxisType = (AxisType)atype;
            }
            if (ValuesPerPoint != null)
            {
                ChartMain.Series[title].YValuesPerPoint = (int)ValuesPerPoint;
            }
        }
示例#11
0
 public void MergeFrom(SystemTimestamps other)
 {
     if (other == null)
     {
         return;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.expireTime_ != null)
     {
         if (expireTime_ == null)
         {
             ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ExpireTime.MergeFrom(other.ExpireTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#12
0
    public void Awake()
    {
        Instance = this;
        DontDestroyOnLoad(this);
        DontDestroyOnLoad(GameObject.Find("ScreenCanvas"));
        DontDestroyOnLoad(GameObject.Find("EventSystem"));

        if (null == TimeMgr)
        {
            TimeMgr = new TimeManager();
        }

        if (null == WorkMgr)
        {
            WorkMgr = new WorkManager();
        }

        if (null == StageMgr)
        {
            StageMgr = new StageManager();
        }

        if (null == UserInfo)
        {
            UserInfo = new User();
        }

        scaledTimeUpdate   += WorkMgr.Update;
        scaledTimeUpdate   += StageMgr.Update;
        unscaledTimeUpdate += TimeMgr.Update;
    }
示例#13
0
 /// <summary>
 /// 插入故障类型
 /// </summary>
 /// <param name="id"></param>
 /// <param name="name"></param>
 /// <param name="addr"></param>
 /// <returns></returns>
 public string AddFaultTypeDAL(Guid macID, Guid siteID, Guid regsID, string name)
 {
     using (var db = new MachineFailureEntities())
     {
         using (var tran = db.Database.BeginTransaction())
         {
             try
             {
                 //插入之前先查询是否存在
                 var ft = db.FaultTypes.FirstOrDefault(e => name.Equals(e.Name) && macID.Equals(e.MachineID));
                 if (ft != null)
                 {
                     return("This name already exsit");
                 }
                 //开始插入
                 var date = DateTime.Now;
                 db.FaultTypes.Add(new FaultTypes()
                 {
                     FaultTypeID = Guid.NewGuid(), Name = name, MachineID = macID, Updated = date
                 });
                 UpdateTime.UpdateMachines(db, macID, date);
                 UpdateTime.UpdateSites(db, siteID, date);
                 UpdateTime.UpdateRegionals(db, regsID, date);
                 db.SaveChanges();
                 tran.Commit();
             }
             catch
             {
                 tran.Rollback();
                 return("Add failed");
             }
         }
     }
     return("Add success");
 }
示例#14
0
        /// <summary>
        /// 更新记录
        /// </summary>
        /// <param name="regs"></param>
        /// <param name="site"></param>
        /// <param name="macs"></param>
        /// <param name="sens"></param>
        /// <param name="date"></param>
        /// <param name="conclusion"></param>
        /// <param name="inserted"></param>
        /// <returns></returns>
        public string AddRecordDAL(string regs, string site, string macs, string sens, string date, string conclusion, List <Guid> gList)
        {
            DateTime        inserted = DateTime.Now;          //获取当前系统的时间
            List <Pictures> picList  = new List <Pictures>(); //存放图片信息

            using (var db = new MachineFailureEntities())
            {
                using (var tran = db.Database.BeginTransaction()) //开启事物
                {
                    try
                    {
                        //查询记录
                        var record = db.Records.FirstOrDefault(e => sens.Equals(e.FaultTypeID.ToString()) && date.Equals(e.Timestamp) && conclusion.Equals(e.Conclusion));
                        if (record != null)  //判断插入的记录是否已经存在
                        {
                            return("exsit");
                        }
                        //插入记录
                        var recordID = Guid.NewGuid();  //生成记录的ID
                        db.Records.Add(new Records()
                        {
                            RecordID    = recordID,
                            FaultTypeID = Guid.Parse(sens),
                            Conclusion  = conclusion,
                            Timestamp   = date,
                            Inserted    = inserted
                        });

                        //插入图片
                        foreach (var g in gList)
                        {
                            picList.Add(new Pictures()
                            {
                                PictureID = g, RecordID = recordID
                            });
                        }
                        db.Pictures.AddRange(picList);

                        //更新故障类型的时间
                        UpdateTime.UpdateFaultTypes(db, Guid.Parse(sens), inserted);
                        //更新机组时间
                        UpdateTime.UpdateMachines(db, Guid.Parse(macs), inserted);
                        //更新站点时间
                        UpdateTime.UpdateSites(db, Guid.Parse(site), inserted);
                        //更新大区的时间
                        UpdateTime.UpdateRegionals(db, Guid.Parse(regs), inserted);

                        db.SaveChanges();
                        tran.Commit();
                    }
                    catch (Exception e)
                    {
                        tran.Rollback();
                        Debug.WriteLine(e);
                        return("false");
                    }
                }
            }
            return("true");
        }
示例#15
0
 /// <summary>
 /// 插入站点
 /// </summary>
 /// <param name="id"></param>
 /// <param name="name"></param>
 /// <param name="addr"></param>
 /// <returns></returns>
 public string AddSiteDAL(Guid regsID, string name)
 {
     using (var db = new MachineFailureEntities())
     {
         using (var tran = db.Database.BeginTransaction())
         {
             try
             {
                 //插入之前先查询是否存在
                 var site = db.Sites.FirstOrDefault(e => name.Equals(e.Name) && regsID.Equals(e.CustomerID));
                 if (site != null)
                 {
                     return("This name already exsit");
                 }
                 //开始插入
                 var date = DateTime.Now;
                 db.Sites.Add(new Sites()
                 {
                     SiteID = Guid.NewGuid(), Name = name, CustomerID = regsID, Updated = date
                 });
                 UpdateTime.UpdateRegionals(db, regsID, date);
                 db.SaveChanges();
                 tran.Commit();
             }
             catch
             {
                 tran.Rollback();
                 return("Add filded");
             }
         }
     }
     return("Add success");
 }
示例#16
0
    //public Story.StoryManager   StoryMgr  { get; private set; }


    public void Awake()
    {
        Instance = this;
        DontDestroyOnLoad(this);

        if (null != DontDestroyOnLoadObjects)
        {
            for (int i = 0; i < DontDestroyOnLoadObjects.Length; ++i)
            {
                DontDestroyOnLoad(DontDestroyOnLoadObjects[i]);
            }
        }

        if (null == StageMgr)
        {
            StageMgr = new StageManager();
        }

        //if (null == StoryMgr)
        //    StoryMgr = new Story.StoryManager();


        scaledTimeUpdate += StageMgr.Update;
        //unscaledTimeUpdate += StoryMgr.Update;
    }
示例#17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (ValueType != global::Google.Cloud.AIPlatform.V1.Feature.Types.ValueType.Unspecified)
            {
                hash ^= ValueType.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (Etag.Length != 0)
            {
                hash ^= Etag.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#18
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (encryptionSpec_ != null)
            {
                hash ^= EncryptionSpec.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (state_ != null)
            {
                hash ^= State.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (payload_ != null)
            {
                hash ^= Payload.GetHashCode();
            }
            if (Etag.Length != 0)
            {
                hash ^= Etag.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#20
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (securityCenterProperties_ != null)
            {
                hash ^= SecurityCenterProperties.GetHashCode();
            }
            hash ^= ResourceProperties.GetHashCode();
            if (securityMarks_ != null)
            {
                hash ^= SecurityMarks.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (iamPolicy_ != null)
            {
                hash ^= IamPolicy.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#21
0
        /// <summary>
        /// 保存插件的配置信息
        /// </summary>
        public void Save()
        {
            XmlDocument doc = new XmlDocument();

            doc.Load(xmlPath);

            XmlNode node = doc.DocumentElement.SelectSingleNode("Enable");

            if (node == null)
            {
                node = doc.CreateElement("Enable");
                doc.DocumentElement.AppendChild(node);
            }
            node.InnerText = Enable ? "true" : "false";

            node = doc.DocumentElement.SelectSingleNode("IsInstalled");
            if (node == null)
            {
                node = doc.CreateElement("IsInstalled");
                doc.DocumentElement.AppendChild(node);
            }
            node.InnerText = IsInstalled ? "true" : "false";

            node = doc.DocumentElement.SelectSingleNode("UpdateTime");
            if (node == null)
            {
                node = doc.CreateElement("UpdateTime");
                doc.DocumentElement.AppendChild(node);
            }
            node.InnerText = UpdateTime.ToString();

            node = doc.DocumentElement.SelectSingleNode("IsLocal");
            if (node == null)
            {
                node = doc.CreateElement("IsLocal");
                doc.DocumentElement.AppendChild(node);
            }
            node.InnerText = IsLocal ? "1" : "0";

            node = doc.DocumentElement.SelectSingleNode("Pages");
            if (node == null)
            {
                node = doc.CreateElement("Pages");
                doc.DocumentElement.AppendChild(node);
            }
            node.RemoveAll();
            foreach (UrlItem ui in this.Pages)
            {
                XmlElement ele = doc.CreateElement("Add");
                node.AppendChild(ele);
                ele.SetAttribute("ID", ui.ID);
                ele.SetAttribute("Name", ui.Name);
                ele.SetAttribute("Title", ui.Title);
                ele.SetAttribute("Url", ui.Url);
                ele.SetAttribute("Main", ui.Main.ToString());
                ele.SetAttribute("EntityID", ui.EntityID);
            }
            doc.Save(xmlPath);
        }
示例#22
0
        public override Task <bool> ShutDown()
        {
            m_Update_NetUser.Evt_Act -= Update_NetUser;
            m_Update_NetUser          = null;
            var bret = true;

            return(Task.FromResult(bret));
        }
示例#23
0
        public override bool Init()
        {
            m_PlaySpeedMode         = EPlaySpeedMode.E_Mul_1;
            m_Update_Frame          = new UpdateTime(GameConstant.DeltaTimeF);
            m_Update_Frame.Evt_Act += Update_Frame;

            return(base.Init());
        }
示例#24
0
文件: Add.cs 项目: jeason0813/Asmodat
        /// <summary>
        /// adds range of new data points to series specified by name
        /// </summary>
        /// <typeparam name="TInvoker"></typeparam>
        /// <param name="name"></param>
        /// <param name="points"></param>
        /// <param name="Invoker"></param>
        public void AddRange(string name, DataPoint[] points, ChartValueType?XValueType = null, ChartValueType?YValueType = null)
        {
            if (points.Length <= 0)
            {
                return;
            }



            Invoker.Invoke((MethodInvoker)(() =>
            {
                double xMin = ScaleX.ViewMinimum;
                double xMax = ScaleX.ViewMaximum;


                foreach (DataPoint point in points)
                {
                    ChartMain.Series[name].Points.Add(point);


                    if (MinX == null || MinX.XValue > point.XValue)
                    {
                        MinX = point;
                    }
                    if (MaxX == null || MaxX.XValue < point.XValue)
                    {
                        MaxX = point;
                    }
                }

                if (XValueType != null)
                {
                    ChartMain.Series[name].XValueType = (ChartValueType)XValueType;
                }
                if (YValueType != null)
                {
                    ChartMain.Series[name].YValueType = (ChartValueType)YValueType;
                }

                Area.AxisX.IsStartedFromZero = false;
                Area.AxisY.IsStartedFromZero = false;
                Area.RecalculateAxesScale();
                Area.RecalculateAxesScale();


                DataPoint last = ChartMain.Series[name].Points.Last();
                if (!Doubles.IsNaN(xMax, xMin) && last.XValue > xMax)
                {
                    double change = (xMax - last.XValue);
                    ScaleX.Zoom(xMin + change, last.XValue);
                }


                this.RescaleY();
            }));

            UpdateTime.SetNow();
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (OrgDisplayName.Length != 0)
            {
                hash ^= OrgDisplayName.GetHashCode();
            }
            if (orgPostalAddress_ != null)
            {
                hash ^= OrgPostalAddress.GetHashCode();
            }
            if (primaryContactInfo_ != null)
            {
                hash ^= PrimaryContactInfo.GetHashCode();
            }
            if (AlternateEmail.Length != 0)
            {
                hash ^= AlternateEmail.GetHashCode();
            }
            if (Domain.Length != 0)
            {
                hash ^= Domain.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (CloudIdentityId.Length != 0)
            {
                hash ^= CloudIdentityId.GetHashCode();
            }
            if (LanguageCode.Length != 0)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (cloudIdentityInfo_ != null)
            {
                hash ^= CloudIdentityInfo.GetHashCode();
            }
            if (ChannelPartnerId.Length != 0)
            {
                hash ^= ChannelPartnerId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#26
0
 public void MergeFrom(Context other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.Etag.Length != 0)
     {
         Etag = other.Etag;
     }
     labels_.Add(other.labels_);
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     parentContexts_.Add(other.parentContexts_);
     if (other.SchemaTitle.Length != 0)
     {
         SchemaTitle = other.SchemaTitle;
     }
     if (other.SchemaVersion.Length != 0)
     {
         SchemaVersion = other.SchemaVersion;
     }
     if (other.metadata_ != null)
     {
         if (metadata_ == null)
         {
             Metadata = new global::Google.Protobuf.WellKnownTypes.Struct();
         }
         Metadata.MergeFrom(other.Metadata);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#27
0
        public override Task <bool> ShutDown()
        {
            m_Update_TableRoom.Evt_Act -= Update_TableRoom;
            m_Update_TableRoom          = null;
            var bret = base.ShutDown();

            Log.Debug("GTableRoomEntry ShutDown" + this.GetPrimaryKeyLong());
            return(bret);
        }
示例#28
0
 public void MergeFrom(Instruction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.DataType != global::Google.Cloud.DataLabeling.V1Beta1.DataType.Unspecified)
     {
         DataType = other.DataType;
     }
     if (other.csvInstruction_ != null)
     {
         if (csvInstruction_ == null)
         {
             CsvInstruction = new global::Google.Cloud.DataLabeling.V1Beta1.CsvInstruction();
         }
         CsvInstruction.MergeFrom(other.CsvInstruction);
     }
     if (other.pdfInstruction_ != null)
     {
         if (pdfInstruction_ == null)
         {
             PdfInstruction = new global::Google.Cloud.DataLabeling.V1Beta1.PdfInstruction();
         }
         PdfInstruction.MergeFrom(other.PdfInstruction);
     }
     blockingResources_.Add(other.blockingResources_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#29
0
 public void MergeFrom(Schedule other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.State != global::Google.Cloud.Notebooks.V1.Schedule.Types.State.Unspecified)
     {
         State = other.State;
     }
     if (other.CronSchedule.Length != 0)
     {
         CronSchedule = other.CronSchedule;
     }
     if (other.TimeZone.Length != 0)
     {
         TimeZone = other.TimeZone;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.executionTemplate_ != null)
     {
         if (executionTemplate_ == null)
         {
             ExecutionTemplate = new global::Google.Cloud.Notebooks.V1.ExecutionTemplate();
         }
         ExecutionTemplate.MergeFrom(other.ExecutionTemplate);
     }
     recentExecutions_.Add(other.recentExecutions_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(Tensorboard other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.encryptionSpec_ != null)
     {
         if (encryptionSpec_ == null)
         {
             EncryptionSpec = new global::Google.Cloud.AIPlatform.V1.EncryptionSpec();
         }
         EncryptionSpec.MergeFrom(other.EncryptionSpec);
     }
     if (other.BlobStoragePathPrefix.Length != 0)
     {
         BlobStoragePathPrefix = other.BlobStoragePathPrefix;
     }
     if (other.RunCount != 0)
     {
         RunCount = other.RunCount;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     labels_.Add(other.labels_);
     if (other.Etag.Length != 0)
     {
         Etag = other.Etag;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#31
0
		public LastSeen(IMyEntity entity, UpdateTime times)
			: this(entity)
		{
			if ((times & UpdateTime.Broadcasting) != 0)
				this.LastBroadcast = DateTime.UtcNow;
			if ((times & UpdateTime.HasJammer) != 0)
				this.LastJam = DateTime.UtcNow;
			if ((times & UpdateTime.HasRadar) != 0)
				this.LastRadar = DateTime.UtcNow;
		}
示例#32
0
        public MouseZoomController(float minZoom = 0.01f, float maxZoom = 2, UpdateTime updateTime = UpdateTime.Sim)
        {
            _updateTime = updateTime;
            _minZoom = minZoom;
            _maxZoom = maxZoom;

            _wheelIndexToZoomValue = new Interpolation(_minWheel, _maxWheel, _minZoom, _maxZoom, Ease);
            CurrentZoom = _wheelIndexToZoomValue.From(_currentWheelIndex);
            Add(new MouseWheelBinding(ChangeWheelIndex));
        }
示例#33
0
 public LastSeen(IMyEntity entity, UpdateTime times)
     : this(entity)
 {
     if ((times & UpdateTime.Broadcasting) != 0)
         this.LastBroadcast = Globals.ElapsedTime;
     if ((times & UpdateTime.HasJammer) != 0)
         this.LastJam = Globals.ElapsedTime;
     if ((times & UpdateTime.HasRadar) != 0)
         this.LastRadar = Globals.ElapsedTime;
 }
示例#34
0
 /// <summary>
 /// Creates a LastSeen for an entity that was detected with an active radar scan.
 /// </summary>
 public LastSeen(IMyEntity entity, UpdateTime times, RadarInfo info)
     : this(entity, times)
 {
     this.Info = info;
 }
示例#35
0
 public UpdateComponent(Action handler, UpdateTime updateTime)
 {
     _handler = handler;
     _updateTime = updateTime;
 }
 public TrackingBodyCameraController(Body trackingBody, UpdateTime updateTime)
 {
     _trackingBody = trackingBody;
     Add(new UpdateComponent(Update, updateTime));
     Level = new Property<float>(1);
 }