Validate non-optional parameters and return new instance.
341925
public function build(): StopCastingRequest
	{
		$instance = new StopCastingRequest();
		if ($this->sinkName === null) {
			throw new BuilderException('Property [sinkName] is required.');
		}
		$instance->sinkName = $this->sinkName;
		return $instance;
	}
19621
public function create()
    {
        $instance = self::createState($this);
        $this->setId($instance->getId());
        return $instance;
    }
582765
public function build(): SetNodeValueRequest
	{
		$instance = new SetNodeValueRequest();
		if ($this->nodeId === null) {
			throw new BuilderException('Property [nodeId] is required.');
		}
		$instance->nodeId = $this->nodeId;
		if ($this->value === null) {
			throw new BuilderException('Property [value] is required.');
		}
		$instance->value = $this->value;
		return $instance;
	}
339001
public function build(): UpdateRegistrationRequest
	{
		$instance = new UpdateRegistrationRequest();
		if ($this->scopeURL === null) {
			throw new BuilderException('Property [scopeURL] is required.');
		}
		$instance->scopeURL = $this->scopeURL;
		return $instance;
	}
247199
public function build(): CloseTargetRequest
	{
		$instance = new CloseTargetRequest();
		if ($this->targetId === null) {
			throw new BuilderException('Property [targetId] is required.');
		}
		$instance->targetId = $this->targetId;
		return $instance;
	}
567296
public function build(): ContinueToLocationRequest
	{
		$instance = new ContinueToLocationRequest();
		if ($this->location === null) {
			throw new BuilderException('Property [location] is required.');
		}
		$instance->location = $this->location;
		$instance->targetCallFrames = $this->targetCallFrames;
		return $instance;
	}
809695
public function build(): StopObservingRequest
	{
		$instance = new StopObservingRequest();
		if ($this->service === null) {
			throw new BuilderException('Property [service] is required.');
		}
		$instance->service = $this->service;
		return $instance;
	}
467727
public function build(): SetWebLifecycleStateRequest
	{
		$instance = new SetWebLifecycleStateRequest();
		if ($this->state === null) {
			throw new BuilderException('Property [state] is required.');
		}
		$instance->state = $this->state;
		return $instance;
	}
37142
public function build(): SetDiscoverTargetsRequest
	{
		$instance = new SetDiscoverTargetsRequest();
		if ($this->discover === null) {
			throw new BuilderException('Property [discover] is required.');
		}
		$instance->discover = $this->discover;
		return $instance;
	}
1010842
public function build(): SnapshotCommandLogRequest
	{
		$instance = new SnapshotCommandLogRequest();
		if ($this->snapshotId === null) {
			throw new BuilderException('Property [snapshotId] is required.');
		}
		$instance->snapshotId = $this->snapshotId;
		return $instance;
	}
1017626
public function build(): GetUsageAndQuotaRequest
	{
		$instance = new GetUsageAndQuotaRequest();
		if ($this->origin === null) {
			throw new BuilderException('Property [origin] is required.');
		}
		$instance->origin = $this->origin;
		return $instance;
	}
877375
public function build(): ContinueRequestRequest
	{
		$instance = new ContinueRequestRequest();
		if ($this->requestId === null) {
			throw new BuilderException('Property [requestId] is required.');
		}
		$instance->requestId = $this->requestId;
		$instance->url = $this->url;
		$instance->method = $this->method;
		$instance->postData = $this->postData;
		$instance->headers = $this->headers;
		return $instance;
	}
222067
public function build(): PerformSearchRequest
	{
		$instance = new PerformSearchRequest();
		if ($this->query === null) {
			throw new BuilderException('Property [query] is required.');
		}
		$instance->query = $this->query;
		$instance->includeUserAgentShadowDOM = $this->includeUserAgentShadowDOM;
		return $instance;
	}
1299295
public function build(): QuerySelectorRequest
	{
		$instance = new QuerySelectorRequest();
		if ($this->nodeId === null) {
			throw new BuilderException('Property [nodeId] is required.');
		}
		$instance->nodeId = $this->nodeId;
		if ($this->selector === null) {
			throw new BuilderException('Property [selector] is required.');
		}
		$instance->selector = $this->selector;
		return $instance;
	}
668934
public function build(): GetRelayoutBoundaryRequest
	{
		$instance = new GetRelayoutBoundaryRequest();
		if ($this->nodeId === null) {
			throw new BuilderException('Property [nodeId] is required.');
		}
		$instance->nodeId = $this->nodeId;
		return $instance;
	}
998000
public function build(): SetShowFPSCounterRequest
	{
		$instance = new SetShowFPSCounterRequest();
		if ($this->show === null) {
			throw new BuilderException('Property [show] is required.');
		}
		$instance->show = $this->show;
		return $instance;
	}
231474
public function build(): SetBypassServiceWorkerRequest
	{
		$instance = new SetBypassServiceWorkerRequest();
		if ($this->bypass === null) {
			throw new BuilderException('Property [bypass] is required.');
		}
		$instance->bypass = $this->bypass;
		return $instance;
	}