Class PythonSettings.ExperimentalFeatures.Builder (2.50.0)

public static final class PythonSettings.ExperimentalFeatures.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PythonSettings.ExperimentalFeatures.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public PythonSettings.ExperimentalFeatures.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PythonSettings.ExperimentalFeatures.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PythonSettings.ExperimentalFeatures.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PythonSettings.ExperimentalFeatures.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PythonSettings.ExperimentalFeatures.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final PythonSettings.ExperimentalFeatures.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PythonSettings.ExperimentalFeatures.Builder
Overrides