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,763 @@
<?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\ManufacturerCenter;
class Attributes extends \Google\Collection
{
protected $collection_key = 'videoLink';
protected $additionalImageLinkType = Image::class;
protected $additionalImageLinkDataType = 'array';
/**
* @var string
*/
public $ageGroup;
/**
* @var string
*/
public $brand;
protected $capacityType = Capacity::class;
protected $capacityDataType = '';
protected $certificationType = GoogleShoppingManufacturersV1ProductCertification::class;
protected $certificationDataType = 'array';
/**
* @var string
*/
public $color;
protected $countType = Count::class;
protected $countDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $disclosureDate;
/**
* @var string[]
*/
public $excludedDestination;
protected $featureDescriptionType = FeatureDescription::class;
protected $featureDescriptionDataType = 'array';
/**
* @var string
*/
public $flavor;
/**
* @var string
*/
public $format;
/**
* @var string
*/
public $gender;
protected $groceryType = Grocery::class;
protected $groceryDataType = '';
/**
* @var string[]
*/
public $gtin;
protected $imageLinkType = Image::class;
protected $imageLinkDataType = '';
/**
* @var string[]
*/
public $includedDestination;
/**
* @var string[]
*/
public $intendedCountry;
/**
* @var string
*/
public $itemGroupId;
/**
* @var string
*/
public $material;
/**
* @var string
*/
public $mpn;
protected $nutritionType = Nutrition::class;
protected $nutritionDataType = '';
/**
* @var string
*/
public $pattern;
protected $productDetailType = ProductDetail::class;
protected $productDetailDataType = 'array';
/**
* @var string[]
*/
public $productHighlight;
/**
* @var string
*/
public $productLine;
/**
* @var string
*/
public $productName;
/**
* @var string
*/
public $productPageUrl;
/**
* @var string[]
*/
public $productType;
/**
* @var string
*/
public $releaseDate;
/**
* @var string[]
*/
public $richProductContent;
/**
* @var string
*/
public $scent;
/**
* @var string
*/
public $size;
/**
* @var string
*/
public $sizeSystem;
/**
* @var string[]
*/
public $sizeType;
protected $suggestedRetailPriceType = Price::class;
protected $suggestedRetailPriceDataType = '';
/**
* @var string
*/
public $targetClientId;
/**
* @var string
*/
public $theme;
/**
* @var string
*/
public $title;
/**
* @var string[]
*/
public $videoLink;
/**
* @var string
*/
public $virtualModelLink;
/**
* @param Image[]
*/
public function setAdditionalImageLink($additionalImageLink)
{
$this->additionalImageLink = $additionalImageLink;
}
/**
* @return Image[]
*/
public function getAdditionalImageLink()
{
return $this->additionalImageLink;
}
/**
* @param string
*/
public function setAgeGroup($ageGroup)
{
$this->ageGroup = $ageGroup;
}
/**
* @return string
*/
public function getAgeGroup()
{
return $this->ageGroup;
}
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param Capacity
*/
public function setCapacity(Capacity $capacity)
{
$this->capacity = $capacity;
}
/**
* @return Capacity
*/
public function getCapacity()
{
return $this->capacity;
}
/**
* @param GoogleShoppingManufacturersV1ProductCertification[]
*/
public function setCertification($certification)
{
$this->certification = $certification;
}
/**
* @return GoogleShoppingManufacturersV1ProductCertification[]
*/
public function getCertification()
{
return $this->certification;
}
/**
* @param string
*/
public function setColor($color)
{
$this->color = $color;
}
/**
* @return string
*/
public function getColor()
{
return $this->color;
}
/**
* @param Count
*/
public function setCount(Count $count)
{
$this->count = $count;
}
/**
* @return Count
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisclosureDate($disclosureDate)
{
$this->disclosureDate = $disclosureDate;
}
/**
* @return string
*/
public function getDisclosureDate()
{
return $this->disclosureDate;
}
/**
* @param string[]
*/
public function setExcludedDestination($excludedDestination)
{
$this->excludedDestination = $excludedDestination;
}
/**
* @return string[]
*/
public function getExcludedDestination()
{
return $this->excludedDestination;
}
/**
* @param FeatureDescription[]
*/
public function setFeatureDescription($featureDescription)
{
$this->featureDescription = $featureDescription;
}
/**
* @return FeatureDescription[]
*/
public function getFeatureDescription()
{
return $this->featureDescription;
}
/**
* @param string
*/
public function setFlavor($flavor)
{
$this->flavor = $flavor;
}
/**
* @return string
*/
public function getFlavor()
{
return $this->flavor;
}
/**
* @param string
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return string
*/
public function getFormat()
{
return $this->format;
}
/**
* @param string
*/
public function setGender($gender)
{
$this->gender = $gender;
}
/**
* @return string
*/
public function getGender()
{
return $this->gender;
}
/**
* @param Grocery
*/
public function setGrocery(Grocery $grocery)
{
$this->grocery = $grocery;
}
/**
* @return Grocery
*/
public function getGrocery()
{
return $this->grocery;
}
/**
* @param string[]
*/
public function setGtin($gtin)
{
$this->gtin = $gtin;
}
/**
* @return string[]
*/
public function getGtin()
{
return $this->gtin;
}
/**
* @param Image
*/
public function setImageLink(Image $imageLink)
{
$this->imageLink = $imageLink;
}
/**
* @return Image
*/
public function getImageLink()
{
return $this->imageLink;
}
/**
* @param string[]
*/
public function setIncludedDestination($includedDestination)
{
$this->includedDestination = $includedDestination;
}
/**
* @return string[]
*/
public function getIncludedDestination()
{
return $this->includedDestination;
}
/**
* @param string[]
*/
public function setIntendedCountry($intendedCountry)
{
$this->intendedCountry = $intendedCountry;
}
/**
* @return string[]
*/
public function getIntendedCountry()
{
return $this->intendedCountry;
}
/**
* @param string
*/
public function setItemGroupId($itemGroupId)
{
$this->itemGroupId = $itemGroupId;
}
/**
* @return string
*/
public function getItemGroupId()
{
return $this->itemGroupId;
}
/**
* @param string
*/
public function setMaterial($material)
{
$this->material = $material;
}
/**
* @return string
*/
public function getMaterial()
{
return $this->material;
}
/**
* @param string
*/
public function setMpn($mpn)
{
$this->mpn = $mpn;
}
/**
* @return string
*/
public function getMpn()
{
return $this->mpn;
}
/**
* @param Nutrition
*/
public function setNutrition(Nutrition $nutrition)
{
$this->nutrition = $nutrition;
}
/**
* @return Nutrition
*/
public function getNutrition()
{
return $this->nutrition;
}
/**
* @param string
*/
public function setPattern($pattern)
{
$this->pattern = $pattern;
}
/**
* @return string
*/
public function getPattern()
{
return $this->pattern;
}
/**
* @param ProductDetail[]
*/
public function setProductDetail($productDetail)
{
$this->productDetail = $productDetail;
}
/**
* @return ProductDetail[]
*/
public function getProductDetail()
{
return $this->productDetail;
}
/**
* @param string[]
*/
public function setProductHighlight($productHighlight)
{
$this->productHighlight = $productHighlight;
}
/**
* @return string[]
*/
public function getProductHighlight()
{
return $this->productHighlight;
}
/**
* @param string
*/
public function setProductLine($productLine)
{
$this->productLine = $productLine;
}
/**
* @return string
*/
public function getProductLine()
{
return $this->productLine;
}
/**
* @param string
*/
public function setProductName($productName)
{
$this->productName = $productName;
}
/**
* @return string
*/
public function getProductName()
{
return $this->productName;
}
/**
* @param string
*/
public function setProductPageUrl($productPageUrl)
{
$this->productPageUrl = $productPageUrl;
}
/**
* @return string
*/
public function getProductPageUrl()
{
return $this->productPageUrl;
}
/**
* @param string[]
*/
public function setProductType($productType)
{
$this->productType = $productType;
}
/**
* @return string[]
*/
public function getProductType()
{
return $this->productType;
}
/**
* @param string
*/
public function setReleaseDate($releaseDate)
{
$this->releaseDate = $releaseDate;
}
/**
* @return string
*/
public function getReleaseDate()
{
return $this->releaseDate;
}
/**
* @param string[]
*/
public function setRichProductContent($richProductContent)
{
$this->richProductContent = $richProductContent;
}
/**
* @return string[]
*/
public function getRichProductContent()
{
return $this->richProductContent;
}
/**
* @param string
*/
public function setScent($scent)
{
$this->scent = $scent;
}
/**
* @return string
*/
public function getScent()
{
return $this->scent;
}
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* @param string
*/
public function setSizeSystem($sizeSystem)
{
$this->sizeSystem = $sizeSystem;
}
/**
* @return string
*/
public function getSizeSystem()
{
return $this->sizeSystem;
}
/**
* @param string[]
*/
public function setSizeType($sizeType)
{
$this->sizeType = $sizeType;
}
/**
* @return string[]
*/
public function getSizeType()
{
return $this->sizeType;
}
/**
* @param Price
*/
public function setSuggestedRetailPrice(Price $suggestedRetailPrice)
{
$this->suggestedRetailPrice = $suggestedRetailPrice;
}
/**
* @return Price
*/
public function getSuggestedRetailPrice()
{
return $this->suggestedRetailPrice;
}
/**
* @param string
*/
public function setTargetClientId($targetClientId)
{
$this->targetClientId = $targetClientId;
}
/**
* @return string
*/
public function getTargetClientId()
{
return $this->targetClientId;
}
/**
* @param string
*/
public function setTheme($theme)
{
$this->theme = $theme;
}
/**
* @return string
*/
public function getTheme()
{
return $this->theme;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string[]
*/
public function setVideoLink($videoLink)
{
$this->videoLink = $videoLink;
}
/**
* @return string[]
*/
public function getVideoLink()
{
return $this->videoLink;
}
/**
* @param string
*/
public function setVirtualModelLink($virtualModelLink)
{
$this->virtualModelLink = $virtualModelLink;
}
/**
* @return string
*/
public function getVirtualModelLink()
{
return $this->virtualModelLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attributes::class, 'Google_Service_ManufacturerCenter_Attributes');

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\ManufacturerCenter;
class Capacity extends \Google\Model
{
/**
* @var string
*/
public $unit;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* @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(Capacity::class, 'Google_Service_ManufacturerCenter_Capacity');

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\ManufacturerCenter;
class Certification extends \Google\Model
{
/**
* @var string
*/
public $authority;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $link;
/**
* @var string
*/
public $logo;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $validUntil;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* @param string
*/
public function setLogo($logo)
{
$this->logo = $logo;
}
/**
* @return string
*/
public function getLogo()
{
return $this->logo;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setValidUntil($validUntil)
{
$this->validUntil = $validUntil;
}
/**
* @return string
*/
public function getValidUntil()
{
return $this->validUntil;
}
/**
* @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(Certification::class, 'Google_Service_ManufacturerCenter_Certification');

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\ManufacturerCenter;
class Count extends \Google\Model
{
/**
* @var string
*/
public $unit;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* @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(Count::class, 'Google_Service_ManufacturerCenter_Count');

View File

@@ -0,0 +1,117 @@
<?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\ManufacturerCenter;
class DestinationStatus extends \Google\Collection
{
protected $collection_key = 'pendingCountries';
/**
* @var string[]
*/
public $approvedCountries;
/**
* @var string
*/
public $destination;
/**
* @var string[]
*/
public $disapprovedCountries;
/**
* @var string[]
*/
public $pendingCountries;
/**
* @var string
*/
public $status;
/**
* @param string[]
*/
public function setApprovedCountries($approvedCountries)
{
$this->approvedCountries = $approvedCountries;
}
/**
* @return string[]
*/
public function getApprovedCountries()
{
return $this->approvedCountries;
}
/**
* @param string
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param string[]
*/
public function setDisapprovedCountries($disapprovedCountries)
{
$this->disapprovedCountries = $disapprovedCountries;
}
/**
* @return string[]
*/
public function getDisapprovedCountries()
{
return $this->disapprovedCountries;
}
/**
* @param string[]
*/
public function setPendingCountries($pendingCountries)
{
$this->pendingCountries = $pendingCountries;
}
/**
* @return string[]
*/
public function getPendingCountries()
{
return $this->pendingCountries;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DestinationStatus::class, 'Google_Service_ManufacturerCenter_DestinationStatus');

View File

@@ -0,0 +1,78 @@
<?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\ManufacturerCenter;
class FeatureDescription extends \Google\Model
{
/**
* @var string
*/
public $headline;
protected $imageType = Image::class;
protected $imageDataType = '';
/**
* @var string
*/
public $text;
/**
* @param string
*/
public function setHeadline($headline)
{
$this->headline = $headline;
}
/**
* @return string
*/
public function getHeadline()
{
return $this->headline;
}
/**
* @param Image
*/
public function setImage(Image $image)
{
$this->image = $image;
}
/**
* @return Image
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FeatureDescription::class, 'Google_Service_ManufacturerCenter_FeatureDescription');

View File

@@ -0,0 +1,53 @@
<?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\ManufacturerCenter;
class FloatUnit extends \Google\Model
{
public $amount;
/**
* @var string
*/
public $unit;
public function setAmount($amount)
{
$this->amount = $amount;
}
public function getAmount()
{
return $this->amount;
}
/**
* @param string
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FloatUnit::class, 'Google_Service_ManufacturerCenter_FloatUnit');

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\ManufacturerCenter;
class GoogleShoppingManufacturersV1ProductCertification extends \Google\Model
{
/**
* @var string
*/
public $authority;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @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(GoogleShoppingManufacturersV1ProductCertification::class, 'Google_Service_ManufacturerCenter_GoogleShoppingManufacturersV1ProductCertification');

View File

@@ -0,0 +1,180 @@
<?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\ManufacturerCenter;
class Grocery extends \Google\Collection
{
protected $collection_key = 'nutritionClaim';
/**
* @var string
*/
public $activeIngredients;
public $alcoholByVolume;
/**
* @var string
*/
public $allergens;
/**
* @var string[]
*/
public $derivedNutritionClaim;
/**
* @var string
*/
public $directions;
/**
* @var string
*/
public $indications;
/**
* @var string
*/
public $ingredients;
/**
* @var string[]
*/
public $nutritionClaim;
/**
* @var string
*/
public $storageInstructions;
/**
* @param string
*/
public function setActiveIngredients($activeIngredients)
{
$this->activeIngredients = $activeIngredients;
}
/**
* @return string
*/
public function getActiveIngredients()
{
return $this->activeIngredients;
}
public function setAlcoholByVolume($alcoholByVolume)
{
$this->alcoholByVolume = $alcoholByVolume;
}
public function getAlcoholByVolume()
{
return $this->alcoholByVolume;
}
/**
* @param string
*/
public function setAllergens($allergens)
{
$this->allergens = $allergens;
}
/**
* @return string
*/
public function getAllergens()
{
return $this->allergens;
}
/**
* @param string[]
*/
public function setDerivedNutritionClaim($derivedNutritionClaim)
{
$this->derivedNutritionClaim = $derivedNutritionClaim;
}
/**
* @return string[]
*/
public function getDerivedNutritionClaim()
{
return $this->derivedNutritionClaim;
}
/**
* @param string
*/
public function setDirections($directions)
{
$this->directions = $directions;
}
/**
* @return string
*/
public function getDirections()
{
return $this->directions;
}
/**
* @param string
*/
public function setIndications($indications)
{
$this->indications = $indications;
}
/**
* @return string
*/
public function getIndications()
{
return $this->indications;
}
/**
* @param string
*/
public function setIngredients($ingredients)
{
$this->ingredients = $ingredients;
}
/**
* @return string
*/
public function getIngredients()
{
return $this->ingredients;
}
/**
* @param string[]
*/
public function setNutritionClaim($nutritionClaim)
{
$this->nutritionClaim = $nutritionClaim;
}
/**
* @return string[]
*/
public function getNutritionClaim()
{
return $this->nutritionClaim;
}
/**
* @param string
*/
public function setStorageInstructions($storageInstructions)
{
$this->storageInstructions = $storageInstructions;
}
/**
* @return string
*/
public function getStorageInstructions()
{
return $this->storageInstructions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Grocery::class, 'Google_Service_ManufacturerCenter_Grocery');

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\ManufacturerCenter;
class Image extends \Google\Model
{
/**
* @var string
*/
public $imageUrl;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setImageUrl($imageUrl)
{
$this->imageUrl = $imageUrl;
}
/**
* @return string
*/
public function getImageUrl()
{
return $this->imageUrl;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Image::class, 'Google_Service_ManufacturerCenter_Image');

View File

@@ -0,0 +1,189 @@
<?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\ManufacturerCenter;
class Issue extends \Google\Collection
{
protected $collection_key = 'applicableCountries';
/**
* @var string[]
*/
public $applicableCountries;
/**
* @var string
*/
public $attribute;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $destination;
/**
* @var string
*/
public $resolution;
/**
* @var string
*/
public $severity;
/**
* @var string
*/
public $timestamp;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $type;
/**
* @param string[]
*/
public function setApplicableCountries($applicableCountries)
{
$this->applicableCountries = $applicableCountries;
}
/**
* @return string[]
*/
public function getApplicableCountries()
{
return $this->applicableCountries;
}
/**
* @param string
*/
public function setAttribute($attribute)
{
$this->attribute = $attribute;
}
/**
* @return string
*/
public function getAttribute()
{
return $this->attribute;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param string
*/
public function setResolution($resolution)
{
$this->resolution = $resolution;
}
/**
* @return string
*/
public function getResolution()
{
return $this->resolution;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param string
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Issue::class, 'Google_Service_ManufacturerCenter_Issue');

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\ManufacturerCenter;
class ListProductCertificationsResponse extends \Google\Collection
{
protected $collection_key = 'productCertifications';
/**
* @var string
*/
public $nextPageToken;
protected $productCertificationsType = ProductCertification::class;
protected $productCertificationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ProductCertification[]
*/
public function setProductCertifications($productCertifications)
{
$this->productCertifications = $productCertifications;
}
/**
* @return ProductCertification[]
*/
public function getProductCertifications()
{
return $this->productCertifications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProductCertificationsResponse::class, 'Google_Service_ManufacturerCenter_ListProductCertificationsResponse');

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\ManufacturerCenter;
class ListProductsResponse extends \Google\Collection
{
protected $collection_key = 'products';
/**
* @var string
*/
public $nextPageToken;
protected $productsType = Product::class;
protected $productsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Product[]
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return Product[]
*/
public function getProducts()
{
return $this->products;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProductsResponse::class, 'Google_Service_ManufacturerCenter_ListProductsResponse');

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\ManufacturerCenter;
class ManufacturersEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManufacturersEmpty::class, 'Google_Service_ManufacturerCenter_ManufacturersEmpty');

View File

@@ -0,0 +1,611 @@
<?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\ManufacturerCenter;
class Nutrition extends \Google\Collection
{
protected $collection_key = 'voluntaryNutritionFact';
protected $addedSugarsType = FloatUnit::class;
protected $addedSugarsDataType = '';
public $addedSugarsDailyPercentage;
protected $calciumType = FloatUnit::class;
protected $calciumDataType = '';
public $calciumDailyPercentage;
protected $cholesterolType = FloatUnit::class;
protected $cholesterolDataType = '';
public $cholesterolDailyPercentage;
protected $dietaryFiberType = FloatUnit::class;
protected $dietaryFiberDataType = '';
public $dietaryFiberDailyPercentage;
protected $energyType = FloatUnit::class;
protected $energyDataType = '';
protected $energyFromFatType = FloatUnit::class;
protected $energyFromFatDataType = '';
public $folateDailyPercentage;
protected $folateFolicAcidType = FloatUnit::class;
protected $folateFolicAcidDataType = '';
public $folateMcgDfe;
protected $ironType = FloatUnit::class;
protected $ironDataType = '';
public $ironDailyPercentage;
protected $monounsaturatedFatType = FloatUnit::class;
protected $monounsaturatedFatDataType = '';
/**
* @var string
*/
public $nutritionFactMeasure;
protected $polyolsType = FloatUnit::class;
protected $polyolsDataType = '';
protected $polyunsaturatedFatType = FloatUnit::class;
protected $polyunsaturatedFatDataType = '';
protected $potassiumType = FloatUnit::class;
protected $potassiumDataType = '';
public $potassiumDailyPercentage;
/**
* @var string
*/
public $preparedSizeDescription;
protected $proteinType = FloatUnit::class;
protected $proteinDataType = '';
public $proteinDailyPercentage;
protected $saturatedFatType = FloatUnit::class;
protected $saturatedFatDataType = '';
public $saturatedFatDailyPercentage;
/**
* @var string
*/
public $servingSizeDescription;
protected $servingSizeMeasureType = FloatUnit::class;
protected $servingSizeMeasureDataType = '';
/**
* @var string
*/
public $servingsPerContainer;
protected $sodiumType = FloatUnit::class;
protected $sodiumDataType = '';
public $sodiumDailyPercentage;
protected $starchType = FloatUnit::class;
protected $starchDataType = '';
protected $totalCarbohydrateType = FloatUnit::class;
protected $totalCarbohydrateDataType = '';
public $totalCarbohydrateDailyPercentage;
protected $totalFatType = FloatUnit::class;
protected $totalFatDataType = '';
public $totalFatDailyPercentage;
protected $totalSugarsType = FloatUnit::class;
protected $totalSugarsDataType = '';
public $totalSugarsDailyPercentage;
protected $transFatType = FloatUnit::class;
protected $transFatDataType = '';
public $transFatDailyPercentage;
protected $vitaminDType = FloatUnit::class;
protected $vitaminDDataType = '';
public $vitaminDDailyPercentage;
protected $voluntaryNutritionFactType = VoluntaryNutritionFact::class;
protected $voluntaryNutritionFactDataType = 'array';
/**
* @param FloatUnit
*/
public function setAddedSugars(FloatUnit $addedSugars)
{
$this->addedSugars = $addedSugars;
}
/**
* @return FloatUnit
*/
public function getAddedSugars()
{
return $this->addedSugars;
}
public function setAddedSugarsDailyPercentage($addedSugarsDailyPercentage)
{
$this->addedSugarsDailyPercentage = $addedSugarsDailyPercentage;
}
public function getAddedSugarsDailyPercentage()
{
return $this->addedSugarsDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setCalcium(FloatUnit $calcium)
{
$this->calcium = $calcium;
}
/**
* @return FloatUnit
*/
public function getCalcium()
{
return $this->calcium;
}
public function setCalciumDailyPercentage($calciumDailyPercentage)
{
$this->calciumDailyPercentage = $calciumDailyPercentage;
}
public function getCalciumDailyPercentage()
{
return $this->calciumDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setCholesterol(FloatUnit $cholesterol)
{
$this->cholesterol = $cholesterol;
}
/**
* @return FloatUnit
*/
public function getCholesterol()
{
return $this->cholesterol;
}
public function setCholesterolDailyPercentage($cholesterolDailyPercentage)
{
$this->cholesterolDailyPercentage = $cholesterolDailyPercentage;
}
public function getCholesterolDailyPercentage()
{
return $this->cholesterolDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setDietaryFiber(FloatUnit $dietaryFiber)
{
$this->dietaryFiber = $dietaryFiber;
}
/**
* @return FloatUnit
*/
public function getDietaryFiber()
{
return $this->dietaryFiber;
}
public function setDietaryFiberDailyPercentage($dietaryFiberDailyPercentage)
{
$this->dietaryFiberDailyPercentage = $dietaryFiberDailyPercentage;
}
public function getDietaryFiberDailyPercentage()
{
return $this->dietaryFiberDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setEnergy(FloatUnit $energy)
{
$this->energy = $energy;
}
/**
* @return FloatUnit
*/
public function getEnergy()
{
return $this->energy;
}
/**
* @param FloatUnit
*/
public function setEnergyFromFat(FloatUnit $energyFromFat)
{
$this->energyFromFat = $energyFromFat;
}
/**
* @return FloatUnit
*/
public function getEnergyFromFat()
{
return $this->energyFromFat;
}
public function setFolateDailyPercentage($folateDailyPercentage)
{
$this->folateDailyPercentage = $folateDailyPercentage;
}
public function getFolateDailyPercentage()
{
return $this->folateDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setFolateFolicAcid(FloatUnit $folateFolicAcid)
{
$this->folateFolicAcid = $folateFolicAcid;
}
/**
* @return FloatUnit
*/
public function getFolateFolicAcid()
{
return $this->folateFolicAcid;
}
public function setFolateMcgDfe($folateMcgDfe)
{
$this->folateMcgDfe = $folateMcgDfe;
}
public function getFolateMcgDfe()
{
return $this->folateMcgDfe;
}
/**
* @param FloatUnit
*/
public function setIron(FloatUnit $iron)
{
$this->iron = $iron;
}
/**
* @return FloatUnit
*/
public function getIron()
{
return $this->iron;
}
public function setIronDailyPercentage($ironDailyPercentage)
{
$this->ironDailyPercentage = $ironDailyPercentage;
}
public function getIronDailyPercentage()
{
return $this->ironDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setMonounsaturatedFat(FloatUnit $monounsaturatedFat)
{
$this->monounsaturatedFat = $monounsaturatedFat;
}
/**
* @return FloatUnit
*/
public function getMonounsaturatedFat()
{
return $this->monounsaturatedFat;
}
/**
* @param string
*/
public function setNutritionFactMeasure($nutritionFactMeasure)
{
$this->nutritionFactMeasure = $nutritionFactMeasure;
}
/**
* @return string
*/
public function getNutritionFactMeasure()
{
return $this->nutritionFactMeasure;
}
/**
* @param FloatUnit
*/
public function setPolyols(FloatUnit $polyols)
{
$this->polyols = $polyols;
}
/**
* @return FloatUnit
*/
public function getPolyols()
{
return $this->polyols;
}
/**
* @param FloatUnit
*/
public function setPolyunsaturatedFat(FloatUnit $polyunsaturatedFat)
{
$this->polyunsaturatedFat = $polyunsaturatedFat;
}
/**
* @return FloatUnit
*/
public function getPolyunsaturatedFat()
{
return $this->polyunsaturatedFat;
}
/**
* @param FloatUnit
*/
public function setPotassium(FloatUnit $potassium)
{
$this->potassium = $potassium;
}
/**
* @return FloatUnit
*/
public function getPotassium()
{
return $this->potassium;
}
public function setPotassiumDailyPercentage($potassiumDailyPercentage)
{
$this->potassiumDailyPercentage = $potassiumDailyPercentage;
}
public function getPotassiumDailyPercentage()
{
return $this->potassiumDailyPercentage;
}
/**
* @param string
*/
public function setPreparedSizeDescription($preparedSizeDescription)
{
$this->preparedSizeDescription = $preparedSizeDescription;
}
/**
* @return string
*/
public function getPreparedSizeDescription()
{
return $this->preparedSizeDescription;
}
/**
* @param FloatUnit
*/
public function setProtein(FloatUnit $protein)
{
$this->protein = $protein;
}
/**
* @return FloatUnit
*/
public function getProtein()
{
return $this->protein;
}
public function setProteinDailyPercentage($proteinDailyPercentage)
{
$this->proteinDailyPercentage = $proteinDailyPercentage;
}
public function getProteinDailyPercentage()
{
return $this->proteinDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setSaturatedFat(FloatUnit $saturatedFat)
{
$this->saturatedFat = $saturatedFat;
}
/**
* @return FloatUnit
*/
public function getSaturatedFat()
{
return $this->saturatedFat;
}
public function setSaturatedFatDailyPercentage($saturatedFatDailyPercentage)
{
$this->saturatedFatDailyPercentage = $saturatedFatDailyPercentage;
}
public function getSaturatedFatDailyPercentage()
{
return $this->saturatedFatDailyPercentage;
}
/**
* @param string
*/
public function setServingSizeDescription($servingSizeDescription)
{
$this->servingSizeDescription = $servingSizeDescription;
}
/**
* @return string
*/
public function getServingSizeDescription()
{
return $this->servingSizeDescription;
}
/**
* @param FloatUnit
*/
public function setServingSizeMeasure(FloatUnit $servingSizeMeasure)
{
$this->servingSizeMeasure = $servingSizeMeasure;
}
/**
* @return FloatUnit
*/
public function getServingSizeMeasure()
{
return $this->servingSizeMeasure;
}
/**
* @param string
*/
public function setServingsPerContainer($servingsPerContainer)
{
$this->servingsPerContainer = $servingsPerContainer;
}
/**
* @return string
*/
public function getServingsPerContainer()
{
return $this->servingsPerContainer;
}
/**
* @param FloatUnit
*/
public function setSodium(FloatUnit $sodium)
{
$this->sodium = $sodium;
}
/**
* @return FloatUnit
*/
public function getSodium()
{
return $this->sodium;
}
public function setSodiumDailyPercentage($sodiumDailyPercentage)
{
$this->sodiumDailyPercentage = $sodiumDailyPercentage;
}
public function getSodiumDailyPercentage()
{
return $this->sodiumDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setStarch(FloatUnit $starch)
{
$this->starch = $starch;
}
/**
* @return FloatUnit
*/
public function getStarch()
{
return $this->starch;
}
/**
* @param FloatUnit
*/
public function setTotalCarbohydrate(FloatUnit $totalCarbohydrate)
{
$this->totalCarbohydrate = $totalCarbohydrate;
}
/**
* @return FloatUnit
*/
public function getTotalCarbohydrate()
{
return $this->totalCarbohydrate;
}
public function setTotalCarbohydrateDailyPercentage($totalCarbohydrateDailyPercentage)
{
$this->totalCarbohydrateDailyPercentage = $totalCarbohydrateDailyPercentage;
}
public function getTotalCarbohydrateDailyPercentage()
{
return $this->totalCarbohydrateDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setTotalFat(FloatUnit $totalFat)
{
$this->totalFat = $totalFat;
}
/**
* @return FloatUnit
*/
public function getTotalFat()
{
return $this->totalFat;
}
public function setTotalFatDailyPercentage($totalFatDailyPercentage)
{
$this->totalFatDailyPercentage = $totalFatDailyPercentage;
}
public function getTotalFatDailyPercentage()
{
return $this->totalFatDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setTotalSugars(FloatUnit $totalSugars)
{
$this->totalSugars = $totalSugars;
}
/**
* @return FloatUnit
*/
public function getTotalSugars()
{
return $this->totalSugars;
}
public function setTotalSugarsDailyPercentage($totalSugarsDailyPercentage)
{
$this->totalSugarsDailyPercentage = $totalSugarsDailyPercentage;
}
public function getTotalSugarsDailyPercentage()
{
return $this->totalSugarsDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setTransFat(FloatUnit $transFat)
{
$this->transFat = $transFat;
}
/**
* @return FloatUnit
*/
public function getTransFat()
{
return $this->transFat;
}
public function setTransFatDailyPercentage($transFatDailyPercentage)
{
$this->transFatDailyPercentage = $transFatDailyPercentage;
}
public function getTransFatDailyPercentage()
{
return $this->transFatDailyPercentage;
}
/**
* @param FloatUnit
*/
public function setVitaminD(FloatUnit $vitaminD)
{
$this->vitaminD = $vitaminD;
}
/**
* @return FloatUnit
*/
public function getVitaminD()
{
return $this->vitaminD;
}
public function setVitaminDDailyPercentage($vitaminDDailyPercentage)
{
$this->vitaminDDailyPercentage = $vitaminDDailyPercentage;
}
public function getVitaminDDailyPercentage()
{
return $this->vitaminDDailyPercentage;
}
/**
* @param VoluntaryNutritionFact[]
*/
public function setVoluntaryNutritionFact($voluntaryNutritionFact)
{
$this->voluntaryNutritionFact = $voluntaryNutritionFact;
}
/**
* @return VoluntaryNutritionFact[]
*/
public function getVoluntaryNutritionFact()
{
return $this->voluntaryNutritionFact;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Nutrition::class, 'Google_Service_ManufacturerCenter_Nutrition');

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\ManufacturerCenter;
class Price extends \Google\Model
{
/**
* @var string
*/
public $amount;
/**
* @var string
*/
public $currency;
/**
* @param string
*/
public function setAmount($amount)
{
$this->amount = $amount;
}
/**
* @return string
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param string
*/
public function setCurrency($currency)
{
$this->currency = $currency;
}
/**
* @return string
*/
public function getCurrency()
{
return $this->currency;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Price::class, 'Google_Service_ManufacturerCenter_Price');

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\ManufacturerCenter;
class Product extends \Google\Collection
{
protected $collection_key = 'issues';
protected $attributesType = Attributes::class;
protected $attributesDataType = '';
/**
* @var string
*/
public $contentLanguage;
protected $destinationStatusesType = DestinationStatus::class;
protected $destinationStatusesDataType = 'array';
/**
* @var string
*/
public $feedLabel;
protected $issuesType = Issue::class;
protected $issuesDataType = 'array';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $parent;
/**
* @var string
*/
public $productId;
/**
* @var string
*/
public $targetCountry;
/**
* @param Attributes
*/
public function setAttributes(Attributes $attributes)
{
$this->attributes = $attributes;
}
/**
* @return Attributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @param string
*/
public function setContentLanguage($contentLanguage)
{
$this->contentLanguage = $contentLanguage;
}
/**
* @return string
*/
public function getContentLanguage()
{
return $this->contentLanguage;
}
/**
* @param DestinationStatus[]
*/
public function setDestinationStatuses($destinationStatuses)
{
$this->destinationStatuses = $destinationStatuses;
}
/**
* @return DestinationStatus[]
*/
public function getDestinationStatuses()
{
return $this->destinationStatuses;
}
/**
* @param string
*/
public function setFeedLabel($feedLabel)
{
$this->feedLabel = $feedLabel;
}
/**
* @return string
*/
public function getFeedLabel()
{
return $this->feedLabel;
}
/**
* @param Issue[]
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return Issue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* @param string
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* @param string
*/
public function setTargetCountry($targetCountry)
{
$this->targetCountry = $targetCountry;
}
/**
* @return string
*/
public function getTargetCountry()
{
return $this->targetCountry;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Product::class, 'Google_Service_ManufacturerCenter_Product');

View File

@@ -0,0 +1,201 @@
<?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\ManufacturerCenter;
class ProductCertification extends \Google\Collection
{
protected $collection_key = 'productType';
/**
* @var string
*/
public $brand;
protected $certificationType = Certification::class;
protected $certificationDataType = 'array';
/**
* @var string[]
*/
public $countryCode;
protected $destinationStatusesType = DestinationStatus::class;
protected $destinationStatusesDataType = 'array';
protected $issuesType = Issue::class;
protected $issuesDataType = 'array';
/**
* @var string[]
*/
public $mpn;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $productCode;
/**
* @var string[]
*/
public $productType;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* @param Certification[]
*/
public function setCertification($certification)
{
$this->certification = $certification;
}
/**
* @return Certification[]
*/
public function getCertification()
{
return $this->certification;
}
/**
* @param string[]
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
}
/**
* @return string[]
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* @param DestinationStatus[]
*/
public function setDestinationStatuses($destinationStatuses)
{
$this->destinationStatuses = $destinationStatuses;
}
/**
* @return DestinationStatus[]
*/
public function getDestinationStatuses()
{
return $this->destinationStatuses;
}
/**
* @param Issue[]
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return Issue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* @param string[]
*/
public function setMpn($mpn)
{
$this->mpn = $mpn;
}
/**
* @return string[]
*/
public function getMpn()
{
return $this->mpn;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setProductCode($productCode)
{
$this->productCode = $productCode;
}
/**
* @return string[]
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* @param string[]
*/
public function setProductType($productType)
{
$this->productType = $productType;
}
/**
* @return string[]
*/
public function getProductType()
{
return $this->productType;
}
/**
* @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(ProductCertification::class, 'Google_Service_ManufacturerCenter_ProductCertification');

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\ManufacturerCenter;
class ProductDetail extends \Google\Model
{
/**
* @var string
*/
public $attributeName;
/**
* @var string
*/
public $attributeValue;
/**
* @var string
*/
public $sectionName;
/**
* @param string
*/
public function setAttributeName($attributeName)
{
$this->attributeName = $attributeName;
}
/**
* @return string
*/
public function getAttributeName()
{
return $this->attributeName;
}
/**
* @param string
*/
public function setAttributeValue($attributeValue)
{
$this->attributeValue = $attributeValue;
}
/**
* @return string
*/
public function getAttributeValue()
{
return $this->attributeValue;
}
/**
* @param string
*/
public function setSectionName($sectionName)
{
$this->sectionName = $sectionName;
}
/**
* @return string
*/
public function getSectionName()
{
return $this->sectionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductDetail::class, 'Google_Service_ManufacturerCenter_ProductDetail');

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\ManufacturerCenter\Resource;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $manufacturersService = new Google\Service\ManufacturerCenter(...);
* $accounts = $manufacturersService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_ManufacturerCenter_Resource_Accounts');

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\ManufacturerCenter\Resource;
/**
* The "languages" collection of methods.
* Typical usage is:
* <code>
* $manufacturersService = new Google\Service\ManufacturerCenter(...);
* $languages = $manufacturersService->accounts_languages;
* </code>
*/
class AccountsLanguages extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsLanguages::class, 'Google_Service_ManufacturerCenter_Resource_AccountsLanguages');

View File

@@ -0,0 +1,125 @@
<?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\ManufacturerCenter\Resource;
use Google\Service\ManufacturerCenter\ListProductCertificationsResponse;
use Google\Service\ManufacturerCenter\ManufacturersEmpty;
use Google\Service\ManufacturerCenter\ProductCertification;
/**
* The "productCertifications" collection of methods.
* Typical usage is:
* <code>
* $manufacturersService = new Google\Service\ManufacturerCenter(...);
* $productCertifications = $manufacturersService->accounts_languages_productCertifications;
* </code>
*/
class AccountsLanguagesProductCertifications extends \Google\Service\Resource
{
/**
* Deletes a product certification by its name. This method can only be called
* by certification bodies. (productCertifications.delete)
*
* @param string $name Required. The name of the product certification to
* delete. Format:
* accounts/{account}/languages/{language_code}/productCertifications/{id}
* @param array $optParams Optional parameters.
* @return ManufacturersEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ManufacturersEmpty::class);
}
/**
* Gets a product certification by its name. This method can only be called by
* certification bodies. (productCertifications.get)
*
* @param string $name Required. The name of the product certification to get.
* Format:
* accounts/{account}/languages/{language_code}/productCertifications/{id}
* @param array $optParams Optional parameters.
* @return ProductCertification
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ProductCertification::class);
}
/**
* Lists product certifications from a specified certification body. This method
* can only be called by certification bodies.
* (productCertifications.listAccountsLanguagesProductCertifications)
*
* @param string $parent Required. The parent, which owns this collection of
* product certifications. Format: accounts/{account}/languages/{language_code}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of product
* certifications to return. The service may return fewer than this value. If
* unspecified, at most 50 product certifications will be returned. The maximum
* value is 1000; values above 1000 will be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListProductCertifications` call. Provide this to retrieve the subsequent
* page. When paginating, all other parameters provided to
* `ListProductCertifications` must match the call that provided the page token.
* Required if requesting the second or higher page.
* @return ListProductCertificationsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsLanguagesProductCertifications($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProductCertificationsResponse::class);
}
/**
* Updates (or creates if allow_missing = true) a product certification which
* links certifications with products. This method can only be called by
* certification bodies. (productCertifications.patch)
*
* @param string $name Required. The unique name identifier of a product
* certification Format:
* accounts/{account}/languages/{language_code}/productCertifications/{id} Where
* `id` is a some unique identifier and `language_code` is a 2-letter ISO 639-1
* code of a Shopping supported language according to
* https://support.google.com/merchants/answer/160637.
* @param ProductCertification $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The list of fields to update according
* to aip.dev/134. However, only full update is supported as of right now.
* Therefore, it can be either ignored or set to "*". Setting any other values
* will returns UNIMPLEMENTED error.
* @return ProductCertification
* @throws \Google\Service\Exception
*/
public function patch($name, ProductCertification $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ProductCertification::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsLanguagesProductCertifications::class, 'Google_Service_ManufacturerCenter_Resource_AccountsLanguagesProductCertifications');

View File

@@ -0,0 +1,145 @@
<?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\ManufacturerCenter\Resource;
use Google\Service\ManufacturerCenter\Attributes;
use Google\Service\ManufacturerCenter\ListProductsResponse;
use Google\Service\ManufacturerCenter\ManufacturersEmpty;
use Google\Service\ManufacturerCenter\Product;
/**
* The "products" collection of methods.
* Typical usage is:
* <code>
* $manufacturersService = new Google\Service\ManufacturerCenter(...);
* $products = $manufacturersService->accounts_products;
* </code>
*/
class AccountsProducts extends \Google\Service\Resource
{
/**
* Deletes the product from a Manufacturer Center account. (products.delete)
*
* @param string $parent Parent ID in the format `accounts/{account_id}`.
* `account_id` - The ID of the Manufacturer Center account.
* @param string $name Name in the format
* `{target_country}:{content_language}:{product_id}`. `target_country` - The
* target country of the product as a CLDR territory code (for example, US).
* `content_language` - The content language of the product as a two-letter ISO
* 639-1 language code (for example, en). `product_id` - The ID of the product.
* For more information, see
* https://support.google.com/manufacturers/answer/6124116#id.
* @param array $optParams Optional parameters.
* @return ManufacturersEmpty
* @throws \Google\Service\Exception
*/
public function delete($parent, $name, $optParams = [])
{
$params = ['parent' => $parent, 'name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ManufacturersEmpty::class);
}
/**
* Gets the product from a Manufacturer Center account, including product
* issues. A recently updated product takes around 15 minutes to process.
* Changes are only visible after it has been processed. While some issues may
* be available once the product has been processed, other issues may take days
* to appear. (products.get)
*
* @param string $parent Parent ID in the format `accounts/{account_id}`.
* `account_id` - The ID of the Manufacturer Center account.
* @param string $name Name in the format
* `{target_country}:{content_language}:{product_id}`. `target_country` - The
* target country of the product as a CLDR territory code (for example, US).
* `content_language` - The content language of the product as a two-letter ISO
* 639-1 language code (for example, en). `product_id` - The ID of the product.
* For more information, see
* https://support.google.com/manufacturers/answer/6124116#id.
* @param array $optParams Optional parameters.
*
* @opt_param string include The information to be included in the response.
* Only sections listed here will be returned.
* @return Product
* @throws \Google\Service\Exception
*/
public function get($parent, $name, $optParams = [])
{
$params = ['parent' => $parent, 'name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Product::class);
}
/**
* Lists all the products in a Manufacturer Center account.
* (products.listAccountsProducts)
*
* @param string $parent Parent ID in the format `accounts/{account_id}`.
* `account_id` - The ID of the Manufacturer Center account.
* @param array $optParams Optional parameters.
*
* @opt_param string include The information to be included in the response.
* Only sections listed here will be returned.
* @opt_param int pageSize Maximum number of product statuses to return in the
* response, used for paging.
* @opt_param string pageToken The token returned by the previous request.
* @return ListProductsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsProducts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProductsResponse::class);
}
/**
* Inserts or updates the attributes of the product in a Manufacturer Center
* account. Creates a product with the provided attributes. If the product
* already exists, then all attributes are replaced with the new ones. The
* checks at upload time are minimal. All required attributes need to be present
* for a product to be valid. Issues may show up later after the API has
* accepted a new upload for a product and it is possible to overwrite an
* existing valid product with an invalid product. To detect this, you should
* retrieve the product and check it for issues once the new version is
* available. Uploaded attributes first need to be processed before they can be
* retrieved. Until then, new products will be unavailable, and retrieval of
* previously uploaded products will return the original state of the product.
* (products.update)
*
* @param string $parent Parent ID in the format `accounts/{account_id}`.
* `account_id` - The ID of the Manufacturer Center account.
* @param string $name Name in the format
* `{target_country}:{content_language}:{product_id}`. `target_country` - The
* target country of the product as a CLDR territory code (for example, US).
* `content_language` - The content language of the product as a two-letter ISO
* 639-1 language code (for example, en). `product_id` - The ID of the product.
* For more information, see
* https://support.google.com/manufacturers/answer/6124116#id.
* @param Attributes $postBody
* @param array $optParams Optional parameters.
* @return ManufacturersEmpty
* @throws \Google\Service\Exception
*/
public function update($parent, $name, Attributes $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ManufacturersEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsProducts::class, 'Google_Service_ManufacturerCenter_Resource_AccountsProducts');

View File

@@ -0,0 +1,69 @@
<?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\ManufacturerCenter;
class VoluntaryNutritionFact extends \Google\Model
{
public $dailyPercentage;
/**
* @var string
*/
public $name;
protected $valueType = FloatUnit::class;
protected $valueDataType = '';
public function setDailyPercentage($dailyPercentage)
{
$this->dailyPercentage = $dailyPercentage;
}
public function getDailyPercentage()
{
return $this->dailyPercentage;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param FloatUnit
*/
public function setValue(FloatUnit $value)
{
$this->value = $value;
}
/**
* @return FloatUnit
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VoluntaryNutritionFact::class, 'Google_Service_ManufacturerCenter_VoluntaryNutritionFact');