314 lines
8.2 KiB
PHP
314 lines
8.2 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: shop/v1/shop.proto
|
|
|
|
namespace Shop\V1;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Order represents a monetary order.
|
|
*
|
|
* Generated from protobuf message <code>shop.v1.Shop</code>
|
|
*/
|
|
class Shop extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>optional string shop_id = 1 [json_name = "shopId"];</code>
|
|
*/
|
|
protected $shop_id = null;
|
|
/**
|
|
* Generated from protobuf field <code>string shop_name = 2 [json_name = "shopName"];</code>
|
|
*/
|
|
protected $shop_name = '';
|
|
/**
|
|
* Generated from protobuf field <code>.shop.v1.ShopType shop_type = 3 [json_name = "shopType"];</code>
|
|
*/
|
|
protected $shop_type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_www = 4 [json_name = "shopUrlWww"];</code>
|
|
*/
|
|
protected $shop_url_www = '';
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_logo = 5 [json_name = "shopUrlLogo"];</code>
|
|
*/
|
|
protected $shop_url_logo = '';
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_api = 6 [json_name = "shopUrlApi"];</code>
|
|
*/
|
|
protected $shop_url_api = '';
|
|
/**
|
|
* Generated from protobuf field <code>string shop_currency = 7 [json_name = "shopCurrency"];</code>
|
|
*/
|
|
protected $shop_currency = '';
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_order = 8 [json_name = "shopPrefixOrder"];</code>
|
|
*/
|
|
protected $shop_prefix_order = '';
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_invoice = 9 [json_name = "shopPrefixInvoice"];</code>
|
|
*/
|
|
protected $shop_prefix_invoice = '';
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_offer = 10 [json_name = "shopPrefixOffer"];</code>
|
|
*/
|
|
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 <code>optional string shop_id = 1 [json_name = "shopId"];</code>
|
|
* @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 <code>optional string shop_id = 1 [json_name = "shopId"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_name = 2 [json_name = "shopName"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopName()
|
|
{
|
|
return $this->shop_name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_name = 2 [json_name = "shopName"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.shop.v1.ShopType shop_type = 3 [json_name = "shopType"];</code>
|
|
* @return int
|
|
*/
|
|
public function getShopType()
|
|
{
|
|
return $this->shop_type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.shop.v1.ShopType shop_type = 3 [json_name = "shopType"];</code>
|
|
* @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 <code>string shop_url_www = 4 [json_name = "shopUrlWww"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopUrlWww()
|
|
{
|
|
return $this->shop_url_www;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_www = 4 [json_name = "shopUrlWww"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopUrlWww($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_url_www = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_logo = 5 [json_name = "shopUrlLogo"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopUrlLogo()
|
|
{
|
|
return $this->shop_url_logo;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_logo = 5 [json_name = "shopUrlLogo"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopUrlLogo($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_url_logo = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_api = 6 [json_name = "shopUrlApi"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopUrlApi()
|
|
{
|
|
return $this->shop_url_api;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_url_api = 6 [json_name = "shopUrlApi"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopUrlApi($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_url_api = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_currency = 7 [json_name = "shopCurrency"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopCurrency()
|
|
{
|
|
return $this->shop_currency;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_currency = 7 [json_name = "shopCurrency"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopCurrency($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_currency = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_order = 8 [json_name = "shopPrefixOrder"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopPrefixOrder()
|
|
{
|
|
return $this->shop_prefix_order;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_order = 8 [json_name = "shopPrefixOrder"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopPrefixOrder($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_prefix_order = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_invoice = 9 [json_name = "shopPrefixInvoice"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopPrefixInvoice()
|
|
{
|
|
return $this->shop_prefix_invoice;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_invoice = 9 [json_name = "shopPrefixInvoice"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopPrefixInvoice($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_prefix_invoice = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_offer = 10 [json_name = "shopPrefixOffer"];</code>
|
|
* @return string
|
|
*/
|
|
public function getShopPrefixOffer()
|
|
{
|
|
return $this->shop_prefix_offer;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string shop_prefix_offer = 10 [json_name = "shopPrefixOffer"];</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setShopPrefixOffer($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->shop_prefix_offer = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|