I am trying to wait result from operation of DeleteNode() in PR
Describe the issue
Delete operation return the wrong type. Expected type to response is var resp tpupb.Node, however DeleteNodeOperation.lro.proto.Result.Operation_Response.Response.TypeUrl has value type.googleapis.com/google.protobuf.Empty. Therefor code the following code:
op, err := client.DeleteNode(ctx, req)
if err != nil {
return err
}
node, err := op.Wait(ctx) // raises here
if err != nil {
return err
}
In which file did you encounter the issue?
https://github.com/googleapis/google-cloud-go/blob/main/tpu/apiv1/auxiliary.go#L101
Did you change the file? If so, how?
I am trying to wait result from operation of DeleteNode() in PR
Describe the issue
Delete operation return the wrong type. Expected type to response is
var resp tpupb.Node
, howeverDeleteNodeOperation.lro.proto.Result.Operation_Response.Response.TypeUrl
has valuetype.googleapis.com/google.protobuf.Empty
. Therefor code the following code:Causes an error:
proto: mismatched message type: got "google.cloud.tpu.v1.Node", want "google.protobuf.Empty