# Google Cloud Security Compliance V1 Client - Class GetCloudControlRequest (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class GetCloudControlRequest.

The request message for GetCloudControl.

Generated from protobuf message `google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest`

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the cloud control to retrieve, in one of the following formats: `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` or `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. The only supported location is `global`. |
| `↳ major_revision_id` | `int|string` Optional. The major version of the cloud control to retrieve. If not specified, the most recently updated `revision_id` is retrieved. |

### getName

Required. The name of the cloud control to retrieve, in one of the
following formats:
`organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
or
`projects/{project}/locations/{location}/cloudControls/{cloud_control}`.

The only supported location is `global`.

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

### setName

Required. The name of the cloud control to retrieve, in one of the
following formats:
`organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
or
`projects/{project}/locations/{location}/cloudControls/{cloud_control}`.

The only supported location is `global`.

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

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

### getMajorRevisionId

Optional. The major version of the cloud control to retrieve. If not
specified, the most recently updated `revision_id` is retrieved.

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

### setMajorRevisionId

Optional. The major version of the cloud control to retrieve. If not
specified, the most recently updated `revision_id` is retrieved.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the cloud control to retrieve, in one of the following formats: `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` or `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. The only supported location is `global`. Please see ConfigClient::cloudControlName() for help formatting this field. |

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