Class PythonSettings.ExperimentalFeatures.Builder (2.65.0)

public static final class PythonSettings.ExperimentalFeatures.Builder extends GeneratedMessage.Builder<PythonSettings.ExperimentalFeatures.Builder> implements PythonSettings.ExperimentalFeaturesOrBuilder

Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.

Protobuf type google.api.PythonSettings.ExperimentalFeatures

Static Methods

getDescriptor()

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

Methods

build()

public PythonSettings.ExperimentalFeatures build()
Returns
Type Description
PythonSettings.ExperimentalFeatures

buildPartial()

public PythonSettings.ExperimentalFeatures buildPartial()
Returns
Type Description
PythonSettings.ExperimentalFeatures

clear()

public PythonSettings.ExperimentalFeatures.Builder clear()
Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder
Overrides

clearProtobufPythonicTypesEnabled()

public PythonSettings.ExperimentalFeatures.Builder clearProtobufPythonicTypesEnabled()

Enables generation of protobuf code using new types that are more Pythonic which are included in protobuf>=5.29.x. This feature will be enabled by default 1 month after launching the feature in preview packages.

bool protobuf_pythonic_types_enabled = 2;

Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder

This builder for chaining.

clearRestAsyncIoEnabled()

public PythonSettings.ExperimentalFeatures.Builder clearRestAsyncIoEnabled()

Enables generation of asynchronous REST clients if rest transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.

bool rest_async_io_enabled = 1;

Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder

This builder for chaining.

clearUnversionedPackageDisabled()

public PythonSettings.ExperimentalFeatures.Builder clearUnversionedPackageDisabled()

Disables generation of an unversioned Python package for this client library. This means that the module names will need to be versioned in import statements. For example import google.cloud.library_v2 instead of import google.cloud.library.

bool unversioned_package_disabled = 3;

Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder

This builder for chaining.

getDefaultInstanceForType()

public PythonSettings.ExperimentalFeatures getDefaultInstanceForType()
Returns
Type Description
PythonSettings.ExperimentalFeatures

getDescriptorForType()

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

getProtobufPythonicTypesEnabled()

public boolean getProtobufPythonicTypesEnabled()

Enables generation of protobuf code using new types that are more Pythonic which are included in protobuf>=5.29.x. This feature will be enabled by default 1 month after launching the feature in preview packages.

bool protobuf_pythonic_types_enabled = 2;

Returns
Type Description
boolean

The protobufPythonicTypesEnabled.

getRestAsyncIoEnabled()

public boolean getRestAsyncIoEnabled()

Enables generation of asynchronous REST clients if rest transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.

bool rest_async_io_enabled = 1;

Returns
Type Description
boolean

The restAsyncIoEnabled.

getUnversionedPackageDisabled()

public boolean getUnversionedPackageDisabled()

Disables generation of an unversioned Python package for this client library. This means that the module names will need to be versioned in import statements. For example import google.cloud.library_v2 instead of import google.cloud.library.

bool unversioned_package_disabled = 3;

Returns
Type Description
boolean

The unversionedPackageDisabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PythonSettings.ExperimentalFeatures other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setProtobufPythonicTypesEnabled(boolean value)

public PythonSettings.ExperimentalFeatures.Builder setProtobufPythonicTypesEnabled(boolean value)

Enables generation of protobuf code using new types that are more Pythonic which are included in protobuf>=5.29.x. This feature will be enabled by default 1 month after launching the feature in preview packages.

bool protobuf_pythonic_types_enabled = 2;

Parameter
Name Description
value boolean

The protobufPythonicTypesEnabled to set.

Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder

This builder for chaining.

setRestAsyncIoEnabled(boolean value)

public PythonSettings.ExperimentalFeatures.Builder setRestAsyncIoEnabled(boolean value)

Enables generation of asynchronous REST clients if rest transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.

bool rest_async_io_enabled = 1;

Parameter
Name Description
value boolean

The restAsyncIoEnabled to set.

Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder

This builder for chaining.

setUnversionedPackageDisabled(boolean value)

public PythonSettings.ExperimentalFeatures.Builder setUnversionedPackageDisabled(boolean value)

Disables generation of an unversioned Python package for this client library. This means that the module names will need to be versioned in import statements. For example import google.cloud.library_v2 instead of import google.cloud.library.

bool unversioned_package_disabled = 3;

Parameter
Name Description
value boolean

The unversionedPackageDisabled to set.

Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder

This builder for chaining.