# Google Cloud Security Center Management V1 Client - Class UpdateSecurityCenterServiceRequest (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 UpdateSecurityCenterServiceRequest.

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

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

## Namespace

Google \\ Cloud \\ SecurityCenterManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ security_center_service` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityCenterService` Required. The updated service. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. The fields to update. Accepts the following values: \* \* `intended_enablement_state` \* \* `modules` If omitted, then all eligible fields are updated. |
| `↳ validate_only` | `bool` Optional. When set to `true`, the request will be validated (including IAM checks), but no service will be updated. An `OK` response indicates that the request is valid, while an error response indicates that the request is invalid. If the request is valid, a subsequent request to update the service could still fail for one of the following reasons: \* \* The state of your cloud resources changed; for example, you lost a required IAM permission \* \* An error occurred during update of the service Defaults to `false`. |

### getSecurityCenterService

Required. The updated service.

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

### hasSecurityCenterService

### clearSecurityCenterService

### setSecurityCenterService

Required. The updated service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityCenterService` |

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

### getUpdateMask

Required. The fields to update. Accepts the following values:

- `intended_enablement_state`
- `modules` If omitted, then all eligible fields are updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. The fields to update. Accepts the following values:

- `intended_enablement_state`
- `modules` If omitted, then all eligible fields are updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### getValidateOnly

Optional. When set to `true`, the request will be validated (including IAM
checks), but no service will be updated. An `OK` response indicates that
the request is valid, while an error response indicates that the request is
invalid.

If the request is valid, a subsequent request to update the service could
still fail for one of the following reasons:

- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during update of the service Defaults to `false`.

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

### setValidateOnly

Optional. When set to `true`, the request will be validated (including IAM
checks), but no service will be updated. An `OK` response indicates that
the request is valid, while an error response indicates that the request is
invalid.

If the request is valid, a subsequent request to update the service could
still fail for one of the following reasons:

- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during update of the service Defaults to `false`.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `securityCenterService` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityCenterService` Required. The updated service. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. The fields to update. Accepts the following values: - - `intended_enablement_state` - - `modules` If omitted, then all eligible fields are updated. |

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