Class PhpSettings.Builder (2.72.0)

public static final class PhpSettings.Builder extends GeneratedMessage.Builder<PhpSettings.Builder> implements PhpSettingsOrBuilder

Settings for Php client libraries.

Protobuf type google.api.PhpSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public PhpSettings build()
Returns
Type Description
PhpSettings

buildPartial()

public PhpSettings buildPartial()
Returns
Type Description
PhpSettings

clear()

public PhpSettings.Builder clear()
Returns
Type Description
PhpSettings.Builder
Overrides

clearCommon()

public PhpSettings.Builder clearCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
PhpSettings.Builder

clearLibraryPackage()

public PhpSettings.Builder clearLibraryPackage()

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

string library_package = 2;

Returns
Type Description
PhpSettings.Builder

This builder for chaining.

getCommon()

public CommonLanguageSettings getCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
CommonLanguageSettings

The common.

getCommonBuilder()

public CommonLanguageSettings.Builder getCommonBuilder()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
CommonLanguageSettings.Builder

getCommonOrBuilder()

public CommonLanguageSettingsOrBuilder getCommonOrBuilder()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
CommonLanguageSettingsOrBuilder

getDefaultInstanceForType()

public PhpSettings getDefaultInstanceForType()
Returns
Type Description
PhpSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLibraryPackage()

public String 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

string library_package = 2;

Returns
Type Description
String

The libraryPackage.

getLibraryPackageBytes()

public ByteString getLibraryPackageBytes()

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

string library_package = 2;

Returns
Type Description
ByteString

The bytes for libraryPackage.

hasCommon()

public boolean hasCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
boolean

Whether the common field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommon(CommonLanguageSettings value)

public PhpSettings.Builder mergeCommon(CommonLanguageSettings value)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
Name Description
value CommonLanguageSettings
Returns
Type Description
PhpSettings.Builder

mergeFrom(PhpSettings other)

public PhpSettings.Builder mergeFrom(PhpSettings other)
Parameter
Name Description
other PhpSettings
Returns
Type Description
PhpSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PhpSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PhpSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PhpSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PhpSettings.Builder
Overrides

setCommon(CommonLanguageSettings value)

public PhpSettings.Builder setCommon(CommonLanguageSettings value)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
Name Description
value CommonLanguageSettings
Returns
Type Description
PhpSettings.Builder

setCommon(CommonLanguageSettings.Builder builderForValue)

public PhpSettings.Builder setCommon(CommonLanguageSettings.Builder builderForValue)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
Name Description
builderForValue CommonLanguageSettings.Builder
Returns
Type Description
PhpSettings.Builder

setLibraryPackage(String value)

public PhpSettings.Builder setLibraryPackage(String value)

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

string library_package = 2;

Parameter
Name Description
value String

The libraryPackage to set.

Returns
Type Description
PhpSettings.Builder

This builder for chaining.

setLibraryPackageBytes(ByteString value)

public PhpSettings.Builder setLibraryPackageBytes(ByteString value)

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

string library_package = 2;

Parameter
Name Description
value ByteString

The bytes for libraryPackage to set.

Returns
Type Description
PhpSettings.Builder

This builder for chaining.