public function listTopicSubscriptions($topic, $optionalArgs = [])
{
$request = new ListTopicSubscriptionsRequest();
$request->setTopic($topic);
if (isset($optionalArgs['pageSize'])) {
$request->setPageSize($optionalArgs['pageSize']);
}
if (isset($optionalArgs['pageToken'])) {
$request->setPageToken($optionalArgs['pageToken']);
}
$mergedSettings = $this->defaultCallSettings['listTopicSubscriptions']->merge(new CallSettings($optionalArgs));
$callable = ApiCallable::createApiCall($this->publisherStub, 'ListTopicSubscriptions', $mergedSettings, $this->descriptors['listTopicSubscriptions']);
return $callable($request, [], ['call_credentials_callback' => $this->createCredentialsCallback()]);
}