google.longrunning.WaitOperationRequest */ class WaitOperationRequest extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message { /** * The name of the operation resource to wait on. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The maximum duration to wait before timing out. If left blank, the wait * will be at most the time permitted by the underlying HTTP/RPC protocol. * If RPC context deadline is also specified, the shorter one will be used. * * Generated from protobuf field .google.protobuf.Duration timeout = 2; */ private $timeout = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the operation resource to wait on. * @type \Google\Protobuf\Duration $timeout * The maximum duration to wait before timing out. If left blank, the wait * will be at most the time permitted by the underlying HTTP/RPC protocol. * If RPC context deadline is also specified, the shorter one will be used. * } */ public function __construct($data = NULL) { \DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * The name of the operation resource to wait on. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the operation resource to wait on. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The maximum duration to wait before timing out. If left blank, the wait * will be at most the time permitted by the underlying HTTP/RPC protocol. * If RPC context deadline is also specified, the shorter one will be used. * * Generated from protobuf field .google.protobuf.Duration timeout = 2; * @return \Google\Protobuf\Duration|null */ public function getTimeout() { return $this->timeout; } public function hasTimeout() { return isset($this->timeout); } public function clearTimeout() { unset($this->timeout); } /** * The maximum duration to wait before timing out. If left blank, the wait * will be at most the time permitted by the underlying HTTP/RPC protocol. * If RPC context deadline is also specified, the shorter one will be used. * * Generated from protobuf field .google.protobuf.Duration timeout = 2; * @param \Google\Protobuf\Duration $var * @return $this */ public function setTimeout($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Duration::class); $this->timeout = $var; return $this; } }