Google\Cloud\PubSub\Connection\Grpc::buildPushConfig PHP Method

buildPushConfig() private method

private buildPushConfig ( array $pushConfig ) : google\pubsub\v1\PushConfig
$pushConfig array
return google\pubsub\v1\PushConfig
    private function buildPushConfig(array $pushConfig)
    {
        if (isset($pushConfig['attributes'])) {
            $pushConfig['attributes'] = $this->formatLabelsForApi($pushConfig['attributes']);
        }
        return (new PushConfig())->deserialize($pushConfig, $this->codec);
    }