# Google Cloud Security Center Management V1 Client - Class GetSecurityCenterServiceRequest (1.4.0)

1.4.0 (latest) 1.3.3 1.2.1 1.1.3 1.0.0 0.3.2 0.2.7 0.1.0 Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class GetSecurityCenterServiceRequest.

Request message for
[SecurityCenterManagement.GetSecurityCenterService](https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.Client.SecurityCenterManagementClient#_Google_Cloud_SecurityCenterManagement_V1_Client_SecurityCenterManagementClient__getSecurityCenterService__).

Generated from protobuf message `google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest`

## Namespace

Google \\ Cloud \\ SecurityCenterManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The Security Command Center service to retrieve, in one of the following formats: \* \* organizations/{organization}/locations/{location}/securityCenterServices/{service} \* \* folders/{folder}/locations/{location}/securityCenterServices/{service} \* \* projects/{project}/locations/{location}/securityCenterServices/{service} The following values are valid for `{service}`: \* \* `container-threat-detection` \* \* `event-threat-detection` \* \* `security-health-analytics` \* \* `vm-threat-detection` \* \* `web-security-scanner` |
| `↳ show_eligible_modules_only` | `bool` Set to `true` to show only modules that are in scope. By default, all modules are shown. |

### getName

Required. The Security Command Center service to retrieve, in one of the
following formats:

- organizations/{organization}/locations/{location}/securityCenterServices/{service}
- folders/{folder}/locations/{location}/securityCenterServices/{service}
- projects/{project}/locations/{location}/securityCenterServices/{service} The following values are valid for `{service}`:
- `container-threat-detection`
- `event-threat-detection`
- `security-health-analytics`
- `vm-threat-detection`
- `web-security-scanner`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. The Security Command Center service to retrieve, in one of the
following formats:

- organizations/{organization}/locations/{location}/securityCenterServices/{service}
- folders/{folder}/locations/{location}/securityCenterServices/{service}
- projects/{project}/locations/{location}/securityCenterServices/{service} The following values are valid for `{service}`:
- `container-threat-detection`
- `event-threat-detection`
- `security-health-analytics`
- `vm-threat-detection`
- `web-security-scanner`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getShowEligibleModulesOnly

Set to `true` to show only modules that are in scope. By default, all
modules are shown.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setShowEligibleModulesOnly

Set to `true` to show only modules that are in scope. By default, all
modules are shown.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The Security Command Center service to retrieve, in one of the following formats: - - organizations/{organization}/locations/{location}/securityCenterServices/{service} - - folders/{folder}/locations/{location}/securityCenterServices/{service} - - projects/{project}/locations/{location}/securityCenterServices/{service} The following values are valid for `{service}`: - - `container-threat-detection` - - `event-threat-detection` - - `security-health-analytics` - - `vm-threat-detection` - - `web-security-scanner` Please see SecurityCenterManagementClient::securityCenterServiceName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.GetSecurityCenterServiceRequest` |   |