Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleApiHttpBody extends \Google\Collection
{
protected $collection_key = 'extensions';
/**
* @var string
*/
public $contentType;
/**
* @var string
*/
public $data;
/**
* @var array[]
*/
public $extensions;
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param array[]
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return array[]
*/
public function getExtensions()
{
return $this->extensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiHttpBody::class, 'Google_Service_RecommendationsAI_GoogleApiHttpBody');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse extends \Google\Model
{
/**
* @var string
*/
public $rejoinedUserEventsCount;
/**
* @param string
*/
public function setRejoinedUserEventsCount($rejoinedUserEventsCount)
{
$this->rejoinedUserEventsCount = $rejoinedUserEventsCount;
}
/**
* @return string
*/
public function getRejoinedUserEventsCount()
{
return $this->rejoinedUserEventsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1alphaTuningMetadata extends \Google\Model
{
/**
* @var string
*/
public $recommendationModel;
/**
* @param string
*/
public function setRecommendationModel($recommendationModel)
{
$this->recommendationModel = $recommendationModel;
}
/**
* @return string
*/
public function getRecommendationModel()
{
return $this->recommendationModel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1alphaTuningMetadata::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1alphaTuningMetadata');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1alphaTuningResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1alphaTuningResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1alphaTuningResponse');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1BigQuerySource extends \Google\Model
{
/**
* @var string
*/
public $dataSchema;
/**
* @var string
*/
public $datasetId;
/**
* @var string
*/
public $gcsStagingDir;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $tableId;
/**
* @param string
*/
public function setDataSchema($dataSchema)
{
$this->dataSchema = $dataSchema;
}
/**
* @return string
*/
public function getDataSchema()
{
return $this->dataSchema;
}
/**
* @param string
*/
public function setDatasetId($datasetId)
{
$this->datasetId = $datasetId;
}
/**
* @return string
*/
public function getDatasetId()
{
return $this->datasetId;
}
/**
* @param string
*/
public function setGcsStagingDir($gcsStagingDir)
{
$this->gcsStagingDir = $gcsStagingDir;
}
/**
* @return string
*/
public function getGcsStagingDir()
{
return $this->gcsStagingDir;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setTableId($tableId)
{
$this->tableId = $tableId;
}
/**
* @return string
*/
public function getTableId()
{
return $this->tableId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1BigQuerySource::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1BigQuerySource');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1Catalog extends \Google\Model
{
protected $catalogItemLevelConfigType = GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig::class;
protected $catalogItemLevelConfigDataType = '';
/**
* @var string
*/
public $defaultEventStoreId;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @param GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
*/
public function setCatalogItemLevelConfig(GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig $catalogItemLevelConfig)
{
$this->catalogItemLevelConfig = $catalogItemLevelConfig;
}
/**
* @return GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
*/
public function getCatalogItemLevelConfig()
{
return $this->catalogItemLevelConfig;
}
/**
* @param string
*/
public function setDefaultEventStoreId($defaultEventStoreId)
{
$this->defaultEventStoreId = $defaultEventStoreId;
}
/**
* @return string
*/
public function getDefaultEventStoreId()
{
return $this->defaultEventStoreId;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1Catalog::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1Catalog');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1CatalogInlineSource extends \Google\Collection
{
protected $collection_key = 'catalogItems';
protected $catalogItemsType = GoogleCloudRecommendationengineV1beta1CatalogItem::class;
protected $catalogItemsDataType = 'array';
/**
* @param GoogleCloudRecommendationengineV1beta1CatalogItem[]
*/
public function setCatalogItems($catalogItems)
{
$this->catalogItems = $catalogItems;
}
/**
* @return GoogleCloudRecommendationengineV1beta1CatalogItem[]
*/
public function getCatalogItems()
{
return $this->catalogItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1CatalogInlineSource::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1CatalogInlineSource');

View File

@@ -0,0 +1,183 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1CatalogItem extends \Google\Collection
{
protected $collection_key = 'tags';
protected $categoryHierarchiesType = GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy::class;
protected $categoryHierarchiesDataType = 'array';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $id;
protected $itemAttributesType = GoogleCloudRecommendationengineV1beta1FeatureMap::class;
protected $itemAttributesDataType = '';
/**
* @var string
*/
public $itemGroupId;
/**
* @var string
*/
public $languageCode;
protected $productMetadataType = GoogleCloudRecommendationengineV1beta1ProductCatalogItem::class;
protected $productMetadataDataType = '';
/**
* @var string[]
*/
public $tags;
/**
* @var string
*/
public $title;
/**
* @param GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy[]
*/
public function setCategoryHierarchies($categoryHierarchies)
{
$this->categoryHierarchies = $categoryHierarchies;
}
/**
* @return GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy[]
*/
public function getCategoryHierarchies()
{
return $this->categoryHierarchies;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param GoogleCloudRecommendationengineV1beta1FeatureMap
*/
public function setItemAttributes(GoogleCloudRecommendationengineV1beta1FeatureMap $itemAttributes)
{
$this->itemAttributes = $itemAttributes;
}
/**
* @return GoogleCloudRecommendationengineV1beta1FeatureMap
*/
public function getItemAttributes()
{
return $this->itemAttributes;
}
/**
* @param string
*/
public function setItemGroupId($itemGroupId)
{
$this->itemGroupId = $itemGroupId;
}
/**
* @return string
*/
public function getItemGroupId()
{
return $this->itemGroupId;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param GoogleCloudRecommendationengineV1beta1ProductCatalogItem
*/
public function setProductMetadata(GoogleCloudRecommendationengineV1beta1ProductCatalogItem $productMetadata)
{
$this->productMetadata = $productMetadata;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ProductCatalogItem
*/
public function getProductMetadata()
{
return $this->productMetadata;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1CatalogItem::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1CatalogItem');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy extends \Google\Collection
{
protected $collection_key = 'categories';
/**
* @var string[]
*/
public $categories;
/**
* @param string[]
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return string[]
*/
public function getCategories()
{
return $this->categories;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig extends \Google\Model
{
/**
* @var string
*/
public $eventItemLevel;
/**
* @var string
*/
public $predictItemLevel;
/**
* @param string
*/
public function setEventItemLevel($eventItemLevel)
{
$this->eventItemLevel = $eventItemLevel;
}
/**
* @return string
*/
public function getEventItemLevel()
{
return $this->eventItemLevel;
}
/**
* @param string
*/
public function setPredictItemLevel($predictItemLevel)
{
$this->predictItemLevel = $predictItemLevel;
}
/**
* @return string
*/
public function getPredictItemLevel()
{
return $this->predictItemLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest extends \Google\Model
{
protected $predictionApiKeyRegistrationType = GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::class;
protected $predictionApiKeyRegistrationDataType = '';
/**
* @param GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
*/
public function setPredictionApiKeyRegistration(GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration $predictionApiKeyRegistration)
{
$this->predictionApiKeyRegistration = $predictionApiKeyRegistration;
}
/**
* @return GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
*/
public function getPredictionApiKeyRegistration()
{
return $this->predictionApiKeyRegistration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1EventDetail extends \Google\Collection
{
protected $collection_key = 'experimentIds';
protected $eventAttributesType = GoogleCloudRecommendationengineV1beta1FeatureMap::class;
protected $eventAttributesDataType = '';
/**
* @var string[]
*/
public $experimentIds;
/**
* @var string
*/
public $pageViewId;
/**
* @var string
*/
public $recommendationToken;
/**
* @var string
*/
public $referrerUri;
/**
* @var string
*/
public $uri;
/**
* @param GoogleCloudRecommendationengineV1beta1FeatureMap
*/
public function setEventAttributes(GoogleCloudRecommendationengineV1beta1FeatureMap $eventAttributes)
{
$this->eventAttributes = $eventAttributes;
}
/**
* @return GoogleCloudRecommendationengineV1beta1FeatureMap
*/
public function getEventAttributes()
{
return $this->eventAttributes;
}
/**
* @param string[]
*/
public function setExperimentIds($experimentIds)
{
$this->experimentIds = $experimentIds;
}
/**
* @return string[]
*/
public function getExperimentIds()
{
return $this->experimentIds;
}
/**
* @param string
*/
public function setPageViewId($pageViewId)
{
$this->pageViewId = $pageViewId;
}
/**
* @return string
*/
public function getPageViewId()
{
return $this->pageViewId;
}
/**
* @param string
*/
public function setRecommendationToken($recommendationToken)
{
$this->recommendationToken = $recommendationToken;
}
/**
* @return string
*/
public function getRecommendationToken()
{
return $this->recommendationToken;
}
/**
* @param string
*/
public function setReferrerUri($referrerUri)
{
$this->referrerUri = $referrerUri;
}
/**
* @return string
*/
public function getReferrerUri()
{
return $this->referrerUri;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1EventDetail::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1EventDetail');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1FeatureMap extends \Google\Model
{
protected $categoricalFeaturesType = GoogleCloudRecommendationengineV1beta1FeatureMapStringList::class;
protected $categoricalFeaturesDataType = 'map';
protected $numericalFeaturesType = GoogleCloudRecommendationengineV1beta1FeatureMapFloatList::class;
protected $numericalFeaturesDataType = 'map';
/**
* @param GoogleCloudRecommendationengineV1beta1FeatureMapStringList[]
*/
public function setCategoricalFeatures($categoricalFeatures)
{
$this->categoricalFeatures = $categoricalFeatures;
}
/**
* @return GoogleCloudRecommendationengineV1beta1FeatureMapStringList[]
*/
public function getCategoricalFeatures()
{
return $this->categoricalFeatures;
}
/**
* @param GoogleCloudRecommendationengineV1beta1FeatureMapFloatList[]
*/
public function setNumericalFeatures($numericalFeatures)
{
$this->numericalFeatures = $numericalFeatures;
}
/**
* @return GoogleCloudRecommendationengineV1beta1FeatureMapFloatList[]
*/
public function getNumericalFeatures()
{
return $this->numericalFeatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1FeatureMap::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1FeatureMap');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1FeatureMapFloatList extends \Google\Collection
{
protected $collection_key = 'value';
/**
* @var float[]
*/
public $value;
/**
* @param float[]
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return float[]
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1FeatureMapFloatList::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1FeatureMapFloatList');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1FeatureMapStringList extends \Google\Collection
{
protected $collection_key = 'value';
/**
* @var string[]
*/
public $value;
/**
* @param string[]
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string[]
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1FeatureMapStringList::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1FeatureMapStringList');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1GcsSource extends \Google\Collection
{
protected $collection_key = 'inputUris';
/**
* @var string[]
*/
public $inputUris;
/**
* @var string
*/
public $jsonSchema;
/**
* @param string[]
*/
public function setInputUris($inputUris)
{
$this->inputUris = $inputUris;
}
/**
* @return string[]
*/
public function getInputUris()
{
return $this->inputUris;
}
/**
* @param string
*/
public function setJsonSchema($jsonSchema)
{
$this->jsonSchema = $jsonSchema;
}
/**
* @return string
*/
public function getJsonSchema()
{
return $this->jsonSchema;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1GcsSource::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1GcsSource');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1Image extends \Google\Model
{
/**
* @var int
*/
public $height;
/**
* @var string
*/
public $uri;
/**
* @var int
*/
public $width;
/**
* @param int
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* @param int
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1Image::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1Image');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest extends \Google\Model
{
protected $errorsConfigType = GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::class;
protected $errorsConfigDataType = '';
protected $inputConfigType = GoogleCloudRecommendationengineV1beta1InputConfig::class;
protected $inputConfigDataType = '';
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $updateMask;
/**
* @param GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function setErrorsConfig(GoogleCloudRecommendationengineV1beta1ImportErrorsConfig $errorsConfig)
{
$this->errorsConfig = $errorsConfig;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function getErrorsConfig()
{
return $this->errorsConfig;
}
/**
* @param GoogleCloudRecommendationengineV1beta1InputConfig
*/
public function setInputConfig(GoogleCloudRecommendationengineV1beta1InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return GoogleCloudRecommendationengineV1beta1InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest');

View File

@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse extends \Google\Collection
{
protected $collection_key = 'errorSamples';
protected $errorSamplesType = GoogleRpcStatus::class;
protected $errorSamplesDataType = 'array';
protected $errorsConfigType = GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::class;
protected $errorsConfigDataType = '';
/**
* @param GoogleRpcStatus[]
*/
public function setErrorSamples($errorSamples)
{
$this->errorSamples = $errorSamples;
}
/**
* @return GoogleRpcStatus[]
*/
public function getErrorSamples()
{
return $this->errorSamples;
}
/**
* @param GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function setErrorsConfig(GoogleCloudRecommendationengineV1beta1ImportErrorsConfig $errorsConfig)
{
$this->errorsConfig = $errorsConfig;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function getErrorsConfig()
{
return $this->errorsConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ImportErrorsConfig extends \Google\Model
{
/**
* @var string
*/
public $gcsPrefix;
/**
* @param string
*/
public function setGcsPrefix($gcsPrefix)
{
$this->gcsPrefix = $gcsPrefix;
}
/**
* @return string
*/
public function getGcsPrefix()
{
return $this->gcsPrefix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ImportErrorsConfig');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ImportMetadata extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $failureCount;
/**
* @var string
*/
public $operationName;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $successCount;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setFailureCount($failureCount)
{
$this->failureCount = $failureCount;
}
/**
* @return string
*/
public function getFailureCount()
{
return $this->failureCount;
}
/**
* @param string
*/
public function setOperationName($operationName)
{
$this->operationName = $operationName;
}
/**
* @return string
*/
public function getOperationName()
{
return $this->operationName;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param string
*/
public function setSuccessCount($successCount)
{
$this->successCount = $successCount;
}
/**
* @return string
*/
public function getSuccessCount()
{
return $this->successCount;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ImportMetadata::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ImportMetadata');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest extends \Google\Model
{
protected $errorsConfigType = GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::class;
protected $errorsConfigDataType = '';
protected $inputConfigType = GoogleCloudRecommendationengineV1beta1InputConfig::class;
protected $inputConfigDataType = '';
/**
* @var string
*/
public $requestId;
/**
* @param GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function setErrorsConfig(GoogleCloudRecommendationengineV1beta1ImportErrorsConfig $errorsConfig)
{
$this->errorsConfig = $errorsConfig;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function getErrorsConfig()
{
return $this->errorsConfig;
}
/**
* @param GoogleCloudRecommendationengineV1beta1InputConfig
*/
public function setInputConfig(GoogleCloudRecommendationengineV1beta1InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return GoogleCloudRecommendationengineV1beta1InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest');

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse extends \Google\Collection
{
protected $collection_key = 'errorSamples';
protected $errorSamplesType = GoogleRpcStatus::class;
protected $errorSamplesDataType = 'array';
protected $errorsConfigType = GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::class;
protected $errorsConfigDataType = '';
protected $importSummaryType = GoogleCloudRecommendationengineV1beta1UserEventImportSummary::class;
protected $importSummaryDataType = '';
/**
* @param GoogleRpcStatus[]
*/
public function setErrorSamples($errorSamples)
{
$this->errorSamples = $errorSamples;
}
/**
* @return GoogleRpcStatus[]
*/
public function getErrorSamples()
{
return $this->errorSamples;
}
/**
* @param GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function setErrorsConfig(GoogleCloudRecommendationengineV1beta1ImportErrorsConfig $errorsConfig)
{
$this->errorsConfig = $errorsConfig;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
*/
public function getErrorsConfig()
{
return $this->errorsConfig;
}
/**
* @param GoogleCloudRecommendationengineV1beta1UserEventImportSummary
*/
public function setImportSummary(GoogleCloudRecommendationengineV1beta1UserEventImportSummary $importSummary)
{
$this->importSummary = $importSummary;
}
/**
* @return GoogleCloudRecommendationengineV1beta1UserEventImportSummary
*/
public function getImportSummary()
{
return $this->importSummary;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse');

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1InputConfig extends \Google\Model
{
protected $bigQuerySourceType = GoogleCloudRecommendationengineV1beta1BigQuerySource::class;
protected $bigQuerySourceDataType = '';
protected $catalogInlineSourceType = GoogleCloudRecommendationengineV1beta1CatalogInlineSource::class;
protected $catalogInlineSourceDataType = '';
protected $gcsSourceType = GoogleCloudRecommendationengineV1beta1GcsSource::class;
protected $gcsSourceDataType = '';
protected $userEventInlineSourceType = GoogleCloudRecommendationengineV1beta1UserEventInlineSource::class;
protected $userEventInlineSourceDataType = '';
/**
* @param GoogleCloudRecommendationengineV1beta1BigQuerySource
*/
public function setBigQuerySource(GoogleCloudRecommendationengineV1beta1BigQuerySource $bigQuerySource)
{
$this->bigQuerySource = $bigQuerySource;
}
/**
* @return GoogleCloudRecommendationengineV1beta1BigQuerySource
*/
public function getBigQuerySource()
{
return $this->bigQuerySource;
}
/**
* @param GoogleCloudRecommendationengineV1beta1CatalogInlineSource
*/
public function setCatalogInlineSource(GoogleCloudRecommendationengineV1beta1CatalogInlineSource $catalogInlineSource)
{
$this->catalogInlineSource = $catalogInlineSource;
}
/**
* @return GoogleCloudRecommendationengineV1beta1CatalogInlineSource
*/
public function getCatalogInlineSource()
{
return $this->catalogInlineSource;
}
/**
* @param GoogleCloudRecommendationengineV1beta1GcsSource
*/
public function setGcsSource(GoogleCloudRecommendationengineV1beta1GcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return GoogleCloudRecommendationengineV1beta1GcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
/**
* @param GoogleCloudRecommendationengineV1beta1UserEventInlineSource
*/
public function setUserEventInlineSource(GoogleCloudRecommendationengineV1beta1UserEventInlineSource $userEventInlineSource)
{
$this->userEventInlineSource = $userEventInlineSource;
}
/**
* @return GoogleCloudRecommendationengineV1beta1UserEventInlineSource
*/
public function getUserEventInlineSource()
{
return $this->userEventInlineSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1InputConfig::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1InputConfig');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse extends \Google\Collection
{
protected $collection_key = 'catalogItems';
protected $catalogItemsType = GoogleCloudRecommendationengineV1beta1CatalogItem::class;
protected $catalogItemsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudRecommendationengineV1beta1CatalogItem[]
*/
public function setCatalogItems($catalogItems)
{
$this->catalogItems = $catalogItems;
}
/**
* @return GoogleCloudRecommendationengineV1beta1CatalogItem[]
*/
public function getCatalogItems()
{
return $this->catalogItems;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ListCatalogsResponse extends \Google\Collection
{
protected $collection_key = 'catalogs';
protected $catalogsType = GoogleCloudRecommendationengineV1beta1Catalog::class;
protected $catalogsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudRecommendationengineV1beta1Catalog[]
*/
public function setCatalogs($catalogs)
{
$this->catalogs = $catalogs;
}
/**
* @return GoogleCloudRecommendationengineV1beta1Catalog[]
*/
public function getCatalogs()
{
return $this->catalogs;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ListCatalogsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ListCatalogsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse extends \Google\Collection
{
protected $collection_key = 'predictionApiKeyRegistrations';
/**
* @var string
*/
public $nextPageToken;
protected $predictionApiKeyRegistrationsType = GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::class;
protected $predictionApiKeyRegistrationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration[]
*/
public function setPredictionApiKeyRegistrations($predictionApiKeyRegistrations)
{
$this->predictionApiKeyRegistrations = $predictionApiKeyRegistrations;
}
/**
* @return GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration[]
*/
public function getPredictionApiKeyRegistrations()
{
return $this->predictionApiKeyRegistrations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ListUserEventsResponse extends \Google\Collection
{
protected $collection_key = 'userEvents';
/**
* @var string
*/
public $nextPageToken;
protected $userEventsType = GoogleCloudRecommendationengineV1beta1UserEvent::class;
protected $userEventsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudRecommendationengineV1beta1UserEvent[]
*/
public function setUserEvents($userEvents)
{
$this->userEvents = $userEvents;
}
/**
* @return GoogleCloudRecommendationengineV1beta1UserEvent[]
*/
public function getUserEvents()
{
return $this->userEvents;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ListUserEventsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ListUserEventsResponse');

View File

@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PredictRequest extends \Google\Model
{
/**
* @var bool
*/
public $dryRun;
/**
* @var string
*/
public $filter;
/**
* @var string[]
*/
public $labels;
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
/**
* @var array[]
*/
public $params;
protected $userEventType = GoogleCloudRecommendationengineV1beta1UserEvent::class;
protected $userEventDataType = '';
/**
* @param bool
*/
public function setDryRun($dryRun)
{
$this->dryRun = $dryRun;
}
/**
* @return bool
*/
public function getDryRun()
{
return $this->dryRun;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* @param array[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
/**
* @param GoogleCloudRecommendationengineV1beta1UserEvent
*/
public function setUserEvent(GoogleCloudRecommendationengineV1beta1UserEvent $userEvent)
{
$this->userEvent = $userEvent;
}
/**
* @return GoogleCloudRecommendationengineV1beta1UserEvent
*/
public function getUserEvent()
{
return $this->userEvent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PredictRequest::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PredictRequest');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PredictResponse extends \Google\Collection
{
protected $collection_key = 'results';
/**
* @var bool
*/
public $dryRun;
/**
* @var string[]
*/
public $itemsMissingInCatalog;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $recommendationToken;
protected $resultsType = GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult::class;
protected $resultsDataType = 'array';
/**
* @param bool
*/
public function setDryRun($dryRun)
{
$this->dryRun = $dryRun;
}
/**
* @return bool
*/
public function getDryRun()
{
return $this->dryRun;
}
/**
* @param string[]
*/
public function setItemsMissingInCatalog($itemsMissingInCatalog)
{
$this->itemsMissingInCatalog = $itemsMissingInCatalog;
}
/**
* @return string[]
*/
public function getItemsMissingInCatalog()
{
return $this->itemsMissingInCatalog;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setRecommendationToken($recommendationToken)
{
$this->recommendationToken = $recommendationToken;
}
/**
* @return string
*/
public function getRecommendationToken()
{
return $this->recommendationToken;
}
/**
* @param GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PredictResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PredictResponse');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var array[]
*/
public $itemMetadata;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param array[]
*/
public function setItemMetadata($itemMetadata)
{
$this->itemMetadata = $itemMetadata;
}
/**
* @return array[]
*/
public function getItemMetadata()
{
return $this->itemMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration extends \Google\Model
{
/**
* @var string
*/
public $apiKey;
/**
* @param string
*/
public function setApiKey($apiKey)
{
$this->apiKey = $apiKey;
}
/**
* @return string
*/
public function getApiKey()
{
return $this->apiKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration');

View File

@@ -0,0 +1,165 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ProductCatalogItem extends \Google\Collection
{
protected $collection_key = 'images';
/**
* @var string
*/
public $availableQuantity;
/**
* @var string
*/
public $canonicalProductUri;
/**
* @var float[]
*/
public $costs;
/**
* @var string
*/
public $currencyCode;
protected $exactPriceType = GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice::class;
protected $exactPriceDataType = '';
protected $imagesType = GoogleCloudRecommendationengineV1beta1Image::class;
protected $imagesDataType = 'array';
protected $priceRangeType = GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange::class;
protected $priceRangeDataType = '';
/**
* @var string
*/
public $stockState;
/**
* @param string
*/
public function setAvailableQuantity($availableQuantity)
{
$this->availableQuantity = $availableQuantity;
}
/**
* @return string
*/
public function getAvailableQuantity()
{
return $this->availableQuantity;
}
/**
* @param string
*/
public function setCanonicalProductUri($canonicalProductUri)
{
$this->canonicalProductUri = $canonicalProductUri;
}
/**
* @return string
*/
public function getCanonicalProductUri()
{
return $this->canonicalProductUri;
}
/**
* @param float[]
*/
public function setCosts($costs)
{
$this->costs = $costs;
}
/**
* @return float[]
*/
public function getCosts()
{
return $this->costs;
}
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
*/
public function setExactPrice(GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice $exactPrice)
{
$this->exactPrice = $exactPrice;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
*/
public function getExactPrice()
{
return $this->exactPrice;
}
/**
* @param GoogleCloudRecommendationengineV1beta1Image[]
*/
public function setImages($images)
{
$this->images = $images;
}
/**
* @return GoogleCloudRecommendationengineV1beta1Image[]
*/
public function getImages()
{
return $this->images;
}
/**
* @param GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
*/
public function setPriceRange(GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange $priceRange)
{
$this->priceRange = $priceRange;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
*/
public function getPriceRange()
{
return $this->priceRange;
}
/**
* @param string
*/
public function setStockState($stockState)
{
$this->stockState = $stockState;
}
/**
* @return string
*/
public function getStockState()
{
return $this->stockState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ProductCatalogItem::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ProductCatalogItem');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice extends \Google\Model
{
/**
* @var float
*/
public $displayPrice;
/**
* @var float
*/
public $originalPrice;
/**
* @param float
*/
public function setDisplayPrice($displayPrice)
{
$this->displayPrice = $displayPrice;
}
/**
* @return float
*/
public function getDisplayPrice()
{
return $this->displayPrice;
}
/**
* @param float
*/
public function setOriginalPrice($originalPrice)
{
$this->originalPrice = $originalPrice;
}
/**
* @return float
*/
public function getOriginalPrice()
{
return $this->originalPrice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange extends \Google\Model
{
/**
* @var float
*/
public $max;
/**
* @var float
*/
public $min;
/**
* @param float
*/
public function setMax($max)
{
$this->max = $max;
}
/**
* @return float
*/
public function getMax()
{
return $this->max;
}
/**
* @param float
*/
public function setMin($min)
{
$this->min = $min;
}
/**
* @return float
*/
public function getMin()
{
return $this->min;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange');

View File

@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ProductDetail extends \Google\Model
{
/**
* @var int
*/
public $availableQuantity;
/**
* @var string
*/
public $currencyCode;
/**
* @var float
*/
public $displayPrice;
/**
* @var string
*/
public $id;
protected $itemAttributesType = GoogleCloudRecommendationengineV1beta1FeatureMap::class;
protected $itemAttributesDataType = '';
/**
* @var float
*/
public $originalPrice;
/**
* @var int
*/
public $quantity;
/**
* @var string
*/
public $stockState;
/**
* @param int
*/
public function setAvailableQuantity($availableQuantity)
{
$this->availableQuantity = $availableQuantity;
}
/**
* @return int
*/
public function getAvailableQuantity()
{
return $this->availableQuantity;
}
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param float
*/
public function setDisplayPrice($displayPrice)
{
$this->displayPrice = $displayPrice;
}
/**
* @return float
*/
public function getDisplayPrice()
{
return $this->displayPrice;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param GoogleCloudRecommendationengineV1beta1FeatureMap
*/
public function setItemAttributes(GoogleCloudRecommendationengineV1beta1FeatureMap $itemAttributes)
{
$this->itemAttributes = $itemAttributes;
}
/**
* @return GoogleCloudRecommendationengineV1beta1FeatureMap
*/
public function getItemAttributes()
{
return $this->itemAttributes;
}
/**
* @param float
*/
public function setOriginalPrice($originalPrice)
{
$this->originalPrice = $originalPrice;
}
/**
* @return float
*/
public function getOriginalPrice()
{
return $this->originalPrice;
}
/**
* @param int
*/
public function setQuantity($quantity)
{
$this->quantity = $quantity;
}
/**
* @return int
*/
public function getQuantity()
{
return $this->quantity;
}
/**
* @param string
*/
public function setStockState($stockState)
{
$this->stockState = $stockState;
}
/**
* @return string
*/
public function getStockState()
{
return $this->stockState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ProductDetail::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ProductDetail');

View File

@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1ProductEventDetail extends \Google\Collection
{
protected $collection_key = 'productDetails';
/**
* @var string
*/
public $cartId;
/**
* @var string
*/
public $listId;
protected $pageCategoriesType = GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy::class;
protected $pageCategoriesDataType = 'array';
protected $productDetailsType = GoogleCloudRecommendationengineV1beta1ProductDetail::class;
protected $productDetailsDataType = 'array';
protected $purchaseTransactionType = GoogleCloudRecommendationengineV1beta1PurchaseTransaction::class;
protected $purchaseTransactionDataType = '';
/**
* @var string
*/
public $searchQuery;
/**
* @param string
*/
public function setCartId($cartId)
{
$this->cartId = $cartId;
}
/**
* @return string
*/
public function getCartId()
{
return $this->cartId;
}
/**
* @param string
*/
public function setListId($listId)
{
$this->listId = $listId;
}
/**
* @return string
*/
public function getListId()
{
return $this->listId;
}
/**
* @param GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy[]
*/
public function setPageCategories($pageCategories)
{
$this->pageCategories = $pageCategories;
}
/**
* @return GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy[]
*/
public function getPageCategories()
{
return $this->pageCategories;
}
/**
* @param GoogleCloudRecommendationengineV1beta1ProductDetail[]
*/
public function setProductDetails($productDetails)
{
$this->productDetails = $productDetails;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ProductDetail[]
*/
public function getProductDetails()
{
return $this->productDetails;
}
/**
* @param GoogleCloudRecommendationengineV1beta1PurchaseTransaction
*/
public function setPurchaseTransaction(GoogleCloudRecommendationengineV1beta1PurchaseTransaction $purchaseTransaction)
{
$this->purchaseTransaction = $purchaseTransaction;
}
/**
* @return GoogleCloudRecommendationengineV1beta1PurchaseTransaction
*/
public function getPurchaseTransaction()
{
return $this->purchaseTransaction;
}
/**
* @param string
*/
public function setSearchQuery($searchQuery)
{
$this->searchQuery = $searchQuery;
}
/**
* @return string
*/
public function getSearchQuery()
{
return $this->searchQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1ProductEventDetail::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1ProductEventDetail');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PurchaseTransaction extends \Google\Model
{
/**
* @var float[]
*/
public $costs;
/**
* @var string
*/
public $currencyCode;
/**
* @var string
*/
public $id;
/**
* @var float
*/
public $revenue;
/**
* @var float[]
*/
public $taxes;
/**
* @param float[]
*/
public function setCosts($costs)
{
$this->costs = $costs;
}
/**
* @return float[]
*/
public function getCosts()
{
return $this->costs;
}
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param float
*/
public function setRevenue($revenue)
{
$this->revenue = $revenue;
}
/**
* @return float
*/
public function getRevenue()
{
return $this->revenue;
}
/**
* @param float[]
*/
public function setTaxes($taxes)
{
$this->taxes = $taxes;
}
/**
* @return float[]
*/
public function getTaxes()
{
return $this->taxes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PurchaseTransaction::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PurchaseTransaction');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $operationName;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setOperationName($operationName)
{
$this->operationName = $operationName;
}
/**
* @return string
*/
public function getOperationName()
{
return $this->operationName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest extends \Google\Model
{
/**
* @var string
*/
public $filter;
/**
* @var bool
*/
public $force;
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param bool
*/
public function setForce($force)
{
$this->force = $force;
}
/**
* @return bool
*/
public function getForce()
{
return $this->force;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse extends \Google\Collection
{
protected $collection_key = 'userEventsSample';
/**
* @var string
*/
public $purgedEventsCount;
protected $userEventsSampleType = GoogleCloudRecommendationengineV1beta1UserEvent::class;
protected $userEventsSampleDataType = 'array';
/**
* @param string
*/
public function setPurgedEventsCount($purgedEventsCount)
{
$this->purgedEventsCount = $purgedEventsCount;
}
/**
* @return string
*/
public function getPurgedEventsCount()
{
return $this->purgedEventsCount;
}
/**
* @param GoogleCloudRecommendationengineV1beta1UserEvent[]
*/
public function setUserEventsSample($userEventsSample)
{
$this->userEventsSample = $userEventsSample;
}
/**
* @return GoogleCloudRecommendationengineV1beta1UserEvent[]
*/
public function getUserEventsSample()
{
return $this->userEventsSample;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1RejoinUserEventsMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1RejoinUserEventsMetadata::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1RejoinUserEventsMetadata');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest extends \Google\Model
{
/**
* @var string
*/
public $userEventRejoinScope;
/**
* @param string
*/
public function setUserEventRejoinScope($userEventRejoinScope)
{
$this->userEventRejoinScope = $userEventRejoinScope;
}
/**
* @return string
*/
public function getUserEventRejoinScope()
{
return $this->userEventRejoinScope;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse extends \Google\Model
{
/**
* @var string
*/
public $rejoinedUserEventsCount;
/**
* @param string
*/
public function setRejoinedUserEventsCount($rejoinedUserEventsCount)
{
$this->rejoinedUserEventsCount = $rejoinedUserEventsCount;
}
/**
* @return string
*/
public function getRejoinedUserEventsCount()
{
return $this->rejoinedUserEventsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1RejoinUserEventsResponse');

View File

@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1UserEvent extends \Google\Model
{
protected $eventDetailType = GoogleCloudRecommendationengineV1beta1EventDetail::class;
protected $eventDetailDataType = '';
/**
* @var string
*/
public $eventSource;
/**
* @var string
*/
public $eventTime;
/**
* @var string
*/
public $eventType;
protected $productEventDetailType = GoogleCloudRecommendationengineV1beta1ProductEventDetail::class;
protected $productEventDetailDataType = '';
protected $userInfoType = GoogleCloudRecommendationengineV1beta1UserInfo::class;
protected $userInfoDataType = '';
/**
* @param GoogleCloudRecommendationengineV1beta1EventDetail
*/
public function setEventDetail(GoogleCloudRecommendationengineV1beta1EventDetail $eventDetail)
{
$this->eventDetail = $eventDetail;
}
/**
* @return GoogleCloudRecommendationengineV1beta1EventDetail
*/
public function getEventDetail()
{
return $this->eventDetail;
}
/**
* @param string
*/
public function setEventSource($eventSource)
{
$this->eventSource = $eventSource;
}
/**
* @return string
*/
public function getEventSource()
{
return $this->eventSource;
}
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param string
*/
public function setEventType($eventType)
{
$this->eventType = $eventType;
}
/**
* @return string
*/
public function getEventType()
{
return $this->eventType;
}
/**
* @param GoogleCloudRecommendationengineV1beta1ProductEventDetail
*/
public function setProductEventDetail(GoogleCloudRecommendationengineV1beta1ProductEventDetail $productEventDetail)
{
$this->productEventDetail = $productEventDetail;
}
/**
* @return GoogleCloudRecommendationengineV1beta1ProductEventDetail
*/
public function getProductEventDetail()
{
return $this->productEventDetail;
}
/**
* @param GoogleCloudRecommendationengineV1beta1UserInfo
*/
public function setUserInfo(GoogleCloudRecommendationengineV1beta1UserInfo $userInfo)
{
$this->userInfo = $userInfo;
}
/**
* @return GoogleCloudRecommendationengineV1beta1UserInfo
*/
public function getUserInfo()
{
return $this->userInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1UserEvent::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1UserEvent');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1UserEventImportSummary extends \Google\Model
{
/**
* @var string
*/
public $joinedEventsCount;
/**
* @var string
*/
public $unjoinedEventsCount;
/**
* @param string
*/
public function setJoinedEventsCount($joinedEventsCount)
{
$this->joinedEventsCount = $joinedEventsCount;
}
/**
* @return string
*/
public function getJoinedEventsCount()
{
return $this->joinedEventsCount;
}
/**
* @param string
*/
public function setUnjoinedEventsCount($unjoinedEventsCount)
{
$this->unjoinedEventsCount = $unjoinedEventsCount;
}
/**
* @return string
*/
public function getUnjoinedEventsCount()
{
return $this->unjoinedEventsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1UserEventImportSummary::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1UserEventImportSummary');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1UserEventInlineSource extends \Google\Collection
{
protected $collection_key = 'userEvents';
protected $userEventsType = GoogleCloudRecommendationengineV1beta1UserEvent::class;
protected $userEventsDataType = 'array';
/**
* @param GoogleCloudRecommendationengineV1beta1UserEvent[]
*/
public function setUserEvents($userEvents)
{
$this->userEvents = $userEvents;
}
/**
* @return GoogleCloudRecommendationengineV1beta1UserEvent[]
*/
public function getUserEvents()
{
return $this->userEvents;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1UserEventInlineSource::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1UserEventInlineSource');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleCloudRecommendationengineV1beta1UserInfo extends \Google\Model
{
/**
* @var bool
*/
public $directUserRequest;
/**
* @var string
*/
public $ipAddress;
/**
* @var string
*/
public $userAgent;
/**
* @var string
*/
public $userId;
/**
* @var string
*/
public $visitorId;
/**
* @param bool
*/
public function setDirectUserRequest($directUserRequest)
{
$this->directUserRequest = $directUserRequest;
}
/**
* @return bool
*/
public function getDirectUserRequest()
{
return $this->directUserRequest;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string
*/
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
/**
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
/**
* @param string
*/
public function setVisitorId($visitorId)
{
$this->visitorId = $visitorId;
}
/**
* @return string
*/
public function getVisitorId()
{
return $this->visitorId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommendationengineV1beta1UserInfo::class, 'Google_Service_RecommendationsAI_GoogleCloudRecommendationengineV1beta1UserInfo');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleLongrunningOperation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_RecommendationsAI_GoogleLongrunningListOperationsResponse');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param GoogleRpcStatus
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningOperation::class, 'Google_Service_RecommendationsAI_GoogleLongrunningOperation');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_RecommendationsAI_GoogleProtobufEmpty');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcStatus::class, 'Google_Service_RecommendationsAI_GoogleRpcStatus');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $projects = $recommendationengineService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_RecommendationsAI_Resource_Projects');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $locations = $recommendationengineService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocations');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1Catalog;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1ListCatalogsResponse;
/**
* The "catalogs" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $catalogs = $recommendationengineService->projects_locations_catalogs;
* </code>
*/
class ProjectsLocationsCatalogs extends \Google\Service\Resource
{
/**
* Lists all the catalog configurations associated with the project.
* (catalogs.listProjectsLocationsCatalogs)
*
* @param string $parent Required. The account resource name with an associated
* location.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of results to return. If
* unspecified, defaults to 50. Max allowed value is 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListCatalogs` call. Provide this to retrieve the subsequent page.
* @return GoogleCloudRecommendationengineV1beta1ListCatalogsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommendationengineV1beta1ListCatalogsResponse::class);
}
/**
* Updates the catalog configuration. (catalogs.patch)
*
* @param string $name The fully qualified resource name of the catalog.
* @param GoogleCloudRecommendationengineV1beta1Catalog $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Indicates which fields in the provided
* 'catalog' to update. If not set, will only update the
* catalog_item_level_config field. Currently only fields that can be updated
* are catalog_item_level_config.
* @return GoogleCloudRecommendationengineV1beta1Catalog
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudRecommendationengineV1beta1Catalog $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudRecommendationengineV1beta1Catalog::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogs::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogs');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1CatalogItem;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse;
use Google\Service\RecommendationsAI\GoogleLongrunningOperation;
use Google\Service\RecommendationsAI\GoogleProtobufEmpty;
/**
* The "catalogItems" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $catalogItems = $recommendationengineService->projects_locations_catalogs_catalogItems;
* </code>
*/
class ProjectsLocationsCatalogsCatalogItems extends \Google\Service\Resource
{
/**
* Creates a catalog item. (catalogItems.create)
*
* @param string $parent Required. The parent catalog resource name, such as
* `projects/locations/global/catalogs/default_catalog`.
* @param GoogleCloudRecommendationengineV1beta1CatalogItem $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommendationengineV1beta1CatalogItem
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudRecommendationengineV1beta1CatalogItem $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudRecommendationengineV1beta1CatalogItem::class);
}
/**
* Deletes a catalog item. (catalogItems.delete)
*
* @param string $name Required. Full resource name of catalog item, such as `pr
* ojects/locations/global/catalogs/default_catalog/catalogItems/some_catalog_it
* em_id`.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a specific catalog item. (catalogItems.get)
*
* @param string $name Required. Full resource name of catalog item, such as `pr
* ojects/locations/global/catalogs/default_catalog/catalogitems/some_catalog_it
* em_id`.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommendationengineV1beta1CatalogItem
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommendationengineV1beta1CatalogItem::class);
}
/**
* Bulk import of multiple catalog items. Request processing may be synchronous.
* No partial updating supported. Non-existing items will be created.
* Operation.response is of type ImportResponse. Note that it is possible for a
* subset of the items to be successfully updated. (catalogItems.import)
*
* @param string $parent Required.
* `projects/1234/locations/global/catalogs/default_catalog` If no updateMask is
* specified, requires catalogItems.create permission. If updateMask is
* specified, requires catalogItems.update permission.
* @param GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function import($parent, GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets a list of catalog items.
* (catalogItems.listProjectsLocationsCatalogsCatalogItems)
*
* @param string $parent Required. The parent catalog resource name, such as
* `projects/locations/global/catalogs/default_catalog`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Use of this field is not supported by
* version v1beta1.
* @opt_param int pageSize Optional. Maximum number of results to return per
* page. If zero, the service will choose a reasonable default.
* @opt_param string pageToken Optional. The previous
* ListCatalogItemsResponse.next_page_token.
* @return GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogsCatalogItems($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse::class);
}
/**
* Updates a catalog item. Partial updating is supported. Non-existing items
* will be created. (catalogItems.patch)
*
* @param string $name Required. Full resource name of catalog item, such as `pr
* ojects/locations/global/catalogs/default_catalog/catalogItems/some_catalog_it
* em_id`.
* @param GoogleCloudRecommendationengineV1beta1CatalogItem $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Indicates which fields in the provided
* 'item' to update. If not set, will by default update all fields.
* @return GoogleCloudRecommendationengineV1beta1CatalogItem
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudRecommendationengineV1beta1CatalogItem $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudRecommendationengineV1beta1CatalogItem::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsCatalogItems::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsCatalogItems');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
/**
* The "eventStores" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $eventStores = $recommendationengineService->projects_locations_catalogs_eventStores;
* </code>
*/
class ProjectsLocationsCatalogsEventStores extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsEventStores::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsEventStores');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
use Google\Service\RecommendationsAI\GoogleLongrunningListOperationsResponse;
use Google\Service\RecommendationsAI\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $operations = $recommendationengineService->projects_locations_catalogs_eventStores_operations;
* </code>
*/
class ProjectsLocationsCatalogsEventStoresOperations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsCatalogsEventStoresOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogsEventStoresOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsEventStoresOperations::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsEventStoresOperations');

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1PredictRequest;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1PredictResponse;
/**
* The "placements" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $placements = $recommendationengineService->projects_locations_catalogs_eventStores_placements;
* </code>
*/
class ProjectsLocationsCatalogsEventStoresPlacements extends \Google\Service\Resource
{
/**
* Makes a recommendation prediction. If using API Key based authentication, the
* API Key must be registered using the PredictionApiKeyRegistry service. [Learn
* more](https://cloud.google.com/recommendations-ai/docs/setting-up#register-
* key). (placements.predict)
*
* @param string $name
* @param GoogleCloudRecommendationengineV1beta1PredictRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommendationengineV1beta1PredictResponse
* @throws \Google\Service\Exception
*/
public function predict($name, GoogleCloudRecommendationengineV1beta1PredictRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('predict', [$params], GoogleCloudRecommendationengineV1beta1PredictResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsEventStoresPlacements::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsEventStoresPlacements');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration;
use Google\Service\RecommendationsAI\GoogleProtobufEmpty;
/**
* The "predictionApiKeyRegistrations" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $predictionApiKeyRegistrations = $recommendationengineService->projects_locations_catalogs_eventStores_predictionApiKeyRegistrations;
* </code>
*/
class ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations extends \Google\Service\Resource
{
/**
* Register an API key for use with predict method.
* (predictionApiKeyRegistrations.create)
*
* @param string $parent Required. The parent resource path. `projects/locations
* /global/catalogs/default_catalog/eventStores/default_event_store`.
* @param GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::class);
}
/**
* Unregister an apiKey from using for predict method.
* (predictionApiKeyRegistrations.delete)
*
* @param string $name Required. The API key to unregister including full
* resource path. `projects/locations/global/catalogs/default_catalog/eventStore
* s/default_event_store/predictionApiKeyRegistrations/`
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* List the registered apiKeys for use with predict method. (predictionApiKeyReg
* istrations.listProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrati
* ons)
*
* @param string $parent Required. The parent placement resource name such as `p
* rojects/1234/locations/global/catalogs/default_catalog/eventStores/default_ev
* ent_store`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of results to return per
* page. If unset, the service will choose a reasonable default.
* @opt_param string pageToken Optional. The previous
* `ListPredictionApiKeyRegistration.nextPageToken`.
* @return GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations');

View File

@@ -0,0 +1,197 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
use Google\Service\RecommendationsAI\GoogleApiHttpBody;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1ListUserEventsResponse;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest;
use Google\Service\RecommendationsAI\GoogleCloudRecommendationengineV1beta1UserEvent;
use Google\Service\RecommendationsAI\GoogleLongrunningOperation;
/**
* The "userEvents" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $userEvents = $recommendationengineService->projects_locations_catalogs_eventStores_userEvents;
* </code>
*/
class ProjectsLocationsCatalogsEventStoresUserEvents extends \Google\Service\Resource
{
/**
* Writes a single user event from the browser. This uses a GET request to due
* to browser restriction of POST-ing to a 3rd party domain. This method is used
* only by the Recommendations AI JavaScript pixel. Users should not call this
* method directly. (userEvents.collect)
*
* @param string $parent Required. The parent eventStore name, such as `projects
* /1234/locations/global/catalogs/default_catalog/eventStores/default_event_sto
* re`.
* @param array $optParams Optional parameters.
*
* @opt_param string ets Optional. The event timestamp in milliseconds. This
* prevents browser caching of otherwise identical get requests. The name is
* abbreviated to reduce the payload bytes.
* @opt_param string uri Optional. The url including cgi-parameters but
* excluding the hash fragment. The URL must be truncated to 1.5K bytes to
* conservatively be under the 2K bytes. This is often more useful than the
* referer url, because many browsers only send the domain for 3rd party
* requests.
* @opt_param string userEvent Required. URL encoded UserEvent proto.
* @return GoogleApiHttpBody
* @throws \Google\Service\Exception
*/
public function collect($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('collect', [$params], GoogleApiHttpBody::class);
}
/**
* Bulk import of User events. Request processing might be synchronous. Events
* that already exist are skipped. Use this method for backfilling historical
* user events. Operation.response is of type ImportResponse. Note that it is
* possible for a subset of the items to be successfully inserted.
* Operation.metadata is of type ImportMetadata. (userEvents.import)
*
* @param string $parent Required. `projects/1234/locations/global/catalogs/defa
* ult_catalog/eventStores/default_event_store`
* @param GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function import($parent, GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets a list of user events within a time range, with potential filtering. The
* method does not list unjoined user events. Unjoined user event definition:
* when a user event is ingested from Recommendations AI User Event APIs, the
* catalog item included in the user event is connected with the current
* catalog. If a catalog item of the ingested event is not in the current
* catalog, it could lead to degraded model quality. This is called an unjoined
* event. (userEvents.listProjectsLocationsCatalogsEventStoresUserEvents)
*
* @param string $parent Required. The parent eventStore resource name, such as
* `projects/locations/catalogs/default_catalog/eventStores/default_event_store`
* .
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering expression to specify
* restrictions over returned events. This is a sequence of terms, where each
* term applies some kind of a restriction to the returned user events. Use this
* expression to restrict results to a specific time range, or filter events by
* eventType. eg: eventTime > "2012-04-23T18:25:43.511Z"
* eventsMissingCatalogItems eventTime<"2012-04-23T18:25:43.511Z"
* eventType=search We expect only 3 types of fields: * eventTime: this can be
* specified a maximum of 2 times, once with a less than operator and once with
* a greater than operator. The eventTime restrict should result in one
* contiguous valid eventTime range. * eventType: only 1 eventType restriction
* can be specified. * eventsMissingCatalogItems: specififying this will
* restrict results to events for which catalog items were not found in the
* catalog. The default behavior is to return only those events for which
* catalog items were found. Some examples of valid filters expressions: *
* Example 1: eventTime > "2012-04-23T18:25:43.511Z" eventTime <
* "2012-04-23T18:30:43.511Z" * Example 2: eventTime >
* "2012-04-23T18:25:43.511Z" eventType = detail-page-view * Example 3:
* eventsMissingCatalogItems eventType = search eventTime <
* "2018-04-23T18:30:43.511Z" * Example 4: eventTime >
* "2012-04-23T18:25:43.511Z" * Example 5: eventType = search * Example 6:
* eventsMissingCatalogItems
* @opt_param int pageSize Optional. Maximum number of results to return per
* page. If zero, the service will choose a reasonable default.
* @opt_param string pageToken Optional. The previous
* ListUserEventsResponse.next_page_token.
* @return GoogleCloudRecommendationengineV1beta1ListUserEventsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogsEventStoresUserEvents($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommendationengineV1beta1ListUserEventsResponse::class);
}
/**
* Deletes permanently all user events specified by the filter provided.
* Depending on the number of events specified by the filter, this operation
* could take hours or days to complete. To test a filter, use the list command
* first. (userEvents.purge)
*
* @param string $parent Required. The resource name of the event_store under
* which the events are created. The format is `projects/${projectId}/locations/
* global/catalogs/${catalogId}/eventStores/${eventStoreId}`
* @param GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function purge($parent, GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('purge', [$params], GoogleLongrunningOperation::class);
}
/**
* Triggers a user event rejoin operation with latest catalog data. Events will
* not be annotated with detailed catalog information if catalog item is missing
* at the time the user event is ingested, and these events are stored as
* unjoined events with a limited usage on training and serving. This API can be
* used to trigger a 'join' operation on specified events with latest version of
* catalog items. It can also be used to correct events joined with wrong
* catalog items. (userEvents.rejoin)
*
* @param string $parent Required. Full resource name of user event, such as `pr
* ojects/locations/catalogs/default_catalog/eventStores/default_event_store`.
* @param GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function rejoin($parent, GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rejoin', [$params], GoogleLongrunningOperation::class);
}
/**
* Writes a single user event. (userEvents.write)
*
* @param string $parent Required. The parent eventStore resource name, such as
* "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_
* event_store".
* @param GoogleCloudRecommendationengineV1beta1UserEvent $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommendationengineV1beta1UserEvent
* @throws \Google\Service\Exception
*/
public function write($parent, GoogleCloudRecommendationengineV1beta1UserEvent $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('write', [$params], GoogleCloudRecommendationengineV1beta1UserEvent::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsEventStoresUserEvents::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsEventStoresUserEvents');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\RecommendationsAI\Resource;
use Google\Service\RecommendationsAI\GoogleLongrunningListOperationsResponse;
use Google\Service\RecommendationsAI\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $recommendationengineService = new Google\Service\RecommendationsAI(...);
* $operations = $recommendationengineService->projects_locations_catalogs_operations;
* </code>
*/
class ProjectsLocationsCatalogsOperations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsCatalogsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsOperations::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsOperations');