Scheduler/src/V1beta1/HttpTarget.php
public function setHttpMethod($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Scheduler\V1beta1\HttpMethod::class);
        $this->http_method = $var;

        return $this;
    }
public function setHttpMethod($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Scheduler\V1beta1\HttpMethod::class);
        $this->http_method = $var;

        return $this;
    }
public function setHttpMethod ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Scheduler \ V1beta1 \ HttpMethod :: class ) ; $ this -> http_method = $ var ; return $ this ; }
Which HTTP method to use for the request.

Generated from protobuf field <code>.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;</code>
@param int $var
@return $this
Which HTTP method to use for the request .