From c290cb1a933755fea70555d4d4625f0b70b240e1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 09:47:51 -0500 Subject: [PATCH] [WORKFLOW] Updating protos from viamrobotics/api, commit: bdabb0e1e93ec020a81df761700dbd5d7bfcc1e6 (#291) Co-authored-by: viambot --- lib/src/gen/google/api/client.pb.dart | 18 ++++++++++++++++++ lib/src/gen/google/api/client.pbjson.dart | 6 ++++-- lib/src/utils.dart | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) 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'; }