# Google Cloud Service Usage V1 Client - Class ServiceConfig (2.2.0)

2.2.0 (latest) 2.1.2 2.0.4 1.3.4 1.2.3 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Service Usage V1 Client class ServiceConfig.

The configuration of the service.

Generated from protobuf message `google.api.serviceusage.v1.ServiceConfig`

## Namespace

Google \\ Cloud \\ ServiceUsage \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The DNS address at which this service is available. An example DNS address would be: `calendar.googleapis.com`. |
| `↳ title` | `string` The product title for this service. |
| `↳ apis` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Api>` A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces. |
| `↳ documentation` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Documentation.html` Additional API documentation. Contains only the summary and the documentation URL. |
| `↳ quota` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Quota.html` Quota configuration. |
| `↳ authentication` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Authentication.html` Auth configuration. Contains only the OAuth rules. |
| `↳ usage` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Usage.html` Configuration controlling usage of this service. |
| `↳ endpoints` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Endpoint.html>` Configuration for network endpoints. Contains only the names and aliases of the endpoints. |
| `↳ monitored_resources` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.MonitoredResourceDescriptor.html>` Defines the monitored resources used by this service. This is required by the [Service.monitoring](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html#_Google_Api_Service__getMonitoring__) and [Service.logging](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html#_Google_Api_Service__getLogging__) configurations. |
| `↳ monitoring` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Monitoring.html` Monitoring configuration. This should not include the 'producer_destinations' field. |

### getName

The DNS address at which this service is available.

An example DNS address would be:
`calendar.googleapis.com`.

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

### setName

The DNS address at which this service is available.

An example DNS address would be:
`calendar.googleapis.com`.

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

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

### getTitle

The product title for this service.

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

### setTitle

The product title for this service.

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

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

### getApis

A list of API interfaces exported by this service. Contains only the names,
versions, and method names of the interfaces.

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

### setApis

A list of API interfaces exported by this service. Contains only the names,
versions, and method names of the interfaces.

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

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

### getDocumentation

Additional API documentation. Contains only the summary and the
documentation URL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Documentation.html|null` |   |

### hasDocumentation

### clearDocumentation

### setDocumentation

Additional API documentation. Contains only the summary and the
documentation URL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Documentation.html` |

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

### getQuota

Quota configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Quota.html|null` |   |

### hasQuota

### clearQuota

### setQuota

Quota configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Quota.html` |

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

### getAuthentication

Auth configuration. Contains only the OAuth rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Authentication.html|null` |   |

### hasAuthentication

### clearAuthentication

### setAuthentication

Auth configuration. Contains only the OAuth rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Authentication.html` |

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

### getUsage

Configuration controlling usage of this service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Usage.html|null` |   |

### hasUsage

### clearUsage

### setUsage

Configuration controlling usage of this service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Usage.html` |

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

### getEndpoints

Configuration for network endpoints. Contains only the names and aliases
of the endpoints.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Endpoint.html>` |   |

### setEndpoints

Configuration for network endpoints. Contains only the names and aliases
of the endpoints.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Endpoint.html>` |

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

### getMonitoredResources

Defines the monitored resources used by this service. This is required
by the [Service.monitoring](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html#_Google_Api_Service__getMonitoring__) and
[Service.logging](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html#_Google_Api_Service__getLogging__) configurations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.MonitoredResourceDescriptor.html>` |   |

### setMonitoredResources

Defines the monitored resources used by this service. This is required
by the [Service.monitoring](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html#_Google_Api_Service__getMonitoring__) and
[Service.logging](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html#_Google_Api_Service__getLogging__) configurations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.MonitoredResourceDescriptor.html>` |

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

### getMonitoring

Monitoring configuration.

This should not include the 'producer_destinations' field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Monitoring.html|null` |   |

### hasMonitoring

### clearMonitoring

### setMonitoring

Monitoring configuration.

This should not include the 'producer_destinations' field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Monitoring.html` |

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