google.api.servicemanagement.v1.ConfigFile
*/
class ConfigFile extends \Google\Protobuf\Internal\Message
{
/**
* The file name of the configuration file (full or relative path).
*
* Generated from protobuf field string file_path = 1;
*/
private $file_path = '';
/**
* The bytes that constitute the file.
*
* Generated from protobuf field bytes file_contents = 3;
*/
private $file_contents = '';
/**
* The type of configuration file this represents.
*
* Generated from protobuf field .google.api.servicemanagement.v1.ConfigFile.FileType file_type = 4;
*/
private $file_type = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $file_path
* The file name of the configuration file (full or relative path).
* @type string $file_contents
* The bytes that constitute the file.
* @type int $file_type
* The type of configuration file this represents.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Api\Servicemanagement\V1\Resources::initOnce();
parent::__construct($data);
}
/**
* The file name of the configuration file (full or relative path).
*
* Generated from protobuf field string file_path = 1;
* @return string
*/
public function getFilePath()
{
return $this->file_path;
}
/**
* The file name of the configuration file (full or relative path).
*
* Generated from protobuf field string file_path = 1;
* @param string $var
* @return $this
*/
public function setFilePath($var)
{
GPBUtil::checkString($var, True);
$this->file_path = $var;
return $this;
}
/**
* The bytes that constitute the file.
*
* Generated from protobuf field bytes file_contents = 3;
* @return string
*/
public function getFileContents()
{
return $this->file_contents;
}
/**
* The bytes that constitute the file.
*
* Generated from protobuf field bytes file_contents = 3;
* @param string $var
* @return $this
*/
public function setFileContents($var)
{
GPBUtil::checkString($var, False);
$this->file_contents = $var;
return $this;
}
/**
* The type of configuration file this represents.
*
* Generated from protobuf field .google.api.servicemanagement.v1.ConfigFile.FileType file_type = 4;
* @return int
*/
public function getFileType()
{
return $this->file_type;
}
/**
* The type of configuration file this represents.
*
* Generated from protobuf field .google.api.servicemanagement.v1.ConfigFile.FileType file_type = 4;
* @param int $var
* @return $this
*/
public function setFileType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\ServiceManagement\V1\ConfigFile_FileType::class);
$this->file_type = $var;
return $this;
}
}