// object using the raw values in the proto.
// This method should only be used in logs/metrics, not in the server logic.
func UnsafePartitionFromProto(proto *taskqueuepb.TaskQueue, namespaceId string, taskType enumspb.TaskQueueType) Partition {
task_queue_id.go
p, err := PartitionFromProto(proto, namespaceId, taskType)
if err == nil {
return p
}
switch proto.GetKind() { //nolint:exhaustive
case enumspb.TASK_QUEUE_KIND_STICKY: