google.api.servicemanagement.v1.ConfigSource
*/
class ConfigSource extends \Google\Protobuf\Internal\Message
{
/**
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. If empty, the server may choose to
* generate one instead.
*
* Generated from protobuf field string id = 5;
*/
private $id = '';
/**
* Set of source configuration files that are used to generate a service
* configuration (`google.api.Service`).
*
* Generated from protobuf field repeated .google.api.servicemanagement.v1.ConfigFile files = 2;
*/
private $files;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. If empty, the server may choose to
* generate one instead.
* @type \Google\Cloud\ServiceManagement\V1\ConfigFile[]|\Google\Protobuf\Internal\RepeatedField $files
* Set of source configuration files that are used to generate a service
* configuration (`google.api.Service`).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Api\Servicemanagement\V1\Resources::initOnce();
parent::__construct($data);
}
/**
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. If empty, the server may choose to
* generate one instead.
*
* Generated from protobuf field string id = 5;
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A unique ID for a specific instance of this message, typically assigned
* by the client for tracking purpose. If empty, the server may choose to
* generate one instead.
*
* Generated from protobuf field string id = 5;
* @param string $var
* @return $this
*/
public function setId($var)
{
GPBUtil::checkString($var, True);
$this->id = $var;
return $this;
}
/**
* Set of source configuration files that are used to generate a service
* configuration (`google.api.Service`).
*
* Generated from protobuf field repeated .google.api.servicemanagement.v1.ConfigFile files = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getFiles()
{
return $this->files;
}
/**
* Set of source configuration files that are used to generate a service
* configuration (`google.api.Service`).
*
* Generated from protobuf field repeated .google.api.servicemanagement.v1.ConfigFile files = 2;
* @param \Google\Cloud\ServiceManagement\V1\ConfigFile[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setFiles($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ServiceManagement\V1\ConfigFile::class);
$this->files = $arr;
return $this;
}
}