shop.v1.Shop
*/
class Shop extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field optional string shop_id = 1 [json_name = "shopId"];
*/
protected $shop_id = null;
/**
* Generated from protobuf field string shop_name = 2 [json_name = "shopName"];
*/
protected $shop_name = '';
/**
* Generated from protobuf field .shop.v1.ShopType shop_type = 3 [json_name = "shopType"];
*/
protected $shop_type = 0;
/**
* Generated from protobuf field string shop_url_www = 4 [json_name = "shopUrlWww"];
*/
protected $shop_url_www = '';
/**
* Generated from protobuf field string shop_url_logo = 5 [json_name = "shopUrlLogo"];
*/
protected $shop_url_logo = '';
/**
* Generated from protobuf field string shop_url_api = 6 [json_name = "shopUrlApi"];
*/
protected $shop_url_api = '';
/**
* Generated from protobuf field string shop_currency = 7 [json_name = "shopCurrency"];
*/
protected $shop_currency = '';
/**
* Generated from protobuf field string shop_prefix_order = 8 [json_name = "shopPrefixOrder"];
*/
protected $shop_prefix_order = '';
/**
* Generated from protobuf field string shop_prefix_invoice = 9 [json_name = "shopPrefixInvoice"];
*/
protected $shop_prefix_invoice = '';
/**
* Generated from protobuf field string shop_prefix_offer = 10 [json_name = "shopPrefixOffer"];
*/
protected $shop_prefix_offer = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $shop_id
* @type string $shop_name
* @type int $shop_type
* @type string $shop_url_www
* @type string $shop_url_logo
* @type string $shop_url_api
* @type string $shop_currency
* @type string $shop_prefix_order
* @type string $shop_prefix_invoice
* @type string $shop_prefix_offer
* }
*/
public function __construct($data = NULL) {
\Shop\V1\GPBMetadata\Shop::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field optional string shop_id = 1 [json_name = "shopId"];
* @return string
*/
public function getShopId()
{
return isset($this->shop_id) ? $this->shop_id : '';
}
public function hasShopId()
{
return isset($this->shop_id);
}
public function clearShopId()
{
unset($this->shop_id);
}
/**
* Generated from protobuf field optional string shop_id = 1 [json_name = "shopId"];
* @param string $var
* @return $this
*/
public function setShopId($var)
{
GPBUtil::checkString($var, True);
$this->shop_id = $var;
return $this;
}
/**
* Generated from protobuf field string shop_name = 2 [json_name = "shopName"];
* @return string
*/
public function getShopName()
{
return $this->shop_name;
}
/**
* Generated from protobuf field string shop_name = 2 [json_name = "shopName"];
* @param string $var
* @return $this
*/
public function setShopName($var)
{
GPBUtil::checkString($var, True);
$this->shop_name = $var;
return $this;
}
/**
* Generated from protobuf field .shop.v1.ShopType shop_type = 3 [json_name = "shopType"];
* @return int
*/
public function getShopType()
{
return $this->shop_type;
}
/**
* Generated from protobuf field .shop.v1.ShopType shop_type = 3 [json_name = "shopType"];
* @param int $var
* @return $this
*/
public function setShopType($var)
{
GPBUtil::checkEnum($var, \Shop\V1\ShopType::class);
$this->shop_type = $var;
return $this;
}
/**
* Generated from protobuf field string shop_url_www = 4 [json_name = "shopUrlWww"];
* @return string
*/
public function getShopUrlWww()
{
return $this->shop_url_www;
}
/**
* Generated from protobuf field string shop_url_www = 4 [json_name = "shopUrlWww"];
* @param string $var
* @return $this
*/
public function setShopUrlWww($var)
{
GPBUtil::checkString($var, True);
$this->shop_url_www = $var;
return $this;
}
/**
* Generated from protobuf field string shop_url_logo = 5 [json_name = "shopUrlLogo"];
* @return string
*/
public function getShopUrlLogo()
{
return $this->shop_url_logo;
}
/**
* Generated from protobuf field string shop_url_logo = 5 [json_name = "shopUrlLogo"];
* @param string $var
* @return $this
*/
public function setShopUrlLogo($var)
{
GPBUtil::checkString($var, True);
$this->shop_url_logo = $var;
return $this;
}
/**
* Generated from protobuf field string shop_url_api = 6 [json_name = "shopUrlApi"];
* @return string
*/
public function getShopUrlApi()
{
return $this->shop_url_api;
}
/**
* Generated from protobuf field string shop_url_api = 6 [json_name = "shopUrlApi"];
* @param string $var
* @return $this
*/
public function setShopUrlApi($var)
{
GPBUtil::checkString($var, True);
$this->shop_url_api = $var;
return $this;
}
/**
* Generated from protobuf field string shop_currency = 7 [json_name = "shopCurrency"];
* @return string
*/
public function getShopCurrency()
{
return $this->shop_currency;
}
/**
* Generated from protobuf field string shop_currency = 7 [json_name = "shopCurrency"];
* @param string $var
* @return $this
*/
public function setShopCurrency($var)
{
GPBUtil::checkString($var, True);
$this->shop_currency = $var;
return $this;
}
/**
* Generated from protobuf field string shop_prefix_order = 8 [json_name = "shopPrefixOrder"];
* @return string
*/
public function getShopPrefixOrder()
{
return $this->shop_prefix_order;
}
/**
* Generated from protobuf field string shop_prefix_order = 8 [json_name = "shopPrefixOrder"];
* @param string $var
* @return $this
*/
public function setShopPrefixOrder($var)
{
GPBUtil::checkString($var, True);
$this->shop_prefix_order = $var;
return $this;
}
/**
* Generated from protobuf field string shop_prefix_invoice = 9 [json_name = "shopPrefixInvoice"];
* @return string
*/
public function getShopPrefixInvoice()
{
return $this->shop_prefix_invoice;
}
/**
* Generated from protobuf field string shop_prefix_invoice = 9 [json_name = "shopPrefixInvoice"];
* @param string $var
* @return $this
*/
public function setShopPrefixInvoice($var)
{
GPBUtil::checkString($var, True);
$this->shop_prefix_invoice = $var;
return $this;
}
/**
* Generated from protobuf field string shop_prefix_offer = 10 [json_name = "shopPrefixOffer"];
* @return string
*/
public function getShopPrefixOffer()
{
return $this->shop_prefix_offer;
}
/**
* Generated from protobuf field string shop_prefix_offer = 10 [json_name = "shopPrefixOffer"];
* @param string $var
* @return $this
*/
public function setShopPrefixOffer($var)
{
GPBUtil::checkString($var, True);
$this->shop_prefix_offer = $var;
return $this;
}
}