I want to add a parameter to the Cloud Tasks that can then be retrieved from the Task handler using:
request.getParameter("paramName");
Previously in App Engine Standard I would do the following:
TaskOptions options = TaskOptions.Builder.withUrl(backURL)
.param("paramName", "value")
.method(Method.POST);
How do I accomplish the same using the Cloud Tasks java client library. It seems like in the AppEngineHttpRequest builder there should be a setParameter option but that doesn't exist.
AppEngineHttpRequest request = AppEngineHttpRequest.newBuilder()
.setRelativeUri(backURL)
.setHttpMethod(HttpMethod.POST)
.build();