# Google API Common Protos Client - Class LoggingDestination (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos Client class LoggingDestination.

Configuration of a specific logging destination (the producer project
or the consumer project).

Generated from protobuf message `google.api.Logging.LoggingDestination`

## Namespace

Google \\ Api \\ Logging

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ monitored_resource` | `string` The monitored resource type. The type must be defined in the [Service.monitored_resources](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service#_Google_Api_Service__getMonitoredResources__) section. |
| `↳ logs` | `string[]` Names of the logs to be sent to this destination. Each name must be defined in the [Service.logs](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service#_Google_Api_Service__getLogs__) section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/". |

### getMonitoredResource

The monitored resource type. The type must be defined in the
[Service.monitored_resources](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service#_Google_Api_Service__getMonitoredResources__)
section.

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

### setMonitoredResource

The monitored resource type. The type must be defined in the
[Service.monitored_resources](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service#_Google_Api_Service__getMonitoredResources__)
section.

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

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

### getLogs

Names of the logs to be sent to this destination. Each name must
be defined in the [Service.logs](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service#_Google_Api_Service__getLogs__) section. If the
log name is not a domain scoped name, it will be automatically prefixed
with the service name followed by "/".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLogs

Names of the logs to be sent to this destination. Each name must
be defined in the [Service.logs](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service#_Google_Api_Service__getLogs__) section. If the
log name is not a domain scoped name, it will be automatically prefixed
with the service name followed by "/".

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

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