Esempio n. 1
0
 public void MergeFrom(BuildLogLine other)
 {
     if (other == null)
     {
         return;
     }
     if (other.LineNumber != 0L)
     {
         LineNumber = other.LineNumber;
     }
     if (other.timestampTime_ != null)
     {
         if (timestampTime_ == null)
         {
             TimestampTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         TimestampTime.MergeFrom(other.TimestampTime);
     }
     if (other.StreamType.Length != 0)
     {
         StreamType = other.StreamType;
     }
     if (other.Text.Length != 0)
     {
         Text = other.Text;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LineNumber != 0L)
            {
                hash ^= LineNumber.GetHashCode();
            }
            if (timestampTime_ != null)
            {
                hash ^= TimestampTime.GetHashCode();
            }
            if (StreamType.Length != 0)
            {
                hash ^= StreamType.GetHashCode();
            }
            if (Text.Length != 0)
            {
                hash ^= Text.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }