public void MergeFrom(MessageFromClient other)
    {
        if (other == null)
        {
            return;
        }
        if (other.ClientType != 0)
        {
            ClientType = other.ClientType;
        }
        switch (other.MessageCase)
        {
        case MessageOneofCase.ArduinoAction:
            if (ArduinoAction == null)
            {
                ArduinoAction = new global::ArduinoAction();
            }
            ArduinoAction.MergeFrom(other.ArduinoAction);
            break;

        case MessageOneofCase.WebClientAction:
            if (WebClientAction == null)
            {
                WebClientAction = new global::WebClientAction();
            }
            WebClientAction.MergeFrom(other.WebClientAction);
            break;
        }

        _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }
Exemple #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (ClientType != 0)
        {
            hash ^= ClientType.GetHashCode();
        }
        if (messageCase_ == MessageOneofCase.ArduinoAction)
        {
            hash ^= ArduinoAction.GetHashCode();
        }
        hash ^= (int)messageCase_;
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
 private void HandleArduinoMessage(ArduinoAction messageArduinoAction)
 {
     throw new NotImplementedException();
 }