# Google Cloud Batch V1 Client - Class CloudLoggingOption (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.7 1.0.3 0.17.0 0.16.10 0.15.0 0.14.0 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.2 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Google Cloud Batch V1 Client class CloudLoggingOption.

`CloudLoggingOption` contains additional settings for Cloud Logging logs
generated by Batch job.

Generated from protobuf message `google.cloud.batch.v1.LogsPolicy.CloudLoggingOption`

## Namespace

Google \\ Cloud \\ Batch \\ V1 \\ LogsPolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ use_generic_task_monitored_resource` | `bool` Optional. Set this field to `true` to change the [monitored resource type](https://cloud.google.com/monitoring/api/resources) for Cloud Logging logs generated by this Batch job from the [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job) type to the formerly used [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task) type. |

### getUseGenericTaskMonitoredResource

Optional. Set this field to `true` to change the [monitored resource
type](https://cloud.google.com/monitoring/api/resources) for
Cloud Logging logs generated by this Batch job from
the
[`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)
type to the formerly used
[`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)
type.

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

### setUseGenericTaskMonitoredResource

Optional. Set this field to `true` to change the [monitored resource
type](https://cloud.google.com/monitoring/api/resources) for
Cloud Logging logs generated by this Batch job from
the
[`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)
type to the formerly used
[`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)
type.

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

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