Iot/src/V1/PublicKeyCredential.php
public function setFormat($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Iot\V1\PublicKeyFormat::class);
        $this->format = $var;

        return $this;
    }
public function setFormat($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Iot\V1\PublicKeyFormat::class);
        $this->format = $var;

        return $this;
    }
public function setFormat ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Iot \ V1 \ PublicKeyFormat :: class ) ; $ this -> format = $ var ; return $ this ; }
The format of the key.

Generated from protobuf field <code>.google.cloud.iot.v1.PublicKeyFormat format = 1;</code>
@param int $var
@return $this
The format of the key .