diff --git a/lib/src/gen/google/api/client.pb.dart b/lib/src/gen/google/api/client.pb.dart index 1e8c1cd8f5..185c04a16c 100644 --- a/lib/src/gen/google/api/client.pb.dart +++ b/lib/src/gen/google/api/client.pb.dart @@ -737,11 +737,15 @@ class PhpSettings extends $pb.GeneratedMessage { class PythonSettings_ExperimentalFeatures extends $pb.GeneratedMessage { factory PythonSettings_ExperimentalFeatures({ $core.bool? restAsyncIoEnabled, + $core.bool? protobufPythonicTypesEnabled, }) { final $result = create(); if (restAsyncIoEnabled != null) { $result.restAsyncIoEnabled = restAsyncIoEnabled; } + if (protobufPythonicTypesEnabled != null) { + $result.protobufPythonicTypesEnabled = protobufPythonicTypesEnabled; + } return $result; } PythonSettings_ExperimentalFeatures._() : super(); @@ -750,6 +754,7 @@ class PythonSettings_ExperimentalFeatures extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PythonSettings.ExperimentalFeatures', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'restAsyncIoEnabled') + ..aOB(2, _omitFieldNames ? '' : 'protobufPythonicTypesEnabled') ..hasRequiredFields = false ; @@ -786,6 +791,19 @@ class PythonSettings_ExperimentalFeatures extends $pb.GeneratedMessage { $core.bool hasRestAsyncIoEnabled() => $_has(0); @$pb.TagNumber(1) void clearRestAsyncIoEnabled() => clearField(1); + + /// 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. + @$pb.TagNumber(2) + $core.bool get protobufPythonicTypesEnabled => $_getBF(1); + @$pb.TagNumber(2) + set protobufPythonicTypesEnabled($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasProtobufPythonicTypesEnabled() => $_has(1); + @$pb.TagNumber(2) + void clearProtobufPythonicTypesEnabled() => clearField(2); } /// Settings for Python client libraries. diff --git a/lib/src/gen/google/api/client.pbjson.dart b/lib/src/gen/google/api/client.pbjson.dart index 2dc4a82852..9a5a6e8dc2 100644 --- a/lib/src/gen/google/api/client.pbjson.dart +++ b/lib/src/gen/google/api/client.pbjson.dart @@ -211,6 +211,7 @@ const PythonSettings_ExperimentalFeatures$json = { '1': 'ExperimentalFeatures', '2': [ {'1': 'rest_async_io_enabled', '3': 1, '4': 1, '5': 8, '10': 'restAsyncIoEnabled'}, + {'1': 'protobuf_pythonic_types_enabled', '3': 2, '4': 1, '5': 8, '10': 'protobufPythonicTypesEnabled'}, ], }; @@ -219,8 +220,9 @@ final $typed_data.Uint8List pythonSettingsDescriptor = $convert.base64Decode( 'Cg5QeXRob25TZXR0aW5ncxI6CgZjb21tb24YASABKAsyIi5nb29nbGUuYXBpLkNvbW1vbkxhbm' 'd1YWdlU2V0dGluZ3NSBmNvbW1vbhJkChVleHBlcmltZW50YWxfZmVhdHVyZXMYAiABKAsyLy5n' 'b29nbGUuYXBpLlB5dGhvblNldHRpbmdzLkV4cGVyaW1lbnRhbEZlYXR1cmVzUhRleHBlcmltZW' - '50YWxGZWF0dXJlcxpJChRFeHBlcmltZW50YWxGZWF0dXJlcxIxChVyZXN0X2FzeW5jX2lvX2Vu' - 'YWJsZWQYASABKAhSEnJlc3RBc3luY0lvRW5hYmxlZA=='); + '50YWxGZWF0dXJlcxqQAQoURXhwZXJpbWVudGFsRmVhdHVyZXMSMQoVcmVzdF9hc3luY19pb19l' + 'bmFibGVkGAEgASgIUhJyZXN0QXN5bmNJb0VuYWJsZWQSRQofcHJvdG9idWZfcHl0aG9uaWNfdH' + 'lwZXNfZW5hYmxlZBgCIAEoCFIccHJvdG9idWZQeXRob25pY1R5cGVzRW5hYmxlZA=='); @$core.Deprecated('Use nodeSettingsDescriptor instead') const NodeSettings$json = { diff --git a/lib/src/utils.dart b/lib/src/utils.dart index 11a329bcf3..70cabbe923 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -94,7 +94,7 @@ grpc_duration.Duration durationToProto(Duration duration) { String getVersionMetadata() { const String sdkVersion = 'v0.0.25'; - const String apiTag = 'v0.1.357'; + const String apiTag = 'v0.1.358'; return 'flutter;$sdkVersion;$apiTag'; }