google.api.servicemanagement.v1.GetServiceConfigRequest
*/
class GetServiceConfigRequest 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 id of the service configuration resource.
* This field must be specified for the server to return all fields, including
* `SourceInfo`.
*
* Generated from protobuf field string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
*/
private $config_id = '';
/**
* Specifies which parts of the Service Config should be returned in the
* response.
*
* Generated from protobuf field .google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView view = 3;
*/
private $view = 0;
/**
* 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 string $config_id
* Required. The id of the service configuration resource.
* This field must be specified for the server to return all fields, including
* `SourceInfo`.
* @type int $view
* Specifies which parts of the Service Config should be returned in the
* response.
* }
*/
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 id of the service configuration resource.
* This field must be specified for the server to return all fields, including
* `SourceInfo`.
*
* Generated from protobuf field string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
* @return string
*/
public function getConfigId()
{
return $this->config_id;
}
/**
* Required. The id of the service configuration resource.
* This field must be specified for the server to return all fields, including
* `SourceInfo`.
*
* Generated from protobuf field string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
* @return $this
*/
public function setConfigId($var)
{
GPBUtil::checkString($var, True);
$this->config_id = $var;
return $this;
}
/**
* Specifies which parts of the Service Config should be returned in the
* response.
*
* Generated from protobuf field .google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView view = 3;
* @return int
*/
public function getView()
{
return $this->view;
}
/**
* Specifies which parts of the Service Config should be returned in the
* response.
*
* Generated from protobuf field .google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView view = 3;
* @param int $var
* @return $this
*/
public function setView($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\ServiceManagement\V1\GetServiceConfigRequest_ConfigView::class);
$this->view = $var;
return $this;
}
}