コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (startReqs_ != null)
            {
                hash ^= StartReqs.GetHashCode();
            }
            if (StepFlagGmtId.Length != 0)
            {
                hash ^= StepFlagGmtId.GetHashCode();
            }
            if (CompleteFlagGmtId.Length != 0)
            {
                hash ^= CompleteFlagGmtId.GetHashCode();
            }
            hash ^= storyboardSteps_.GetHashCode();
            if (ResetMode != 0)
            {
                hash ^= ResetMode.GetHashCode();
            }
            if (resetReqs_ != null)
            {
                hash ^= ResetReqs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public void MergeFrom(Storyboard other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.startReqs_ != null)
     {
         if (startReqs_ == null)
         {
             StartReqs = new global::WUProtos.Data.Requirements();
         }
         StartReqs.MergeFrom(other.StartReqs);
     }
     if (other.StepFlagGmtId.Length != 0)
     {
         StepFlagGmtId = other.StepFlagGmtId;
     }
     if (other.CompleteFlagGmtId.Length != 0)
     {
         CompleteFlagGmtId = other.CompleteFlagGmtId;
     }
     storyboardSteps_.Add(other.storyboardSteps_);
     if (other.ResetMode != 0)
     {
         ResetMode = other.ResetMode;
     }
     if (other.resetReqs_ != null)
     {
         if (resetReqs_ == null)
         {
             ResetReqs = new global::WUProtos.Data.Requirements();
         }
         ResetReqs.MergeFrom(other.ResetReqs);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }