Beispiel #1
0
    public void MergeFrom(pb::CodedInputStream input)
    {
        uint tag;

        while ((tag = input.ReadTag()) != 0)
        {
            switch (tag)
            {
            default:
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                break;

            case 82: {
                global::database_msg subBuilder = new global::database_msg();
                if (msgCase_ == MsgOneofCase.Db)
                {
                    subBuilder.MergeFrom(Db);
                }
                input.ReadMessage(subBuilder);
                Db = subBuilder;
                break;
            }

            case 90: {
                Json = input.ReadString();
                break;
            }
            }
        }
    }
Beispiel #2
0
    public void MergeFrom(bzn_msg other)
    {
        if (other == null)
        {
            return;
        }
        switch (other.MsgCase)
        {
        case MsgOneofCase.Db:
            if (Db == null)
            {
                Db = new global::database_msg();
            }
            Db.MergeFrom(other.Db);
            break;

        case MsgOneofCase.Json:
            Json = other.Json;
            break;
        }

        _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }