AutoMl/src/V1beta1/PredictRequest.php
public function setPayload($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\ExamplePayload::class);
        $this->payload = $var;

        return $this;
    }
public function setPayload($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\ExamplePayload::class);
        $this->payload = $var;

        return $this;
    }
public function setPayload ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ AutoMl \ V1beta1 \ ExamplePayload :: class ) ; $ this -> payload = $ var ; return $ this ; }
Required.
Payload to perform a prediction on. The payload must match the
problem type that the model was trained to solve.

Generated from protobuf field <code>.google.cloud.automl.v1beta1.ExamplePayload payload = 2;</code>
@param \Google\Cloud\AutoMl\V1beta1\ExamplePayload $var
@return $this
Required . Payload to perform a prediction on . The payload must match the problem type that the model was trained to solve .