google.api.servicemanagement.v1.SubmitConfigSourceRequest */ class SubmitConfigSourceRequest 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 source configuration for the service. * * Generated from protobuf field .google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $config_source = null; /** * Optional. If set, this will result in the generation of a * `google.api.Service` configuration based on the `ConfigSource` provided, * but the generated config and the sources will NOT be persisted. * * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $validate_only = false; /** * 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\Cloud\ServiceManagement\V1\ConfigSource $config_source * Required. The source configuration for the service. * @type bool $validate_only * Optional. If set, this will result in the generation of a * `google.api.Service` configuration based on the `ConfigSource` provided, * but the generated config and the sources will NOT be persisted. * } */ 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 source configuration for the service. * * Generated from protobuf field .google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\ServiceManagement\V1\ConfigSource */ public function getConfigSource() { return $this->config_source; } /** * Required. The source configuration for the service. * * Generated from protobuf field .google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\ServiceManagement\V1\ConfigSource $var * @return $this */ public function setConfigSource($var) { GPBUtil::checkMessage($var, \Google\Cloud\ServiceManagement\V1\ConfigSource::class); $this->config_source = $var; return $this; } /** * Optional. If set, this will result in the generation of a * `google.api.Service` configuration based on the `ConfigSource` provided, * but the generated config and the sources will NOT be persisted. * * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getValidateOnly() { return $this->validate_only; } /** * Optional. If set, this will result in the generation of a * `google.api.Service` configuration based on the `ConfigSource` provided, * but the generated config and the sources will NOT be persisted. * * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ public function setValidateOnly($var) { GPBUtil::checkBool($var); $this->validate_only = $var; return $this; } }