Google API Common Protos Client - Class PhpSettings (4.13.0)

Reference documentation and code samples for the Google API Common Protos Client class PhpSettings.

Settings for Php client libraries.

Generated from protobuf message google.api.PhpSettings

Namespace

Google \ Api

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ common CommonLanguageSettings

Some settings.

↳ library_package string

The package name to use in Php. Clobbers the php_namespace option set in the protobuf. This should be used only by APIs who have already set the language_settings.php.package_name" field in gapic.yaml. API teams should use the protobuf php_namespace option where possible. Example of a YAML configuration:: publishing: library_settings: php_settings: library_package: Google\Cloud\PubSub\V1

getCommon

Some settings.

Returns
Type Description
CommonLanguageSettings|null

hasCommon

clearCommon

setCommon

Some settings.

Parameter
Name Description
var CommonLanguageSettings
Returns
Type Description
$this

getLibraryPackage

The package name to use in Php. Clobbers the php_namespace option set in the protobuf. This should be used only by APIs who have already set the language_settings.php.package_name" field in gapic.yaml. API teams should use the protobuf php_namespace option where possible.

Example of a YAML configuration:: publishing: library_settings: php_settings: library_package: Google\Cloud\PubSub\V1

Returns
Type Description
string

setLibraryPackage

The package name to use in Php. Clobbers the php_namespace option set in the protobuf. This should be used only by APIs who have already set the language_settings.php.package_name" field in gapic.yaml. API teams should use the protobuf php_namespace option where possible.

Example of a YAML configuration:: publishing: library_settings: php_settings: library_package: Google\Cloud\PubSub\V1

Parameter
Name Description
var string
Returns
Type Description
$this