public function updateSink($sinkName, $sink, $optionalArgs = [])
{
$request = new UpdateSinkRequest();
$request->setSinkName($sinkName);
$request->setSink($sink);
if (isset($optionalArgs['uniqueWriterIdentity'])) {
$request->setUniqueWriterIdentity($optionalArgs['uniqueWriterIdentity']);
}
$mergedSettings = $this->defaultCallSettings['updateSink']->merge(new CallSettings($optionalArgs));
$callable = ApiCallable::createApiCall($this->configServiceV2Stub, 'UpdateSink', $mergedSettings, $this->descriptors['updateSink']);
return $callable($request, [], ['call_credentials_callback' => $this->createCredentialsCallback()]);
}