@param MetadataInterface $metadata
@param array $options

@return array
169747
private function renderProperties(MetadataInterface $metadata, array $options)
    {
        $properties = array_replace_recursive(
            $options['defaults'],
            array_filter($metadata->toArray(), function ($item) { return null !== $item; })
        );

        $renderedProperties = [];
        foreach ($properties as $propertyKey => $propertyValue) {
            if (null === $propertyValue) {
                continue;
            }

            $this->ensurePropertyIsKnown($metadata, $propertyKey);

            $renderedProperties[] = sprintf(
                '<meta name="%s" content="%s" />',
                $this->keysToNames[$propertyKey],
                htmlentities($propertyValue, \ENT_COMPAT)
            );
        }

        return $renderedProperties;
    }
599396
public function storeFile($filename, $metadata = [], $options = [])
    {
        return $this->collection->storeFile($filename, $metadata, $options);
    }
1110724
public function getAllClasses(MetaDataInterface $metadata = null)
    {
        if ($this->allClasses === null) {
            $generators = array();

            foreach ($this->fileManager->searchFileByRegex('/^.+\.generator\.json$/i') as $file) {
                $fileName = $file[0];
                $process  = $this->transtyper->decode($this->fileManager->fileGetContent($fileName));

                try {
                    $this->generatorValidator->isValid($process, $metadata);
                    $generators[$fileName] = $process['name'];
                } catch (\InvalidArgumentException $e) {
                    // Generator no valid
                }
            }

            $this->allClasses = $generators;
        }

        return $this->allClasses;
    }
127976
public function ListCollectionIds(\Google\Cloud\Firestore\V1\ListCollectionIdsRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.firestore.v1.Firestore/ListCollectionIds',
        $argument,
        ['\Google\Cloud\Firestore\V1\ListCollectionIdsResponse', 'decode'],
        $metadata, $options);
    }
131167
public function SubmitJob(\Google\Cloud\Dataproc\V1beta2\SubmitJobRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.dataproc.v1beta2.JobController/SubmitJob',
        $argument,
        ['\Google\Cloud\Dataproc\V1beta2\Job', 'decode'],
        $metadata, $options);
    }
645489
public function GetSource(\Google\Cloud\SecurityCenter\V1\GetSourceRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.securitycenter.v1.SecurityCenter/GetSource',
        $argument,
        ['\Google\Cloud\SecurityCenter\V1\Source', 'decode'],
        $metadata, $options);
    }
450130
public function GetExclusion(\Google\Cloud\Logging\V2\GetExclusionRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.logging.v2.ConfigServiceV2/GetExclusion',
        $argument,
        ['\Google\Cloud\Logging\V2\LogExclusion', 'decode'],
        $metadata, $options);
    }
1161496
public function GetAgent(\Google\Cloud\Dialogflow\V2\GetAgentRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.dialogflow.v2.Agents/GetAgent',
        $argument,
        ['\Google\Cloud\Dialogflow\V2\Agent', 'decode'],
        $metadata, $options);
    }
534226
public function ListMetricDescriptors(\Google\Cloud\Monitoring\V3\ListMetricDescriptorsRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.monitoring.v3.MetricService/ListMetricDescriptors',
        $argument,
        ['\Google\Cloud\Monitoring\V3\ListMetricDescriptorsResponse', 'decode'],
        $metadata, $options);
    }
907970
public function SetIamPolicy(\Google\Cloud\Iam\V1\SetIamPolicyRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.securitycenter.v1.SecurityCenter/SetIamPolicy',
        $argument,
        ['\Google\Cloud\Iam\V1\Policy', 'decode'],
        $metadata, $options);
    }
277828
public function ListSessionEntityTypes(\Google\Cloud\Dialogflow\V2\ListSessionEntityTypesRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.dialogflow.v2.SessionEntityTypes/ListSessionEntityTypes',
        $argument,
        ['\Google\Cloud\Dialogflow\V2\ListSessionEntityTypesResponse', 'decode'],
        $metadata, $options);
    }
501085
public function GetContext(\Google\Cloud\Dialogflow\V2\GetContextRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.dialogflow.v2.Contexts/GetContext',
        $argument,
        ['\Google\Cloud\Dialogflow\V2\Context', 'decode'],
        $metadata, $options);
    }
753676
public function GetInstance(\Google\Cloud\Bigtable\Admin\V2\GetInstanceRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance',
        $argument,
        ['\Google\Cloud\Bigtable\Admin\V2\Instance', 'decode'],
        $metadata, $options);
    }
238392
public function CreateInstance(\Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance',
        $argument,
        ['\Google\LongRunning\Operation', 'decode'],
        $metadata, $options);
    }
129492
protected function prepareOptions(Metadata $metadata)
	{
		$options = array(
			'tags'  => array_merge_recursive($metadata->getTags(), array(
				'releaseStage' => $metadata->getStage(),
				'appVersion'   => $metadata->getAppVersion(),
			)),
			'extra' => array_merge_recursive($metadata->getMetadata(), array(
				'appRootDir'   => $metadata->getAppRootDir(),
				'releaseStage' => $metadata->getStage(),
				'appVersion'   => $metadata->getAppVersion(),
			)),
			'level' => self::$SEVERITY_MAP[$metadata->getSeverity()],
		);

		$groupingHash = $this->calculateGroupingHash($metadata);
		if ($groupingHash)
		{
			$options['checksum'] = $groupingHash;
		}

		return $options;
	}
976421
public function GetOrganizationSettings(\Google\Cloud\SecurityCenter\V1\GetOrganizationSettingsRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.securitycenter.v1.SecurityCenter/GetOrganizationSettings',
        $argument,
        ['\Google\Cloud\SecurityCenter\V1\OrganizationSettings', 'decode'],
        $metadata, $options);
    }
899520
public function BatchAnnotateImages(\Google\Cloud\Vision\V1\BatchAnnotateImagesRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.vision.v1.ImageAnnotator/BatchAnnotateImages',
        $argument,
        ['\Google\Cloud\Vision\V1\BatchAnnotateImagesResponse', 'decode'],
        $metadata, $options);
    }