Google API Common Protos Client - Class ClientLibrarySettings (4.8.1)

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 Google\Api\JavaSettings

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

↳ cpp_settings Google\Api\CppSettings

Settings for C++ client libraries.

↳ php_settings Google\Api\PhpSettings

Settings for PHP client libraries.

↳ python_settings Google\Api\PythonSettings

Settings for Python client libraries.

↳ node_settings Google\Api\NodeSettings

Settings for Node client libraries.

↳ dotnet_settings Google\Api\DotnetSettings

Settings for .NET client libraries.

↳ ruby_settings Google\Api\RubySettings

Settings for Ruby client libraries.

↳ go_settings Google\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

setLaunchStage

Launch stage of this version of the API.

Parameter
Name Description
var int
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
Google\Api\JavaSettings|null

hasJavaSettings

clearJavaSettings

setJavaSettings

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

Parameter
Name Description
var Google\Api\JavaSettings
Returns
Type Description
$this

getCppSettings

Settings for C++ client libraries.

Returns
Type Description
Google\Api\CppSettings|null

hasCppSettings

clearCppSettings

setCppSettings

Settings for C++ client libraries.

Parameter
Name Description
var Google\Api\CppSettings
Returns
Type Description
$this

getPhpSettings

Settings for PHP client libraries.

Returns
Type Description
Google\Api\PhpSettings|null

hasPhpSettings

clearPhpSettings

setPhpSettings

Settings for PHP client libraries.

Parameter
Name Description
var Google\Api\PhpSettings
Returns
Type Description
$this

getPythonSettings

Settings for Python client libraries.

Returns
Type Description
Google\Api\PythonSettings|null

hasPythonSettings

clearPythonSettings

setPythonSettings

Settings for Python client libraries.

Parameter
Name Description
var Google\Api\PythonSettings
Returns
Type Description
$this

getNodeSettings

Settings for Node client libraries.

Returns
Type Description
Google\Api\NodeSettings|null

hasNodeSettings

clearNodeSettings

setNodeSettings

Settings for Node client libraries.

Parameter
Name Description
var Google\Api\NodeSettings
Returns
Type Description
$this

getDotnetSettings

Settings for .NET client libraries.

Returns
Type Description
Google\Api\DotnetSettings|null

hasDotnetSettings

clearDotnetSettings

setDotnetSettings

Settings for .NET client libraries.

Parameter
Name Description
var Google\Api\DotnetSettings
Returns
Type Description
$this

getRubySettings

Settings for Ruby client libraries.

Returns
Type Description
Google\Api\RubySettings|null

hasRubySettings

clearRubySettings

setRubySettings

Settings for Ruby client libraries.

Parameter
Name Description
var Google\Api\RubySettings
Returns
Type Description
$this

getGoSettings

Settings for Go client libraries.

Returns
Type Description
Google\Api\GoSettings|null

hasGoSettings

clearGoSettings

setGoSettings

Settings for Go client libraries.

Parameter
Name Description
var Google\Api\GoSettings
Returns
Type Description
$this