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

Details about how and where to publish client libraries.

Generated from protobuf message `google.api.ClientLibrarySettings`

## Namespace

Google \\ Api

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ version` | `string` Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". |
| `↳ launch_stage` | `int` Launch stage of this version of the API. |
| `↳ rest_numeric_enums` | `bool` When using transport=rest, the client request will encode enums as numbers rather than strings. |
| `↳ java_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.JavaSettings` Settings for legacy Java features, supported in the Service YAML. |
| `↳ cpp_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.CppSettings` Settings for C++ client libraries. |
| `↳ php_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.PhpSettings` Settings for PHP client libraries. |
| `↳ python_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.PythonSettings` Settings for Python client libraries. |
| `↳ node_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.NodeSettings` Settings for Node client libraries. |
| `↳ dotnet_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.DotnetSettings` Settings for .NET client libraries. |
| `↳ ruby_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.RubySettings` Settings for Ruby client libraries. |
| `↳ go_settings` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.GoSettings` Settings for Go client libraries. |

### getVersion

Version of the API to apply these settings to. This is the full protobuf
package for the API, ending in the version element.

Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".

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

### setVersion

Version of the API to apply these settings to. This is the full protobuf
package for the API, ending in the version element.

Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".

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

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

### getLaunchStage

Launch stage of this version of the API.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LaunchStage](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.LaunchStage). |

### setLaunchStage

Launch stage of this version of the API.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LaunchStage](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.LaunchStage). |

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

### getRestNumericEnums

When using transport=rest, the client request will encode enums as
numbers rather than strings.

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

### setRestNumericEnums

When using transport=rest, the client request will encode enums as
numbers rather than strings.

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

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

### getJavaSettings

Settings for legacy Java features, supported in the Service YAML.

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

### hasJavaSettings

### clearJavaSettings

### setJavaSettings

Settings for legacy Java features, supported in the Service YAML.

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

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

### getCppSettings

Settings for C++ client libraries.

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

### hasCppSettings

### clearCppSettings

### setCppSettings

Settings for C++ client libraries.

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

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

### getPhpSettings

Settings for PHP client libraries.

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

### hasPhpSettings

### clearPhpSettings

### setPhpSettings

Settings for PHP client libraries.

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

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

### getPythonSettings

Settings for Python client libraries.

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

### hasPythonSettings

### clearPythonSettings

### setPythonSettings

Settings for Python client libraries.

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

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

### getNodeSettings

Settings for Node client libraries.

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

### hasNodeSettings

### clearNodeSettings

### setNodeSettings

Settings for Node client libraries.

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

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

### getDotnetSettings

Settings for .NET client libraries.

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

### hasDotnetSettings

### clearDotnetSettings

### setDotnetSettings

Settings for .NET client libraries.

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

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

### getRubySettings

Settings for Ruby client libraries.

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

### hasRubySettings

### clearRubySettings

### setRubySettings

Settings for Ruby client libraries.

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

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

### getGoSettings

Settings for Go client libraries.

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

### hasGoSettings

### clearGoSettings

### setGoSettings

Settings for Go client libraries.

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

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