Message must be initialized with a dict: temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest

For the below code why I am getting error:

Message must be initialized with a dict: temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest

from temporalio.api.workflowservice.v1 import ListTaskQueuePartitionsRequest
service = self.client.workflow_service
partitions_request = ListTaskQueuePartitionsRequest(namespace="default", task_queue="test")
partitions_response = await service.list_task_queue_partitions(partitions_request)

The task_queue field is not a string in that message, it’s a temporalio.api.taskqueue.v1.TaskQueue object.