google.api.Billing.BillingDestination
*/
class BillingDestination extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* The monitored resource type. The type must be defined in
* [Service.monitored_resources][google.api.Service.monitored_resources]
* section.
*
* Generated from protobuf field string monitored_resource = 1;
*/
protected $monitored_resource = '';
/**
* Names of the metrics to report to this billing destination.
* Each name must be defined in
* [Service.metrics][google.api.Service.metrics] section.
*
* Generated from protobuf field repeated string metrics = 2;
*/
private $metrics;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $monitored_resource
* The monitored resource type. The type must be defined in
* [Service.monitored_resources][google.api.Service.monitored_resources]
* section.
* @type array|\Google\Protobuf\Internal\RepeatedField $metrics
* Names of the metrics to report to this billing destination.
* Each name must be defined in
* [Service.metrics][google.api.Service.metrics] section.
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Billing::initOnce();
parent::__construct($data);
}
/**
* The monitored resource type. The type must be defined in
* [Service.monitored_resources][google.api.Service.monitored_resources]
* section.
*
* Generated from protobuf field string monitored_resource = 1;
* @return string
*/
public function getMonitoredResource()
{
return $this->monitored_resource;
}
/**
* The monitored resource type. The type must be defined in
* [Service.monitored_resources][google.api.Service.monitored_resources]
* section.
*
* Generated from protobuf field string monitored_resource = 1;
* @param string $var
* @return $this
*/
public function setMonitoredResource($var)
{
GPBUtil::checkString($var, True);
$this->monitored_resource = $var;
return $this;
}
/**
* Names of the metrics to report to this billing destination.
* Each name must be defined in
* [Service.metrics][google.api.Service.metrics] section.
*
* Generated from protobuf field repeated string metrics = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Names of the metrics to report to this billing destination.
* Each name must be defined in
* [Service.metrics][google.api.Service.metrics] section.
*
* Generated from protobuf field repeated string metrics = 2;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMetrics($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
$this->metrics = $arr;
return $this;
}
}