# Google API Common Protos Client - Class GoSettings (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 GoSettings.

Settings for Go client libraries.

Generated from protobuf message `google.api.GoSettings`

## Namespace

Google \\ Api

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ common` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.CommonLanguageSettings` Some settings. |
| `↳ renamed_services` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options. Example: publishing: go_settings: renamed_services: Publisher: TopicAdmin |

### getCommon

Some settings.

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

### hasCommon

### clearCommon

### setCommon

Some settings.

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

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

### getRenamedServices

Map of service names to renamed services. Keys are the package relative
service names and values are the name to be used for the service client
and call options.

Example:
publishing:
go_settings:
renamed_services:
Publisher: TopicAdmin

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

### setRenamedServices

Map of service names to renamed services. Keys are the package relative
service names and values are the name to be used for the service client
and call options.

Example:
publishing:
go_settings:
renamed_services:
Publisher: TopicAdmin

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

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