📄 Source: ReportRow.php
<?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\ShoppingContent;
class ReportRow extends \Google\Model
{
protected $bestSellersType = BestSellers::class;
protected $bestSellersDataType = '';
protected $brandType = Brand::class;
protected $brandDataType = '';
protected $competitiveVisibilityType = CompetitiveVisibility::class;
protected $competitiveVisibilityDataType = '';
protected $metricsType = Metrics::class;
protected $metricsDataType = '';
protected $priceCompetitivenessType = PriceCompetitiveness::class;
protected $priceCompetitivenessDataType = '';
protected $priceInsightsType = PriceInsights::class;
protected $priceInsightsDataType = '';
protected $productClusterType = ProductCluster::class;
protected $productClusterDataType = '';
protected $productViewType = ProductView::class;
protected $productViewDataType = '';
protected $segmentsType = Segments::class;
protected $segmentsDataType = '';
protected $topicTrendsType = TopicTrends::class;
protected $topicTrendsDataType = '';
/**
* Best sellers fields requested by the merchant in the query. Field values
* are only set if the merchant queries `BestSellersProductClusterView` or
* `BestSellersBrandView`.
*
* @param BestSellers $bestSellers
*/
public function setBestSellers(BestSellers $bestSellers)
{
$this->bestSellers = $bestSellers;
}
/**
* @return BestSellers
*/
public function getBestSellers()
{
return $this->bestSellers;
}
/**
* Brand fields requested by the merchant in the query. Field values are only
* set if the merchant queries `BestSellersBrandView`.
*
* @param Brand $brand
*/
public function setBrand(Brand $brand)
{
$this->brand = $brand;
}
/**
* @return Brand
*/
public function getBrand()
{
return $this->brand;
}
/**
* Competitive visibility fields requested by the merchant in the query. Field
* values are only set if the merchant queries
* `CompetitiveVisibilityTopMerchantView`,
* `CompetitiveVisibilityBenchmarkView` or
* `CompetitiveVisibilityCompetitorView`.
*
* @param CompetitiveVisibility $competitiveVisibility
*/
public function setCompetitiveVisibility(CompetitiveVisibility $competitiveVisibility)
{
$this->competitiveVisibility = $competitiveVisibility;
}
/**
* @return CompetitiveVisibility
*/
public function getCompetitiveVisibility()
{
return $this->competitiveVisibility;
}
/**
* Metrics requested by the merchant in the query. Metric values are only set
* for metrics requested explicitly in the query.
*
* @param Metrics $metrics
*/
public function setMetrics(Metrics $metrics)
{
$this->metrics = $metrics;
}
/**
* @return Metrics
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Price competitiveness fields requested by the merchant in the query. Field
* values are only set if the merchant queries
* `PriceCompetitivenessProductView`.
*
* @param PriceCompetitiveness $priceCompetitiveness
*/
public function setPriceCompetitiveness(PriceCompetitiveness $priceCompetitiveness)
{
$this->priceCompetitiveness = $priceCompetitiveness;
}
/**
* @return PriceCompetitiveness
*/
public function getPriceCompetitiveness()
{
return $this->priceCompetitiveness;
}
/**
* Price insights fields requested by the merchant in the query. Field values
* are only set if the merchant queries `PriceInsightsProductView`.
*
* @param PriceInsights $priceInsights
*/
public function setPriceInsights(PriceInsights $priceInsights)
{
$this->priceInsights = $priceInsights;
}
/**
* @return PriceInsights
*/
public function getPriceInsights()
{
return $this->priceInsights;
}
/**
* Product cluster fields requested by the merchant in the query. Field values
* are only set if the merchant queries `BestSellersProductClusterView`.
*
* @param ProductCluster $productCluster
*/
public function setProductCluster(ProductCluster $productCluster)
{
$this->productCluster = $productCluster;
}
/**
* @return ProductCluster
*/
public function getProductCluster()
{
return $this->productCluster;
}
/**
* Product fields requested by the merchant in the query. Field values are
* only set if the merchant queries `ProductView`.
*
* @param ProductView $productView
*/
public function setProductView(ProductView $productView)
{
$this->productView = $productView;
}
/**
* @return ProductView
*/
public function getProductView()
{
return $this->productView;
}
/**
* Segmentation dimensions requested by the merchant in the query. Dimension
* values are only set for dimensions requested explicitly in the query.
*
* @param Segments $segments
*/
public function setSegments(Segments $segments)
{
$this->segments = $segments;
}
/**
* @return Segments
*/
public function getSegments()
{
return $this->segments;
}
/**
* [Topic trends](https://support.google.com/merchants/answer/13542370) fields
* requested by the merchant in the query. Field values are only set if the
* merchant queries `TopicTrendsView`.
*
* @param TopicTrends $topicTrends
*/
public function setTopicTrends(TopicTrends $topicTrends)
{
$this->topicTrends = $topicTrends;
}
/**
* @return TopicTrends
*/
public function getTopicTrends()
{
return $this->topicTrends;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportRow::class, 'Google_Service_ShoppingContent_ReportRow');
← Back