google.api.servicemanagement.v1.CreateServiceConfigRequest
*/
class CreateServiceConfigRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The name of the service. See the [overview](/service-management/overview)
* for naming requirements. For example: `example.googleapis.com`.
*
* Generated from protobuf field string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
*/
private $service_name = '';
/**
* Required. The service configuration resource.
*
* Generated from protobuf field .google.api.Service service_config = 2 [(.google.api.field_behavior) = REQUIRED];
*/
private $service_config = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $service_name
* Required. The name of the service. See the [overview](/service-management/overview)
* for naming requirements. For example: `example.googleapis.com`.
* @type \Google\Api\Service $service_config
* Required. The service configuration resource.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Api\Servicemanagement\V1\Servicemanager::initOnce();
parent::__construct($data);
}
/**
* Required. The name of the service. See the [overview](/service-management/overview)
* for naming requirements. For example: `example.googleapis.com`.
*
* Generated from protobuf field string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
* @return string
*/
public function getServiceName()
{
return $this->service_name;
}
/**
* Required. The name of the service. See the [overview](/service-management/overview)
* for naming requirements. For example: `example.googleapis.com`.
*
* Generated from protobuf field string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
* @return $this
*/
public function setServiceName($var)
{
GPBUtil::checkString($var, True);
$this->service_name = $var;
return $this;
}
/**
* Required. The service configuration resource.
*
* Generated from protobuf field .google.api.Service service_config = 2 [(.google.api.field_behavior) = REQUIRED];
* @return \Google\Api\Service
*/
public function getServiceConfig()
{
return $this->service_config;
}
/**
* Required. The service configuration resource.
*
* Generated from protobuf field .google.api.Service service_config = 2 [(.google.api.field_behavior) = REQUIRED];
* @param \Google\Api\Service $var
* @return $this
*/
public function setServiceConfig($var)
{
GPBUtil::checkMessage($var, \Google\Api\Service::class);
$this->service_config = $var;
return $this;
}
}