From 8497117ecd1d701d0471515459ae1d8499ed4b0d Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 16 Jul 2025 18:01:01 -0700 Subject: [PATCH 1/2] update to the latest version of protoc_plugin --- pkgs/googleapis_firestore_v1/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/googleapis_firestore_v1/pubspec.yaml b/pkgs/googleapis_firestore_v1/pubspec.yaml index 26846bf8..b0aa6b26 100644 --- a/pkgs/googleapis_firestore_v1/pubspec.yaml +++ b/pkgs/googleapis_firestore_v1/pubspec.yaml @@ -16,5 +16,5 @@ dev_dependencies: lints: ^6.0.0 path: ^1.9.0 # We use a pinned version to make the gRPC library generation hermetic. - protoc_plugin: 22.4.0 + protoc_plugin: 22.5.0 test: ^1.26.0 From 663945bff1beb5eb3623b48a9d72722b60562425 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 16 Jul 2025 18:01:45 -0700 Subject: [PATCH 2/2] regenerate proto files --- .../lib/google/api/annotations.pb.dart | 15 +- .../lib/google/api/annotations.pbenum.dart | 1 - .../lib/google/api/client.pb.dart | 667 ++++--- .../lib/google/api/client.pbenum.dart | 63 +- .../lib/google/api/field_behavior.pb.dart | 16 +- .../lib/google/api/field_behavior.pbenum.dart | 47 +- .../lib/google/api/http.pb.dart | 121 +- .../lib/google/api/http.pbenum.dart | 1 - .../lib/google/api/launch_stage.pb.dart | 1 - .../lib/google/api/launch_stage.pbenum.dart | 40 +- .../lib/google/api/routing.pb.dart | 71 +- .../lib/google/api/routing.pbenum.dart | 1 - .../firestore/v1/aggregation_result.pb.dart | 47 +- .../v1/aggregation_result.pbenum.dart | 1 - .../google/firestore/v1/bloom_filter.pb.dart | 65 +- .../firestore/v1/bloom_filter.pbenum.dart | 1 - .../lib/google/firestore/v1/common.pb.dart | 235 ++- .../google/firestore/v1/common.pbenum.dart | 1 - .../lib/google/firestore/v1/document.pb.dart | 200 ++- .../google/firestore/v1/document.pbenum.dart | 1 - .../lib/google/firestore/v1/firestore.pb.dart | 1536 +++++++++++------ .../google/firestore/v1/firestore.pbenum.dart | 32 +- .../google/firestore/v1/firestore.pbgrpc.dart | 353 ++-- .../lib/google/firestore/v1/query.pb.dart | 814 ++++++--- .../lib/google/firestore/v1/query.pbenum.dart | 170 +- .../google/firestore/v1/query_profile.pb.dart | 135 +- .../firestore/v1/query_profile.pbenum.dart | 1 - .../lib/google/firestore/v1/write.pb.dart | 391 +++-- .../lib/google/firestore/v1/write.pbenum.dart | 23 +- .../lib/google/protobuf/any.pb.dart | 43 +- .../lib/google/protobuf/any.pbenum.dart | 1 - .../lib/google/protobuf/duration.pb.dart | 48 +- .../lib/google/protobuf/duration.pbenum.dart | 1 - .../lib/google/protobuf/empty.pb.dart | 27 +- .../lib/google/protobuf/empty.pbenum.dart | 1 - .../lib/google/protobuf/struct.pb.dart | 137 +- .../lib/google/protobuf/struct.pbenum.dart | 15 +- .../lib/google/protobuf/timestamp.pb.dart | 35 +- .../lib/google/protobuf/timestamp.pbenum.dart | 1 - .../lib/google/protobuf/wrappers.pb.dart | 260 ++- .../lib/google/protobuf/wrappers.pbenum.dart | 1 - .../lib/google/rpc/status.pb.dart | 34 +- .../lib/google/rpc/status.pbenum.dart | 1 - .../lib/google/type/latlng.pb.dart | 31 +- .../lib/google/type/latlng.pbenum.dart | 1 - 45 files changed, 3817 insertions(+), 1870 deletions(-) diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pb.dart index 1677aa0e..e80b5d9c 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pb.dart @@ -19,12 +19,19 @@ import 'http.pb.dart' as $0; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; class Annotations { - static final http = $pb.Extension<$0.HttpRule>(_omitMessageNames ? '' : 'google.protobuf.MethodOptions', _omitFieldNames ? '' : 'http', 72295728, $pb.PbFieldType.OM, defaultOrMaker: $0.HttpRule.getDefault, subBuilder: $0.HttpRule.create); + static final http = $pb.Extension<$0.HttpRule>( + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'http', + 72295728, + $pb.PbFieldType.OM, + defaultOrMaker: $0.HttpRule.getDefault, + subBuilder: $0.HttpRule.create); static void registerAllExtensions($pb.ExtensionRegistry registry) { registry.add(http); } } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pbenum.dart index eb75ae71..2beef33f 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/annotations.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/client.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/api/client.pb.dart index 4a29425b..4660db8c 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/client.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/client.pb.dart @@ -25,7 +25,7 @@ export 'client.pbenum.dart'; /// Required information for every language. class CommonLanguageSettings extends $pb.GeneratedMessage { factory CommonLanguageSettings({ - @$core.Deprecated('This field is deprecated.') + @$core.Deprecated('This field is deprecated.') $core.String? referenceDocsUri, $core.Iterable? destinations, SelectiveGapicGeneration? selectiveGapicGeneration, @@ -33,26 +33,44 @@ class CommonLanguageSettings extends $pb.GeneratedMessage { final result = create(); if (referenceDocsUri != null) result.referenceDocsUri = referenceDocsUri; if (destinations != null) result.destinations.addAll(destinations); - if (selectiveGapicGeneration != null) result.selectiveGapicGeneration = selectiveGapicGeneration; + if (selectiveGapicGeneration != null) + result.selectiveGapicGeneration = selectiveGapicGeneration; return result; } CommonLanguageSettings._(); - factory CommonLanguageSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory CommonLanguageSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CommonLanguageSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + factory CommonLanguageSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory CommonLanguageSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommonLanguageSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'referenceDocsUri') - ..pc(2, _omitFieldNames ? '' : 'destinations', $pb.PbFieldType.KE, valueOf: ClientLibraryDestination.valueOf, enumValues: ClientLibraryDestination.values, defaultEnumValue: ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED) - ..aOM(3, _omitFieldNames ? '' : 'selectiveGapicGeneration', subBuilder: SelectiveGapicGeneration.create) - ..hasRequiredFields = false - ; + ..pc( + 2, _omitFieldNames ? '' : 'destinations', $pb.PbFieldType.KE, + valueOf: ClientLibraryDestination.valueOf, + enumValues: ClientLibraryDestination.values, + defaultEnumValue: + ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED) + ..aOM( + 3, _omitFieldNames ? '' : 'selectiveGapicGeneration', + subBuilder: SelectiveGapicGeneration.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CommonLanguageSettings clone() => CommonLanguageSettings()..mergeFromMessage(this); + CommonLanguageSettings clone() => + CommonLanguageSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CommonLanguageSettings copyWith(void Function(CommonLanguageSettings) updates) => super.copyWith((message) => updates(message as CommonLanguageSettings)) as CommonLanguageSettings; + CommonLanguageSettings copyWith( + void Function(CommonLanguageSettings) updates) => + super.copyWith((message) => updates(message as CommonLanguageSettings)) + as CommonLanguageSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -61,9 +79,11 @@ class CommonLanguageSettings extends $pb.GeneratedMessage { static CommonLanguageSettings create() => CommonLanguageSettings._(); @$core.override CommonLanguageSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static CommonLanguageSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static CommonLanguageSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static CommonLanguageSettings? _defaultInstance; /// Link to automatically generated reference documentation. Example: @@ -89,7 +109,8 @@ class CommonLanguageSettings extends $pb.GeneratedMessage { @$pb.TagNumber(3) SelectiveGapicGeneration get selectiveGapicGeneration => $_getN(2); @$pb.TagNumber(3) - set selectiveGapicGeneration(SelectiveGapicGeneration value) => $_setField(3, value); + set selectiveGapicGeneration(SelectiveGapicGeneration value) => + $_setField(3, value); @$pb.TagNumber(3) $core.bool hasSelectiveGapicGeneration() => $_has(2); @$pb.TagNumber(3) @@ -130,28 +151,50 @@ class ClientLibrarySettings extends $pb.GeneratedMessage { ClientLibrarySettings._(); - factory ClientLibrarySettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ClientLibrarySettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientLibrarySettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + factory ClientLibrarySettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ClientLibrarySettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ClientLibrarySettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'version') - ..e<$1.LaunchStage>(2, _omitFieldNames ? '' : 'launchStage', $pb.PbFieldType.OE, defaultOrMaker: $1.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, valueOf: $1.LaunchStage.valueOf, enumValues: $1.LaunchStage.values) + ..e<$1.LaunchStage>( + 2, _omitFieldNames ? '' : 'launchStage', $pb.PbFieldType.OE, + defaultOrMaker: $1.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, + valueOf: $1.LaunchStage.valueOf, + enumValues: $1.LaunchStage.values) ..aOB(3, _omitFieldNames ? '' : 'restNumericEnums') - ..aOM(21, _omitFieldNames ? '' : 'javaSettings', subBuilder: JavaSettings.create) - ..aOM(22, _omitFieldNames ? '' : 'cppSettings', subBuilder: CppSettings.create) - ..aOM(23, _omitFieldNames ? '' : 'phpSettings', subBuilder: PhpSettings.create) - ..aOM(24, _omitFieldNames ? '' : 'pythonSettings', subBuilder: PythonSettings.create) - ..aOM(25, _omitFieldNames ? '' : 'nodeSettings', subBuilder: NodeSettings.create) - ..aOM(26, _omitFieldNames ? '' : 'dotnetSettings', subBuilder: DotnetSettings.create) - ..aOM(27, _omitFieldNames ? '' : 'rubySettings', subBuilder: RubySettings.create) - ..aOM(28, _omitFieldNames ? '' : 'goSettings', subBuilder: GoSettings.create) - ..hasRequiredFields = false - ; + ..aOM(21, _omitFieldNames ? '' : 'javaSettings', + subBuilder: JavaSettings.create) + ..aOM(22, _omitFieldNames ? '' : 'cppSettings', + subBuilder: CppSettings.create) + ..aOM(23, _omitFieldNames ? '' : 'phpSettings', + subBuilder: PhpSettings.create) + ..aOM(24, _omitFieldNames ? '' : 'pythonSettings', + subBuilder: PythonSettings.create) + ..aOM(25, _omitFieldNames ? '' : 'nodeSettings', + subBuilder: NodeSettings.create) + ..aOM(26, _omitFieldNames ? '' : 'dotnetSettings', + subBuilder: DotnetSettings.create) + ..aOM(27, _omitFieldNames ? '' : 'rubySettings', + subBuilder: RubySettings.create) + ..aOM(28, _omitFieldNames ? '' : 'goSettings', + subBuilder: GoSettings.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ClientLibrarySettings clone() => ClientLibrarySettings()..mergeFromMessage(this); + ClientLibrarySettings clone() => + ClientLibrarySettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ClientLibrarySettings copyWith(void Function(ClientLibrarySettings) updates) => super.copyWith((message) => updates(message as ClientLibrarySettings)) as ClientLibrarySettings; + ClientLibrarySettings copyWith( + void Function(ClientLibrarySettings) updates) => + super.copyWith((message) => updates(message as ClientLibrarySettings)) + as ClientLibrarySettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -160,9 +203,11 @@ class ClientLibrarySettings extends $pb.GeneratedMessage { static ClientLibrarySettings create() => ClientLibrarySettings._(); @$core.override ClientLibrarySettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ClientLibrarySettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ClientLibrarySettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ClientLibrarySettings? _defaultInstance; /// Version of the API to apply these settings to. This is the full protobuf @@ -318,39 +363,58 @@ class Publishing extends $pb.GeneratedMessage { if (documentationUri != null) result.documentationUri = documentationUri; if (apiShortName != null) result.apiShortName = apiShortName; if (githubLabel != null) result.githubLabel = githubLabel; - if (codeownerGithubTeams != null) result.codeownerGithubTeams.addAll(codeownerGithubTeams); + if (codeownerGithubTeams != null) + result.codeownerGithubTeams.addAll(codeownerGithubTeams); if (docTagPrefix != null) result.docTagPrefix = docTagPrefix; if (organization != null) result.organization = organization; if (librarySettings != null) result.librarySettings.addAll(librarySettings); - if (protoReferenceDocumentationUri != null) result.protoReferenceDocumentationUri = protoReferenceDocumentationUri; - if (restReferenceDocumentationUri != null) result.restReferenceDocumentationUri = restReferenceDocumentationUri; + if (protoReferenceDocumentationUri != null) + result.protoReferenceDocumentationUri = protoReferenceDocumentationUri; + if (restReferenceDocumentationUri != null) + result.restReferenceDocumentationUri = restReferenceDocumentationUri; return result; } Publishing._(); - factory Publishing.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Publishing.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Publishing', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..pc(2, _omitFieldNames ? '' : 'methodSettings', $pb.PbFieldType.PM, subBuilder: MethodSettings.create) + factory Publishing.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Publishing.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Publishing', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'methodSettings', $pb.PbFieldType.PM, + subBuilder: MethodSettings.create) ..aOS(101, _omitFieldNames ? '' : 'newIssueUri') ..aOS(102, _omitFieldNames ? '' : 'documentationUri') ..aOS(103, _omitFieldNames ? '' : 'apiShortName') ..aOS(104, _omitFieldNames ? '' : 'githubLabel') ..pPS(105, _omitFieldNames ? '' : 'codeownerGithubTeams') ..aOS(106, _omitFieldNames ? '' : 'docTagPrefix') - ..e(107, _omitFieldNames ? '' : 'organization', $pb.PbFieldType.OE, defaultOrMaker: ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, valueOf: ClientLibraryOrganization.valueOf, enumValues: ClientLibraryOrganization.values) - ..pc(109, _omitFieldNames ? '' : 'librarySettings', $pb.PbFieldType.PM, subBuilder: ClientLibrarySettings.create) + ..e( + 107, _omitFieldNames ? '' : 'organization', $pb.PbFieldType.OE, + defaultOrMaker: + ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, + valueOf: ClientLibraryOrganization.valueOf, + enumValues: ClientLibraryOrganization.values) + ..pc( + 109, _omitFieldNames ? '' : 'librarySettings', $pb.PbFieldType.PM, + subBuilder: ClientLibrarySettings.create) ..aOS(110, _omitFieldNames ? '' : 'protoReferenceDocumentationUri') ..aOS(111, _omitFieldNames ? '' : 'restReferenceDocumentationUri') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Publishing clone() => Publishing()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Publishing copyWith(void Function(Publishing) updates) => super.copyWith((message) => updates(message as Publishing)) as Publishing; + Publishing copyWith(void Function(Publishing) updates) => + super.copyWith((message) => updates(message as Publishing)) as Publishing; @$core.override $pb.BuilderInfo get info_ => _i; @@ -361,7 +425,8 @@ class Publishing extends $pb.GeneratedMessage { Publishing createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Publishing getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Publishing getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Publishing? _defaultInstance; /// A list of API method settings, e.g. the behavior for methods that use the @@ -450,7 +515,8 @@ class Publishing extends $pb.GeneratedMessage { @$pb.TagNumber(110) $core.String get protoReferenceDocumentationUri => $_getSZ(9); @$pb.TagNumber(110) - set protoReferenceDocumentationUri($core.String value) => $_setString(9, value); + set protoReferenceDocumentationUri($core.String value) => + $_setString(9, value); @$pb.TagNumber(110) $core.bool hasProtoReferenceDocumentationUri() => $_has(9); @$pb.TagNumber(110) @@ -461,7 +527,8 @@ class Publishing extends $pb.GeneratedMessage { @$pb.TagNumber(111) $core.String get restReferenceDocumentationUri => $_getSZ(10); @$pb.TagNumber(111) - set restReferenceDocumentationUri($core.String value) => $_setString(10, value); + set restReferenceDocumentationUri($core.String value) => + $_setString(10, value); @$pb.TagNumber(111) $core.bool hasRestReferenceDocumentationUri() => $_has(10); @$pb.TagNumber(111) @@ -472,32 +539,48 @@ class Publishing extends $pb.GeneratedMessage { class JavaSettings extends $pb.GeneratedMessage { factory JavaSettings({ $core.String? libraryPackage, - $core.Iterable<$core.MapEntry<$core.String, $core.String>>? serviceClassNames, + $core.Iterable<$core.MapEntry<$core.String, $core.String>>? + serviceClassNames, CommonLanguageSettings? common, }) { final result = create(); if (libraryPackage != null) result.libraryPackage = libraryPackage; - if (serviceClassNames != null) result.serviceClassNames.addEntries(serviceClassNames); + if (serviceClassNames != null) + result.serviceClassNames.addEntries(serviceClassNames); if (common != null) result.common = common; return result; } JavaSettings._(); - factory JavaSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory JavaSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'JavaSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + factory JavaSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory JavaSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'JavaSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'libraryPackage') - ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'serviceClassNames', entryClassName: 'JavaSettings.ServiceClassNamesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.api')) - ..aOM(3, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..hasRequiredFields = false - ; + ..m<$core.String, $core.String>( + 2, _omitFieldNames ? '' : 'serviceClassNames', + entryClassName: 'JavaSettings.ServiceClassNamesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..aOM(3, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') JavaSettings clone() => JavaSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - JavaSettings copyWith(void Function(JavaSettings) updates) => super.copyWith((message) => updates(message as JavaSettings)) as JavaSettings; + JavaSettings copyWith(void Function(JavaSettings) updates) => + super.copyWith((message) => updates(message as JavaSettings)) + as JavaSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -506,9 +589,11 @@ class JavaSettings extends $pb.GeneratedMessage { static JavaSettings create() => JavaSettings._(); @$core.override JavaSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static JavaSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static JavaSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static JavaSettings? _defaultInstance; /// The package name to use in Java. Clobbers the java_package option @@ -573,18 +658,27 @@ class CppSettings extends $pb.GeneratedMessage { CppSettings._(); - factory CppSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory CppSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CppSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..hasRequiredFields = false - ; + factory CppSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory CppSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CppSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') CppSettings clone() => CppSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CppSettings copyWith(void Function(CppSettings) updates) => super.copyWith((message) => updates(message as CppSettings)) as CppSettings; + CppSettings copyWith(void Function(CppSettings) updates) => + super.copyWith((message) => updates(message as CppSettings)) + as CppSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -595,7 +689,8 @@ class CppSettings extends $pb.GeneratedMessage { CppSettings createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static CppSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static CppSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static CppSettings? _defaultInstance; /// Some settings. @@ -623,18 +718,27 @@ class PhpSettings extends $pb.GeneratedMessage { PhpSettings._(); - factory PhpSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory PhpSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PhpSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..hasRequiredFields = false - ; + factory PhpSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PhpSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PhpSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PhpSettings clone() => PhpSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PhpSettings copyWith(void Function(PhpSettings) updates) => super.copyWith((message) => updates(message as PhpSettings)) as PhpSettings; + PhpSettings copyWith(void Function(PhpSettings) updates) => + super.copyWith((message) => updates(message as PhpSettings)) + as PhpSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -645,7 +749,8 @@ class PhpSettings extends $pb.GeneratedMessage { PhpSettings createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PhpSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PhpSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PhpSettings? _defaultInstance; /// Some settings. @@ -671,39 +776,58 @@ class PythonSettings_ExperimentalFeatures extends $pb.GeneratedMessage { $core.bool? unversionedPackageDisabled, }) { final result = create(); - if (restAsyncIoEnabled != null) result.restAsyncIoEnabled = restAsyncIoEnabled; - if (protobufPythonicTypesEnabled != null) result.protobufPythonicTypesEnabled = protobufPythonicTypesEnabled; - if (unversionedPackageDisabled != null) result.unversionedPackageDisabled = unversionedPackageDisabled; + if (restAsyncIoEnabled != null) + result.restAsyncIoEnabled = restAsyncIoEnabled; + if (protobufPythonicTypesEnabled != null) + result.protobufPythonicTypesEnabled = protobufPythonicTypesEnabled; + if (unversionedPackageDisabled != null) + result.unversionedPackageDisabled = unversionedPackageDisabled; return result; } PythonSettings_ExperimentalFeatures._(); - factory PythonSettings_ExperimentalFeatures.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory PythonSettings_ExperimentalFeatures.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PythonSettings.ExperimentalFeatures', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + factory PythonSettings_ExperimentalFeatures.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PythonSettings_ExperimentalFeatures.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + 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') ..aOB(3, _omitFieldNames ? '' : 'unversionedPackageDisabled') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PythonSettings_ExperimentalFeatures clone() => PythonSettings_ExperimentalFeatures()..mergeFromMessage(this); + PythonSettings_ExperimentalFeatures clone() => + PythonSettings_ExperimentalFeatures()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PythonSettings_ExperimentalFeatures copyWith(void Function(PythonSettings_ExperimentalFeatures) updates) => super.copyWith((message) => updates(message as PythonSettings_ExperimentalFeatures)) as PythonSettings_ExperimentalFeatures; + PythonSettings_ExperimentalFeatures copyWith( + void Function(PythonSettings_ExperimentalFeatures) updates) => + super.copyWith((message) => + updates(message as PythonSettings_ExperimentalFeatures)) + as PythonSettings_ExperimentalFeatures; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static PythonSettings_ExperimentalFeatures create() => PythonSettings_ExperimentalFeatures._(); + static PythonSettings_ExperimentalFeatures create() => + PythonSettings_ExperimentalFeatures._(); @$core.override PythonSettings_ExperimentalFeatures createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PythonSettings_ExperimentalFeatures getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PythonSettings_ExperimentalFeatures getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + PythonSettings_ExperimentalFeatures>(create); static PythonSettings_ExperimentalFeatures? _defaultInstance; /// Enables generation of asynchronous REST clients if `rest` transport is @@ -754,25 +878,37 @@ class PythonSettings extends $pb.GeneratedMessage { }) { final result = create(); if (common != null) result.common = common; - if (experimentalFeatures != null) result.experimentalFeatures = experimentalFeatures; + if (experimentalFeatures != null) + result.experimentalFeatures = experimentalFeatures; return result; } PythonSettings._(); - factory PythonSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory PythonSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PythonSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..aOM(2, _omitFieldNames ? '' : 'experimentalFeatures', subBuilder: PythonSettings_ExperimentalFeatures.create) - ..hasRequiredFields = false - ; + factory PythonSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PythonSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PythonSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..aOM( + 2, _omitFieldNames ? '' : 'experimentalFeatures', + subBuilder: PythonSettings_ExperimentalFeatures.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PythonSettings clone() => PythonSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PythonSettings copyWith(void Function(PythonSettings) updates) => super.copyWith((message) => updates(message as PythonSettings)) as PythonSettings; + PythonSettings copyWith(void Function(PythonSettings) updates) => + super.copyWith((message) => updates(message as PythonSettings)) + as PythonSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -781,9 +917,11 @@ class PythonSettings extends $pb.GeneratedMessage { static PythonSettings create() => PythonSettings._(); @$core.override PythonSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PythonSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PythonSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PythonSettings? _defaultInstance; /// Some settings. @@ -802,13 +940,15 @@ class PythonSettings extends $pb.GeneratedMessage { @$pb.TagNumber(2) PythonSettings_ExperimentalFeatures get experimentalFeatures => $_getN(1); @$pb.TagNumber(2) - set experimentalFeatures(PythonSettings_ExperimentalFeatures value) => $_setField(2, value); + set experimentalFeatures(PythonSettings_ExperimentalFeatures value) => + $_setField(2, value); @$pb.TagNumber(2) $core.bool hasExperimentalFeatures() => $_has(1); @$pb.TagNumber(2) void clearExperimentalFeatures() => $_clearField(2); @$pb.TagNumber(2) - PythonSettings_ExperimentalFeatures ensureExperimentalFeatures() => $_ensure(1); + PythonSettings_ExperimentalFeatures ensureExperimentalFeatures() => + $_ensure(1); } /// Settings for Node client libraries. @@ -823,18 +963,27 @@ class NodeSettings extends $pb.GeneratedMessage { NodeSettings._(); - factory NodeSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory NodeSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NodeSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..hasRequiredFields = false - ; + factory NodeSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory NodeSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NodeSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') NodeSettings clone() => NodeSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - NodeSettings copyWith(void Function(NodeSettings) updates) => super.copyWith((message) => updates(message as NodeSettings)) as NodeSettings; + NodeSettings copyWith(void Function(NodeSettings) updates) => + super.copyWith((message) => updates(message as NodeSettings)) + as NodeSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -843,9 +992,11 @@ class NodeSettings extends $pb.GeneratedMessage { static NodeSettings create() => NodeSettings._(); @$core.override NodeSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static NodeSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static NodeSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static NodeSettings? _defaultInstance; /// Some settings. @@ -866,40 +1017,64 @@ class DotnetSettings extends $pb.GeneratedMessage { factory DotnetSettings({ CommonLanguageSettings? common, $core.Iterable<$core.MapEntry<$core.String, $core.String>>? renamedServices, - $core.Iterable<$core.MapEntry<$core.String, $core.String>>? renamedResources, + $core.Iterable<$core.MapEntry<$core.String, $core.String>>? + renamedResources, $core.Iterable<$core.String>? ignoredResources, $core.Iterable<$core.String>? forcedNamespaceAliases, $core.Iterable<$core.String>? handwrittenSignatures, }) { final result = create(); if (common != null) result.common = common; - if (renamedServices != null) result.renamedServices.addEntries(renamedServices); - if (renamedResources != null) result.renamedResources.addEntries(renamedResources); - if (ignoredResources != null) result.ignoredResources.addAll(ignoredResources); - if (forcedNamespaceAliases != null) result.forcedNamespaceAliases.addAll(forcedNamespaceAliases); - if (handwrittenSignatures != null) result.handwrittenSignatures.addAll(handwrittenSignatures); + if (renamedServices != null) + result.renamedServices.addEntries(renamedServices); + if (renamedResources != null) + result.renamedResources.addEntries(renamedResources); + if (ignoredResources != null) + result.ignoredResources.addAll(ignoredResources); + if (forcedNamespaceAliases != null) + result.forcedNamespaceAliases.addAll(forcedNamespaceAliases); + if (handwrittenSignatures != null) + result.handwrittenSignatures.addAll(handwrittenSignatures); return result; } DotnetSettings._(); - factory DotnetSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DotnetSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DotnetSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'renamedServices', entryClassName: 'DotnetSettings.RenamedServicesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.api')) - ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'renamedResources', entryClassName: 'DotnetSettings.RenamedResourcesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.api')) + factory DotnetSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DotnetSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DotnetSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'renamedServices', + entryClassName: 'DotnetSettings.RenamedServicesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..m<$core.String, $core.String>( + 3, _omitFieldNames ? '' : 'renamedResources', + entryClassName: 'DotnetSettings.RenamedResourcesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) ..pPS(4, _omitFieldNames ? '' : 'ignoredResources') ..pPS(5, _omitFieldNames ? '' : 'forcedNamespaceAliases') ..pPS(6, _omitFieldNames ? '' : 'handwrittenSignatures') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DotnetSettings clone() => DotnetSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DotnetSettings copyWith(void Function(DotnetSettings) updates) => super.copyWith((message) => updates(message as DotnetSettings)) as DotnetSettings; + DotnetSettings copyWith(void Function(DotnetSettings) updates) => + super.copyWith((message) => updates(message as DotnetSettings)) + as DotnetSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -908,9 +1083,11 @@ class DotnetSettings extends $pb.GeneratedMessage { static DotnetSettings create() => DotnetSettings._(); @$core.override DotnetSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DotnetSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DotnetSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DotnetSettings? _defaultInstance; /// Some settings. @@ -973,18 +1150,27 @@ class RubySettings extends $pb.GeneratedMessage { RubySettings._(); - factory RubySettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RubySettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RubySettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..hasRequiredFields = false - ; + factory RubySettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RubySettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RubySettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RubySettings clone() => RubySettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RubySettings copyWith(void Function(RubySettings) updates) => super.copyWith((message) => updates(message as RubySettings)) as RubySettings; + RubySettings copyWith(void Function(RubySettings) updates) => + super.copyWith((message) => updates(message as RubySettings)) + as RubySettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -993,9 +1179,11 @@ class RubySettings extends $pb.GeneratedMessage { static RubySettings create() => RubySettings._(); @$core.override RubySettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RubySettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RubySettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RubySettings? _defaultInstance; /// Some settings. @@ -1019,25 +1207,38 @@ class GoSettings extends $pb.GeneratedMessage { }) { final result = create(); if (common != null) result.common = common; - if (renamedServices != null) result.renamedServices.addEntries(renamedServices); + if (renamedServices != null) + result.renamedServices.addEntries(renamedServices); return result; } GoSettings._(); - factory GoSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory GoSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GoSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'common', subBuilder: CommonLanguageSettings.create) - ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'renamedServices', entryClassName: 'GoSettings.RenamedServicesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.api')) - ..hasRequiredFields = false - ; + factory GoSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory GoSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GoSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'renamedServices', + entryClassName: 'GoSettings.RenamedServicesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GoSettings clone() => GoSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - GoSettings copyWith(void Function(GoSettings) updates) => super.copyWith((message) => updates(message as GoSettings)) as GoSettings; + GoSettings copyWith(void Function(GoSettings) updates) => + super.copyWith((message) => updates(message as GoSettings)) as GoSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1048,7 +1249,8 @@ class GoSettings extends $pb.GeneratedMessage { GoSettings createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static GoSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GoSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GoSettings? _defaultInstance; /// Some settings. @@ -1089,7 +1291,8 @@ class MethodSettings_LongRunning extends $pb.GeneratedMessage { }) { final result = create(); if (initialPollDelay != null) result.initialPollDelay = initialPollDelay; - if (pollDelayMultiplier != null) result.pollDelayMultiplier = pollDelayMultiplier; + if (pollDelayMultiplier != null) + result.pollDelayMultiplier = pollDelayMultiplier; if (maxPollDelay != null) result.maxPollDelay = maxPollDelay; if (totalPollTimeout != null) result.totalPollTimeout = totalPollTimeout; return result; @@ -1097,21 +1300,36 @@ class MethodSettings_LongRunning extends $pb.GeneratedMessage { MethodSettings_LongRunning._(); - factory MethodSettings_LongRunning.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory MethodSettings_LongRunning.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MethodSettings.LongRunning', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..aOM<$0.Duration>(1, _omitFieldNames ? '' : 'initialPollDelay', subBuilder: $0.Duration.create) - ..a<$core.double>(2, _omitFieldNames ? '' : 'pollDelayMultiplier', $pb.PbFieldType.OF) - ..aOM<$0.Duration>(3, _omitFieldNames ? '' : 'maxPollDelay', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(4, _omitFieldNames ? '' : 'totalPollTimeout', subBuilder: $0.Duration.create) - ..hasRequiredFields = false - ; + factory MethodSettings_LongRunning.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory MethodSettings_LongRunning.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MethodSettings.LongRunning', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM<$0.Duration>(1, _omitFieldNames ? '' : 'initialPollDelay', + subBuilder: $0.Duration.create) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'pollDelayMultiplier', $pb.PbFieldType.OF) + ..aOM<$0.Duration>(3, _omitFieldNames ? '' : 'maxPollDelay', + subBuilder: $0.Duration.create) + ..aOM<$0.Duration>(4, _omitFieldNames ? '' : 'totalPollTimeout', + subBuilder: $0.Duration.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MethodSettings_LongRunning clone() => MethodSettings_LongRunning()..mergeFromMessage(this); + MethodSettings_LongRunning clone() => + MethodSettings_LongRunning()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MethodSettings_LongRunning copyWith(void Function(MethodSettings_LongRunning) updates) => super.copyWith((message) => updates(message as MethodSettings_LongRunning)) as MethodSettings_LongRunning; + MethodSettings_LongRunning copyWith( + void Function(MethodSettings_LongRunning) updates) => + super.copyWith( + (message) => updates(message as MethodSettings_LongRunning)) + as MethodSettings_LongRunning; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1120,9 +1338,11 @@ class MethodSettings_LongRunning extends $pb.GeneratedMessage { static MethodSettings_LongRunning create() => MethodSettings_LongRunning._(); @$core.override MethodSettings_LongRunning createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MethodSettings_LongRunning getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MethodSettings_LongRunning getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static MethodSettings_LongRunning? _defaultInstance; /// Initial delay after which the first poll request will be made. @@ -1187,26 +1407,36 @@ class MethodSettings extends $pb.GeneratedMessage { final result = create(); if (selector != null) result.selector = selector; if (longRunning != null) result.longRunning = longRunning; - if (autoPopulatedFields != null) result.autoPopulatedFields.addAll(autoPopulatedFields); + if (autoPopulatedFields != null) + result.autoPopulatedFields.addAll(autoPopulatedFields); return result; } MethodSettings._(); - factory MethodSettings.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory MethodSettings.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MethodSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + factory MethodSettings.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory MethodSettings.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MethodSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'selector') - ..aOM(2, _omitFieldNames ? '' : 'longRunning', subBuilder: MethodSettings_LongRunning.create) + ..aOM(2, _omitFieldNames ? '' : 'longRunning', + subBuilder: MethodSettings_LongRunning.create) ..pPS(3, _omitFieldNames ? '' : 'autoPopulatedFields') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') MethodSettings clone() => MethodSettings()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MethodSettings copyWith(void Function(MethodSettings) updates) => super.copyWith((message) => updates(message as MethodSettings)) as MethodSettings; + MethodSettings copyWith(void Function(MethodSettings) updates) => + super.copyWith((message) => updates(message as MethodSettings)) + as MethodSettings; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1215,9 +1445,11 @@ class MethodSettings extends $pb.GeneratedMessage { static MethodSettings create() => MethodSettings._(); @$core.override MethodSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MethodSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MethodSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static MethodSettings? _defaultInstance; /// The fully qualified name of the method, for which the options below apply. @@ -1287,25 +1519,36 @@ class SelectiveGapicGeneration extends $pb.GeneratedMessage { }) { final result = create(); if (methods != null) result.methods.addAll(methods); - if (generateOmittedAsInternal != null) result.generateOmittedAsInternal = generateOmittedAsInternal; + if (generateOmittedAsInternal != null) + result.generateOmittedAsInternal = generateOmittedAsInternal; return result; } SelectiveGapicGeneration._(); - factory SelectiveGapicGeneration.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory SelectiveGapicGeneration.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SelectiveGapicGeneration', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + factory SelectiveGapicGeneration.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory SelectiveGapicGeneration.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SelectiveGapicGeneration', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'methods') ..aOB(2, _omitFieldNames ? '' : 'generateOmittedAsInternal') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SelectiveGapicGeneration clone() => SelectiveGapicGeneration()..mergeFromMessage(this); + SelectiveGapicGeneration clone() => + SelectiveGapicGeneration()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SelectiveGapicGeneration copyWith(void Function(SelectiveGapicGeneration) updates) => super.copyWith((message) => updates(message as SelectiveGapicGeneration)) as SelectiveGapicGeneration; + SelectiveGapicGeneration copyWith( + void Function(SelectiveGapicGeneration) updates) => + super.copyWith((message) => updates(message as SelectiveGapicGeneration)) + as SelectiveGapicGeneration; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1314,9 +1557,11 @@ class SelectiveGapicGeneration extends $pb.GeneratedMessage { static SelectiveGapicGeneration create() => SelectiveGapicGeneration._(); @$core.override SelectiveGapicGeneration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SelectiveGapicGeneration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SelectiveGapicGeneration getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SelectiveGapicGeneration? _defaultInstance; /// An allowlist of the fully qualified names of RPCs that should be included @@ -1341,10 +1586,27 @@ class SelectiveGapicGeneration extends $pb.GeneratedMessage { } class Client { - static final methodSignature = $pb.Extension<$core.String>.repeated(_omitMessageNames ? '' : 'google.protobuf.MethodOptions', _omitFieldNames ? '' : 'methodSignature', 1051, $pb.PbFieldType.PS, check: $pb.getCheckFunction($pb.PbFieldType.PS)); - static final defaultHost = $pb.Extension<$core.String>(_omitMessageNames ? '' : 'google.protobuf.ServiceOptions', _omitFieldNames ? '' : 'defaultHost', 1049, $pb.PbFieldType.OS); - static final oauthScopes = $pb.Extension<$core.String>(_omitMessageNames ? '' : 'google.protobuf.ServiceOptions', _omitFieldNames ? '' : 'oauthScopes', 1050, $pb.PbFieldType.OS); - static final apiVersion = $pb.Extension<$core.String>(_omitMessageNames ? '' : 'google.protobuf.ServiceOptions', _omitFieldNames ? '' : 'apiVersion', 525000001, $pb.PbFieldType.OS); + static final methodSignature = $pb.Extension<$core.String>.repeated( + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'methodSignature', + 1051, + $pb.PbFieldType.PS, + check: $pb.getCheckFunction($pb.PbFieldType.PS)); + static final defaultHost = $pb.Extension<$core.String>( + _omitMessageNames ? '' : 'google.protobuf.ServiceOptions', + _omitFieldNames ? '' : 'defaultHost', + 1049, + $pb.PbFieldType.OS); + static final oauthScopes = $pb.Extension<$core.String>( + _omitMessageNames ? '' : 'google.protobuf.ServiceOptions', + _omitFieldNames ? '' : 'oauthScopes', + 1050, + $pb.PbFieldType.OS); + static final apiVersion = $pb.Extension<$core.String>( + _omitMessageNames ? '' : 'google.protobuf.ServiceOptions', + _omitFieldNames ? '' : 'apiVersion', + 525000001, + $pb.PbFieldType.OS); static void registerAllExtensions($pb.ExtensionRegistry registry) { registry.add(methodSignature); registry.add(defaultHost); @@ -1353,6 +1615,7 @@ class Client { } } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/client.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/api/client.pbenum.dart index 48b1561c..d6b803ee 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/client.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/client.pbenum.dart @@ -18,23 +18,40 @@ import 'package:protobuf/protobuf.dart' as $pb; /// Affects the url where generated docs are published, etc. class ClientLibraryOrganization extends $pb.ProtobufEnum { /// Not useful. - static const ClientLibraryOrganization CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = ClientLibraryOrganization._(0, _omitEnumNames ? '' : 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED'); + static const ClientLibraryOrganization + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = ClientLibraryOrganization._( + 0, _omitEnumNames ? '' : 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED'); + /// Google Cloud Platform Org. - static const ClientLibraryOrganization CLOUD = ClientLibraryOrganization._(1, _omitEnumNames ? '' : 'CLOUD'); + static const ClientLibraryOrganization CLOUD = + ClientLibraryOrganization._(1, _omitEnumNames ? '' : 'CLOUD'); + /// Ads (Advertising) Org. - static const ClientLibraryOrganization ADS = ClientLibraryOrganization._(2, _omitEnumNames ? '' : 'ADS'); + static const ClientLibraryOrganization ADS = + ClientLibraryOrganization._(2, _omitEnumNames ? '' : 'ADS'); + /// Photos Org. - static const ClientLibraryOrganization PHOTOS = ClientLibraryOrganization._(3, _omitEnumNames ? '' : 'PHOTOS'); + static const ClientLibraryOrganization PHOTOS = + ClientLibraryOrganization._(3, _omitEnumNames ? '' : 'PHOTOS'); + /// Street View Org. - static const ClientLibraryOrganization STREET_VIEW = ClientLibraryOrganization._(4, _omitEnumNames ? '' : 'STREET_VIEW'); + static const ClientLibraryOrganization STREET_VIEW = + ClientLibraryOrganization._(4, _omitEnumNames ? '' : 'STREET_VIEW'); + /// Shopping Org. - static const ClientLibraryOrganization SHOPPING = ClientLibraryOrganization._(5, _omitEnumNames ? '' : 'SHOPPING'); + static const ClientLibraryOrganization SHOPPING = + ClientLibraryOrganization._(5, _omitEnumNames ? '' : 'SHOPPING'); + /// Geo Org. - static const ClientLibraryOrganization GEO = ClientLibraryOrganization._(6, _omitEnumNames ? '' : 'GEO'); + static const ClientLibraryOrganization GEO = + ClientLibraryOrganization._(6, _omitEnumNames ? '' : 'GEO'); + /// Generative AI - https://developers.generativeai.google - static const ClientLibraryOrganization GENERATIVE_AI = ClientLibraryOrganization._(7, _omitEnumNames ? '' : 'GENERATIVE_AI'); + static const ClientLibraryOrganization GENERATIVE_AI = + ClientLibraryOrganization._(7, _omitEnumNames ? '' : 'GENERATIVE_AI'); - static const $core.List values = [ + static const $core.List values = + [ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, CLOUD, ADS, @@ -45,8 +62,10 @@ class ClientLibraryOrganization extends $pb.ProtobufEnum { GENERATIVE_AI, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 7); - static ClientLibraryOrganization? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 7); + static ClientLibraryOrganization? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const ClientLibraryOrganization._(super.value, super.name); } @@ -55,24 +74,32 @@ class ClientLibraryOrganization extends $pb.ProtobufEnum { class ClientLibraryDestination extends $pb.ProtobufEnum { /// Client libraries will neither be generated nor published to package /// managers. - static const ClientLibraryDestination CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = ClientLibraryDestination._(0, _omitEnumNames ? '' : 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED'); + static const ClientLibraryDestination CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = + ClientLibraryDestination._( + 0, _omitEnumNames ? '' : 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED'); + /// Generate the client library in a repo under github.com/googleapis, /// but don't publish it to package managers. - static const ClientLibraryDestination GITHUB = ClientLibraryDestination._(10, _omitEnumNames ? '' : 'GITHUB'); + static const ClientLibraryDestination GITHUB = + ClientLibraryDestination._(10, _omitEnumNames ? '' : 'GITHUB'); + /// Publish the library to package managers like nuget.org and npmjs.com. - static const ClientLibraryDestination PACKAGE_MANAGER = ClientLibraryDestination._(20, _omitEnumNames ? '' : 'PACKAGE_MANAGER'); + static const ClientLibraryDestination PACKAGE_MANAGER = + ClientLibraryDestination._(20, _omitEnumNames ? '' : 'PACKAGE_MANAGER'); - static const $core.List values = [ + static const $core.List values = + [ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED, GITHUB, PACKAGE_MANAGER, ]; - static final $core.Map<$core.int, ClientLibraryDestination> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ClientLibraryDestination> _byValue = + $pb.ProtobufEnum.initByValue(values); static ClientLibraryDestination? valueOf($core.int value) => _byValue[value]; const ClientLibraryDestination._(super.value, super.name); } - -const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pb.dart index a4f60aa0..a33116e6 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pb.dart @@ -21,12 +21,20 @@ export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; export 'field_behavior.pbenum.dart'; class Field_behavior { - static final fieldBehavior = $pb.Extension.repeated(_omitMessageNames ? '' : 'google.protobuf.FieldOptions', _omitFieldNames ? '' : 'fieldBehavior', 1052, $pb.PbFieldType.PE, check: $pb.getCheckFunction($pb.PbFieldType.PE), valueOf: FieldBehavior.valueOf, enumValues: FieldBehavior.values); + static final fieldBehavior = $pb.Extension.repeated( + _omitMessageNames ? '' : 'google.protobuf.FieldOptions', + _omitFieldNames ? '' : 'fieldBehavior', + 1052, + $pb.PbFieldType.PE, + check: $pb.getCheckFunction($pb.PbFieldType.PE), + valueOf: FieldBehavior.valueOf, + enumValues: FieldBehavior.values); static void registerAllExtensions($pb.ExtensionRegistry registry) { registry.add(fieldBehavior); } } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pbenum.dart index d6261cb8..4d31e62a 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/field_behavior.pbenum.dart @@ -22,38 +22,54 @@ import 'package:protobuf/protobuf.dart' as $pb; /// Note: This enum **may** receive new values in the future. class FieldBehavior extends $pb.ProtobufEnum { /// Conventional default for enums. Do not use this. - static const FieldBehavior FIELD_BEHAVIOR_UNSPECIFIED = FieldBehavior._(0, _omitEnumNames ? '' : 'FIELD_BEHAVIOR_UNSPECIFIED'); + static const FieldBehavior FIELD_BEHAVIOR_UNSPECIFIED = + FieldBehavior._(0, _omitEnumNames ? '' : 'FIELD_BEHAVIOR_UNSPECIFIED'); + /// Specifically denotes a field as optional. /// While all fields in protocol buffers are optional, this may be specified /// for emphasis if appropriate. - static const FieldBehavior OPTIONAL = FieldBehavior._(1, _omitEnumNames ? '' : 'OPTIONAL'); + static const FieldBehavior OPTIONAL = + FieldBehavior._(1, _omitEnumNames ? '' : 'OPTIONAL'); + /// Denotes a field as required. /// This indicates that the field **must** be provided as part of the request, /// and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - static const FieldBehavior REQUIRED = FieldBehavior._(2, _omitEnumNames ? '' : 'REQUIRED'); + static const FieldBehavior REQUIRED = + FieldBehavior._(2, _omitEnumNames ? '' : 'REQUIRED'); + /// Denotes a field as output only. /// This indicates that the field is provided in responses, but including the /// field in a request does nothing (the server *must* ignore it and /// *must not* throw an error as a result of the field's presence). - static const FieldBehavior OUTPUT_ONLY = FieldBehavior._(3, _omitEnumNames ? '' : 'OUTPUT_ONLY'); + static const FieldBehavior OUTPUT_ONLY = + FieldBehavior._(3, _omitEnumNames ? '' : 'OUTPUT_ONLY'); + /// Denotes a field as input only. /// This indicates that the field is provided in requests, and the /// corresponding field is not included in output. - static const FieldBehavior INPUT_ONLY = FieldBehavior._(4, _omitEnumNames ? '' : 'INPUT_ONLY'); + static const FieldBehavior INPUT_ONLY = + FieldBehavior._(4, _omitEnumNames ? '' : 'INPUT_ONLY'); + /// Denotes a field as immutable. /// This indicates that the field may be set once in a request to create a /// resource, but may not be changed thereafter. - static const FieldBehavior IMMUTABLE = FieldBehavior._(5, _omitEnumNames ? '' : 'IMMUTABLE'); + static const FieldBehavior IMMUTABLE = + FieldBehavior._(5, _omitEnumNames ? '' : 'IMMUTABLE'); + /// Denotes that a (repeated) field is an unordered list. /// This indicates that the service may provide the elements of the list /// in any arbitrary order, rather than the order the user originally /// provided. Additionally, the list's order may or may not be stable. - static const FieldBehavior UNORDERED_LIST = FieldBehavior._(6, _omitEnumNames ? '' : 'UNORDERED_LIST'); + static const FieldBehavior UNORDERED_LIST = + FieldBehavior._(6, _omitEnumNames ? '' : 'UNORDERED_LIST'); + /// Denotes that this field returns a non-empty default value if not set. /// This indicates that if the user provides the empty value in a request, /// a non-empty value will be returned. The user will not be aware of what /// non-empty value to expect. - static const FieldBehavior NON_EMPTY_DEFAULT = FieldBehavior._(7, _omitEnumNames ? '' : 'NON_EMPTY_DEFAULT'); + static const FieldBehavior NON_EMPTY_DEFAULT = + FieldBehavior._(7, _omitEnumNames ? '' : 'NON_EMPTY_DEFAULT'); + /// Denotes that the field in a resource (a message annotated with /// google.api.resource) is used in the resource name to uniquely identify the /// resource. For AIP-compliant APIs, this should only be applied to the @@ -66,9 +82,10 @@ class FieldBehavior extends $pb.ProtobufEnum { /// depending on the request it is embedded in (e.g. for Create methods name /// is optional and unused, while for Update methods it is required). Instead /// of method-specific annotations, only `IDENTIFIER` is required. - static const FieldBehavior IDENTIFIER = FieldBehavior._(8, _omitEnumNames ? '' : 'IDENTIFIER'); + static const FieldBehavior IDENTIFIER = + FieldBehavior._(8, _omitEnumNames ? '' : 'IDENTIFIER'); - static const $core.List values = [ + static const $core.List values = [ FIELD_BEHAVIOR_UNSPECIFIED, OPTIONAL, REQUIRED, @@ -80,11 +97,13 @@ class FieldBehavior extends $pb.ProtobufEnum { IDENTIFIER, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 8); - static FieldBehavior? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 8); + static FieldBehavior? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const FieldBehavior._(super.value, super.name); } - -const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/http.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/api/http.pb.dart index b24fbbf4..2fa07e33 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/http.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/http.pb.dart @@ -26,25 +26,34 @@ class Http extends $pb.GeneratedMessage { }) { final result = create(); if (rules != null) result.rules.addAll(rules); - if (fullyDecodeReservedExpansion != null) result.fullyDecodeReservedExpansion = fullyDecodeReservedExpansion; + if (fullyDecodeReservedExpansion != null) + result.fullyDecodeReservedExpansion = fullyDecodeReservedExpansion; return result; } Http._(); - factory Http.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Http.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Http', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, subBuilder: HttpRule.create) + factory Http.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Http.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Http', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: HttpRule.create) ..aOB(2, _omitFieldNames ? '' : 'fullyDecodeReservedExpansion') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Http clone() => Http()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Http copyWith(void Function(Http) updates) => super.copyWith((message) => updates(message as Http)) as Http; + Http copyWith(void Function(Http) updates) => + super.copyWith((message) => updates(message as Http)) as Http; @$core.override $pb.BuilderInfo get info_ => _i; @@ -55,7 +64,8 @@ class Http extends $pb.GeneratedMessage { Http createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Http getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Http getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Http? _defaultInstance; /// A list of HTTP configuration rules that apply to individual API methods. @@ -80,15 +90,7 @@ class Http extends $pb.GeneratedMessage { void clearFullyDecodeReservedExpansion() => $_clearField(2); } -enum HttpRule_Pattern { - get, - put, - post, - delete, - patch, - custom, - notSet -} +enum HttpRule_Pattern { get, put, post, delete, patch, custom, notSet } /// gRPC Transcoding /// @@ -376,26 +378,34 @@ class HttpRule extends $pb.GeneratedMessage { if (patch != null) result.patch = patch; if (body != null) result.body = body; if (custom != null) result.custom = custom; - if (additionalBindings != null) result.additionalBindings.addAll(additionalBindings); + if (additionalBindings != null) + result.additionalBindings.addAll(additionalBindings); if (responseBody != null) result.responseBody = responseBody; return result; } HttpRule._(); - factory HttpRule.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory HttpRule.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); + factory HttpRule.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory HttpRule.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, HttpRule_Pattern> _HttpRule_PatternByTag = { - 2 : HttpRule_Pattern.get, - 3 : HttpRule_Pattern.put, - 4 : HttpRule_Pattern.post, - 5 : HttpRule_Pattern.delete, - 6 : HttpRule_Pattern.patch, - 8 : HttpRule_Pattern.custom, - 0 : HttpRule_Pattern.notSet + 2: HttpRule_Pattern.get, + 3: HttpRule_Pattern.put, + 4: HttpRule_Pattern.post, + 5: HttpRule_Pattern.delete, + 6: HttpRule_Pattern.patch, + 8: HttpRule_Pattern.custom, + 0: HttpRule_Pattern.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HttpRule', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'HttpRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..oo(0, [2, 3, 4, 5, 6, 8]) ..aOS(1, _omitFieldNames ? '' : 'selector') ..aOS(2, _omitFieldNames ? '' : 'get') @@ -404,16 +414,19 @@ class HttpRule extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'delete') ..aOS(6, _omitFieldNames ? '' : 'patch') ..aOS(7, _omitFieldNames ? '' : 'body') - ..aOM(8, _omitFieldNames ? '' : 'custom', subBuilder: CustomHttpPattern.create) - ..pc(11, _omitFieldNames ? '' : 'additionalBindings', $pb.PbFieldType.PM, subBuilder: HttpRule.create) + ..aOM(8, _omitFieldNames ? '' : 'custom', + subBuilder: CustomHttpPattern.create) + ..pc( + 11, _omitFieldNames ? '' : 'additionalBindings', $pb.PbFieldType.PM, + subBuilder: HttpRule.create) ..aOS(12, _omitFieldNames ? '' : 'responseBody') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') HttpRule clone() => HttpRule()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - HttpRule copyWith(void Function(HttpRule) updates) => super.copyWith((message) => updates(message as HttpRule)) as HttpRule; + HttpRule copyWith(void Function(HttpRule) updates) => + super.copyWith((message) => updates(message as HttpRule)) as HttpRule; @$core.override $pb.BuilderInfo get info_ => _i; @@ -424,7 +437,8 @@ class HttpRule extends $pb.GeneratedMessage { HttpRule createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static HttpRule getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static HttpRule getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static HttpRule? _defaultInstance; HttpRule_Pattern whichPattern() => _HttpRule_PatternByTag[$_whichOneof(0)]!; @@ -560,19 +574,27 @@ class CustomHttpPattern extends $pb.GeneratedMessage { CustomHttpPattern._(); - factory CustomHttpPattern.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory CustomHttpPattern.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CustomHttpPattern', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + factory CustomHttpPattern.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory CustomHttpPattern.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CustomHttpPattern', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'kind') ..aOS(2, _omitFieldNames ? '' : 'path') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') CustomHttpPattern clone() => CustomHttpPattern()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CustomHttpPattern copyWith(void Function(CustomHttpPattern) updates) => super.copyWith((message) => updates(message as CustomHttpPattern)) as CustomHttpPattern; + CustomHttpPattern copyWith(void Function(CustomHttpPattern) updates) => + super.copyWith((message) => updates(message as CustomHttpPattern)) + as CustomHttpPattern; @$core.override $pb.BuilderInfo get info_ => _i; @@ -581,9 +603,11 @@ class CustomHttpPattern extends $pb.GeneratedMessage { static CustomHttpPattern create() => CustomHttpPattern._(); @$core.override CustomHttpPattern createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static CustomHttpPattern getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static CustomHttpPattern getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static CustomHttpPattern? _defaultInstance; /// The name of this custom HTTP verb. @@ -607,6 +631,7 @@ class CustomHttpPattern extends $pb.GeneratedMessage { void clearPath() => $_clearField(2); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/http.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/api/http.pbenum.dart index 3a2be438..6ed73bf8 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/http.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/http.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pb.dart index 25398e9d..4d97868a 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pb.dart @@ -15,4 +15,3 @@ import 'dart:core' as $core; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; export 'launch_stage.pbenum.dart'; - diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pbenum.dart index 0d44f807..b441be82 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/launch_stage.pbenum.dart @@ -18,17 +18,25 @@ import 'package:protobuf/protobuf.dart' as $pb; /// Launch Stages](https://cloud.google.com/terms/launch-stages). class LaunchStage extends $pb.ProtobufEnum { /// Do not use this default value. - static const LaunchStage LAUNCH_STAGE_UNSPECIFIED = LaunchStage._(0, _omitEnumNames ? '' : 'LAUNCH_STAGE_UNSPECIFIED'); + static const LaunchStage LAUNCH_STAGE_UNSPECIFIED = + LaunchStage._(0, _omitEnumNames ? '' : 'LAUNCH_STAGE_UNSPECIFIED'); + /// The feature is not yet implemented. Users can not use it. - static const LaunchStage UNIMPLEMENTED = LaunchStage._(6, _omitEnumNames ? '' : 'UNIMPLEMENTED'); + static const LaunchStage UNIMPLEMENTED = + LaunchStage._(6, _omitEnumNames ? '' : 'UNIMPLEMENTED'); + /// Prelaunch features are hidden from users and are only visible internally. - static const LaunchStage PRELAUNCH = LaunchStage._(7, _omitEnumNames ? '' : 'PRELAUNCH'); + static const LaunchStage PRELAUNCH = + LaunchStage._(7, _omitEnumNames ? '' : 'PRELAUNCH'); + /// Early Access features are limited to a closed group of testers. To use /// these features, you must sign up in advance and sign a Trusted Tester /// agreement (which includes confidentiality provisions). These features may /// be unstable, changed in backward-incompatible ways, and are not /// guaranteed to be released. - static const LaunchStage EARLY_ACCESS = LaunchStage._(1, _omitEnumNames ? '' : 'EARLY_ACCESS'); + static const LaunchStage EARLY_ACCESS = + LaunchStage._(1, _omitEnumNames ? '' : 'EARLY_ACCESS'); + /// Alpha is a limited availability test for releases before they are cleared /// for widespread use. By Alpha, all significant design issues are resolved /// and we are in the process of verifying functionality. Alpha customers @@ -38,24 +46,30 @@ class LaunchStage extends $pb.ProtobufEnum { /// they will be far enough along that customers can actually use them in /// test environments or for limited-use tests -- just like they would in /// normal production cases. - static const LaunchStage ALPHA = LaunchStage._(2, _omitEnumNames ? '' : 'ALPHA'); + static const LaunchStage ALPHA = + LaunchStage._(2, _omitEnumNames ? '' : 'ALPHA'); + /// Beta is the point at which we are ready to open a release for any /// customer to use. There are no SLA or technical support obligations in a /// Beta release. Products will be complete from a feature perspective, but /// may have some open outstanding issues. Beta releases are suitable for /// limited production use cases. - static const LaunchStage BETA = LaunchStage._(3, _omitEnumNames ? '' : 'BETA'); + static const LaunchStage BETA = + LaunchStage._(3, _omitEnumNames ? '' : 'BETA'); + /// GA features are open to all developers and are considered stable and /// fully qualified for production use. static const LaunchStage GA = LaunchStage._(4, _omitEnumNames ? '' : 'GA'); + /// Deprecated features are scheduled to be shut down and removed. For more /// information, see the "Deprecation Policy" section of our [Terms of /// Service](https://cloud.google.com/terms/) /// and the [Google Cloud Platform Subject to the Deprecation /// Policy](https://cloud.google.com/terms/deprecation) documentation. - static const LaunchStage DEPRECATED = LaunchStage._(5, _omitEnumNames ? '' : 'DEPRECATED'); + static const LaunchStage DEPRECATED = + LaunchStage._(5, _omitEnumNames ? '' : 'DEPRECATED'); - static const $core.List values = [ + static const $core.List values = [ LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, @@ -66,11 +80,13 @@ class LaunchStage extends $pb.ProtobufEnum { DEPRECATED, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 7); - static LaunchStage? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 7); + static LaunchStage? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const LaunchStage._(super.value, super.name); } - -const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/routing.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/api/routing.pb.dart index 1396c08f..c8c7627e 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/routing.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/routing.pb.dart @@ -380,24 +380,35 @@ class RoutingRule extends $pb.GeneratedMessage { $core.Iterable? routingParameters, }) { final result = create(); - if (routingParameters != null) result.routingParameters.addAll(routingParameters); + if (routingParameters != null) + result.routingParameters.addAll(routingParameters); return result; } RoutingRule._(); - factory RoutingRule.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RoutingRule.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); + factory RoutingRule.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RoutingRule.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RoutingRule', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) - ..pc(2, _omitFieldNames ? '' : 'routingParameters', $pb.PbFieldType.PM, subBuilder: RoutingParameter.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RoutingRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'routingParameters', $pb.PbFieldType.PM, + subBuilder: RoutingParameter.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RoutingRule clone() => RoutingRule()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RoutingRule copyWith(void Function(RoutingRule) updates) => super.copyWith((message) => updates(message as RoutingRule)) as RoutingRule; + RoutingRule copyWith(void Function(RoutingRule) updates) => + super.copyWith((message) => updates(message as RoutingRule)) + as RoutingRule; @$core.override $pb.BuilderInfo get info_ => _i; @@ -408,7 +419,8 @@ class RoutingRule extends $pb.GeneratedMessage { RoutingRule createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RoutingRule getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RoutingRule getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RoutingRule? _defaultInstance; /// A collection of Routing Parameter specifications. @@ -435,19 +447,27 @@ class RoutingParameter extends $pb.GeneratedMessage { RoutingParameter._(); - factory RoutingParameter.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RoutingParameter.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); + factory RoutingParameter.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RoutingParameter.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RoutingParameter', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RoutingParameter', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'field') ..aOS(2, _omitFieldNames ? '' : 'pathTemplate') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RoutingParameter clone() => RoutingParameter()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RoutingParameter copyWith(void Function(RoutingParameter) updates) => super.copyWith((message) => updates(message as RoutingParameter)) as RoutingParameter; + RoutingParameter copyWith(void Function(RoutingParameter) updates) => + super.copyWith((message) => updates(message as RoutingParameter)) + as RoutingParameter; @$core.override $pb.BuilderInfo get info_ => _i; @@ -456,9 +476,11 @@ class RoutingParameter extends $pb.GeneratedMessage { static RoutingParameter create() => RoutingParameter._(); @$core.override RoutingParameter createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RoutingParameter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RoutingParameter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RoutingParameter? _defaultInstance; /// A request field to extract the header key-value pair from. @@ -536,12 +558,19 @@ class RoutingParameter extends $pb.GeneratedMessage { } class Routing { - static final routing = $pb.Extension(_omitMessageNames ? '' : 'google.protobuf.MethodOptions', _omitFieldNames ? '' : 'routing', 72295729, $pb.PbFieldType.OM, defaultOrMaker: RoutingRule.getDefault, subBuilder: RoutingRule.create); + static final routing = $pb.Extension( + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'routing', + 72295729, + $pb.PbFieldType.OM, + defaultOrMaker: RoutingRule.getDefault, + subBuilder: RoutingRule.create); static void registerAllExtensions($pb.ExtensionRegistry registry) { registry.add(routing); } } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/api/routing.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/api/routing.pbenum.dart index 67330e61..765f1e30 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/api/routing.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/api/routing.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pb.dart index 6dd98c36..80ba28a9 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pb.dart @@ -28,24 +28,40 @@ class AggregationResult extends $pb.GeneratedMessage { $core.Iterable<$core.MapEntry<$core.String, $0.Value>>? aggregateFields, }) { final result = create(); - if (aggregateFields != null) result.aggregateFields.addEntries(aggregateFields); + if (aggregateFields != null) + result.aggregateFields.addEntries(aggregateFields); return result; } AggregationResult._(); - factory AggregationResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory AggregationResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AggregationResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..m<$core.String, $0.Value>(2, _omitFieldNames ? '' : 'aggregateFields', entryClassName: 'AggregationResult.AggregateFieldsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: $0.Value.create, valueDefaultOrMaker: $0.Value.getDefault, packageName: const $pb.PackageName('google.firestore.v1')) - ..hasRequiredFields = false - ; + factory AggregationResult.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory AggregationResult.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationResult', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..m<$core.String, $0.Value>(2, _omitFieldNames ? '' : 'aggregateFields', + entryClassName: 'AggregationResult.AggregateFieldsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: $0.Value.create, + valueDefaultOrMaker: $0.Value.getDefault, + packageName: const $pb.PackageName('google.firestore.v1')) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') AggregationResult clone() => AggregationResult()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - AggregationResult copyWith(void Function(AggregationResult) updates) => super.copyWith((message) => updates(message as AggregationResult)) as AggregationResult; + AggregationResult copyWith(void Function(AggregationResult) updates) => + super.copyWith((message) => updates(message as AggregationResult)) + as AggregationResult; @$core.override $pb.BuilderInfo get info_ => _i; @@ -54,9 +70,11 @@ class AggregationResult extends $pb.GeneratedMessage { static AggregationResult create() => AggregationResult._(); @$core.override AggregationResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static AggregationResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AggregationResult getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static AggregationResult? _defaultInstance; /// The result of the aggregation functions, ex: `COUNT(*) AS total_docs`. @@ -69,6 +87,7 @@ class AggregationResult extends $pb.GeneratedMessage { $pb.PbMap<$core.String, $0.Value> get aggregateFields => $_getMap(0); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pbenum.dart index fd54cb57..ad0624cc 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/aggregation_result.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pb.dart index 9fbaf38b..529ab646 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pb.dart @@ -44,19 +44,29 @@ class BitSequence extends $pb.GeneratedMessage { BitSequence._(); - factory BitSequence.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BitSequence.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BitSequence', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'bitmap', $pb.PbFieldType.OY) + factory BitSequence.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BitSequence.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BitSequence', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'bitmap', $pb.PbFieldType.OY) ..a<$core.int>(2, _omitFieldNames ? '' : 'padding', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BitSequence clone() => BitSequence()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BitSequence copyWith(void Function(BitSequence) updates) => super.copyWith((message) => updates(message as BitSequence)) as BitSequence; + BitSequence copyWith(void Function(BitSequence) updates) => + super.copyWith((message) => updates(message as BitSequence)) + as BitSequence; @$core.override $pb.BuilderInfo get info_ => _i; @@ -67,7 +77,8 @@ class BitSequence extends $pb.GeneratedMessage { BitSequence createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BitSequence getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BitSequence getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BitSequence? _defaultInstance; /// The bytes that encode the bit sequence. @@ -120,19 +131,29 @@ class BloomFilter extends $pb.GeneratedMessage { BloomFilter._(); - factory BloomFilter.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BloomFilter.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BloomFilter', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'bits', subBuilder: BitSequence.create) + factory BloomFilter.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BloomFilter.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BloomFilter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'bits', + subBuilder: BitSequence.create) ..a<$core.int>(2, _omitFieldNames ? '' : 'hashCount', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BloomFilter clone() => BloomFilter()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BloomFilter copyWith(void Function(BloomFilter) updates) => super.copyWith((message) => updates(message as BloomFilter)) as BloomFilter; + BloomFilter copyWith(void Function(BloomFilter) updates) => + super.copyWith((message) => updates(message as BloomFilter)) + as BloomFilter; @$core.override $pb.BuilderInfo get info_ => _i; @@ -143,7 +164,8 @@ class BloomFilter extends $pb.GeneratedMessage { BloomFilter createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BloomFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BloomFilter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BloomFilter? _defaultInstance; /// The bloom filter data. @@ -169,6 +191,7 @@ class BloomFilter extends $pb.GeneratedMessage { void clearHashCount() => $_clearField(2); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pbenum.dart index 3a4e4c23..bd5653dd 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/bloom_filter.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pb.dart index 62d341d7..d7fdcfa5 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pb.dart @@ -35,18 +35,27 @@ class DocumentMask extends $pb.GeneratedMessage { DocumentMask._(); - factory DocumentMask.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DocumentMask.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DocumentMask', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory DocumentMask.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DocumentMask.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DocumentMask', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'fieldPaths') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DocumentMask clone() => DocumentMask()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DocumentMask copyWith(void Function(DocumentMask) updates) => super.copyWith((message) => updates(message as DocumentMask)) as DocumentMask; + DocumentMask copyWith(void Function(DocumentMask) updates) => + super.copyWith((message) => updates(message as DocumentMask)) + as DocumentMask; @$core.override $pb.BuilderInfo get info_ => _i; @@ -55,9 +64,11 @@ class DocumentMask extends $pb.GeneratedMessage { static DocumentMask create() => DocumentMask._(); @$core.override DocumentMask createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DocumentMask getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DocumentMask getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DocumentMask? _defaultInstance; /// The list of field paths in the mask. See @@ -67,11 +78,7 @@ class DocumentMask extends $pb.GeneratedMessage { $pb.PbList<$core.String> get fieldPaths => $_getList(0); } -enum Precondition_ConditionType { - exists, - updateTime, - notSet -} +enum Precondition_ConditionType { exists, updateTime, notSet } /// A precondition on a document, used for conditional operations. class Precondition extends $pb.GeneratedMessage { @@ -87,25 +94,36 @@ class Precondition extends $pb.GeneratedMessage { Precondition._(); - factory Precondition.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Precondition.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, Precondition_ConditionType> _Precondition_ConditionTypeByTag = { - 1 : Precondition_ConditionType.exists, - 2 : Precondition_ConditionType.updateTime, - 0 : Precondition_ConditionType.notSet + factory Precondition.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Precondition.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, Precondition_ConditionType> + _Precondition_ConditionTypeByTag = { + 1: Precondition_ConditionType.exists, + 2: Precondition_ConditionType.updateTime, + 0: Precondition_ConditionType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Precondition', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Precondition', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [1, 2]) ..aOB(1, _omitFieldNames ? '' : 'exists') - ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'updateTime', subBuilder: $0.Timestamp.create) - ..hasRequiredFields = false - ; + ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'updateTime', + subBuilder: $0.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Precondition clone() => Precondition()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Precondition copyWith(void Function(Precondition) updates) => super.copyWith((message) => updates(message as Precondition)) as Precondition; + Precondition copyWith(void Function(Precondition) updates) => + super.copyWith((message) => updates(message as Precondition)) + as Precondition; @$core.override $pb.BuilderInfo get info_ => _i; @@ -114,12 +132,15 @@ class Precondition extends $pb.GeneratedMessage { static Precondition create() => Precondition._(); @$core.override Precondition createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Precondition getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Precondition getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Precondition? _defaultInstance; - Precondition_ConditionType whichConditionType() => _Precondition_ConditionTypeByTag[$_whichOneof(0)]!; + Precondition_ConditionType whichConditionType() => + _Precondition_ConditionTypeByTag[$_whichOneof(0)]!; void clearConditionType() => $_clearField($_whichOneof(0)); /// When set to `true`, the target document must exist. @@ -162,29 +183,45 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { TransactionOptions_ReadWrite._(); - factory TransactionOptions_ReadWrite.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory TransactionOptions_ReadWrite.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TransactionOptions.ReadWrite', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'retryTransaction', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + factory TransactionOptions_ReadWrite.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory TransactionOptions_ReadWrite.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions.ReadWrite', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'retryTransaction', $pb.PbFieldType.OY) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TransactionOptions_ReadWrite clone() => TransactionOptions_ReadWrite()..mergeFromMessage(this); + TransactionOptions_ReadWrite clone() => + TransactionOptions_ReadWrite()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TransactionOptions_ReadWrite copyWith(void Function(TransactionOptions_ReadWrite) updates) => super.copyWith((message) => updates(message as TransactionOptions_ReadWrite)) as TransactionOptions_ReadWrite; + TransactionOptions_ReadWrite copyWith( + void Function(TransactionOptions_ReadWrite) updates) => + super.copyWith( + (message) => updates(message as TransactionOptions_ReadWrite)) + as TransactionOptions_ReadWrite; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static TransactionOptions_ReadWrite create() => TransactionOptions_ReadWrite._(); + static TransactionOptions_ReadWrite create() => + TransactionOptions_ReadWrite._(); @$core.override TransactionOptions_ReadWrite createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TransactionOptions_ReadWrite getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TransactionOptions_ReadWrite getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TransactionOptions_ReadWrite? _defaultInstance; /// An optional transaction to retry. @@ -198,10 +235,7 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { void clearRetryTransaction() => $_clearField(1); } -enum TransactionOptions_ReadOnly_ConsistencySelector { - readTime, - notSet -} +enum TransactionOptions_ReadOnly_ConsistencySelector { readTime, notSet } /// Options for a transaction that can only be used to read documents. class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { @@ -215,37 +249,56 @@ class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { TransactionOptions_ReadOnly._(); - factory TransactionOptions_ReadOnly.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory TransactionOptions_ReadOnly.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, TransactionOptions_ReadOnly_ConsistencySelector> _TransactionOptions_ReadOnly_ConsistencySelectorByTag = { - 2 : TransactionOptions_ReadOnly_ConsistencySelector.readTime, - 0 : TransactionOptions_ReadOnly_ConsistencySelector.notSet + factory TransactionOptions_ReadOnly.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory TransactionOptions_ReadOnly.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core + .Map<$core.int, TransactionOptions_ReadOnly_ConsistencySelector> + _TransactionOptions_ReadOnly_ConsistencySelectorByTag = { + 2: TransactionOptions_ReadOnly_ConsistencySelector.readTime, + 0: TransactionOptions_ReadOnly_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TransactionOptions.ReadOnly', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions.ReadOnly', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2]) - ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'readTime', subBuilder: $0.Timestamp.create) - ..hasRequiredFields = false - ; + ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'readTime', + subBuilder: $0.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TransactionOptions_ReadOnly clone() => TransactionOptions_ReadOnly()..mergeFromMessage(this); + TransactionOptions_ReadOnly clone() => + TransactionOptions_ReadOnly()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TransactionOptions_ReadOnly copyWith(void Function(TransactionOptions_ReadOnly) updates) => super.copyWith((message) => updates(message as TransactionOptions_ReadOnly)) as TransactionOptions_ReadOnly; + TransactionOptions_ReadOnly copyWith( + void Function(TransactionOptions_ReadOnly) updates) => + super.copyWith( + (message) => updates(message as TransactionOptions_ReadOnly)) + as TransactionOptions_ReadOnly; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static TransactionOptions_ReadOnly create() => TransactionOptions_ReadOnly._(); + static TransactionOptions_ReadOnly create() => + TransactionOptions_ReadOnly._(); @$core.override TransactionOptions_ReadOnly createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TransactionOptions_ReadOnly getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TransactionOptions_ReadOnly getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TransactionOptions_ReadOnly? _defaultInstance; - TransactionOptions_ReadOnly_ConsistencySelector whichConsistencySelector() => _TransactionOptions_ReadOnly_ConsistencySelectorByTag[$_whichOneof(0)]!; + TransactionOptions_ReadOnly_ConsistencySelector whichConsistencySelector() => + _TransactionOptions_ReadOnly_ConsistencySelectorByTag[$_whichOneof(0)]!; void clearConsistencySelector() => $_clearField($_whichOneof(0)); /// Reads documents at the given time. @@ -265,11 +318,7 @@ class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { $0.Timestamp ensureReadTime() => $_ensure(0); } -enum TransactionOptions_Mode { - readOnly, - readWrite, - notSet -} +enum TransactionOptions_Mode { readOnly, readWrite, notSet } /// Options for creating a new transaction. class TransactionOptions extends $pb.GeneratedMessage { @@ -285,25 +334,37 @@ class TransactionOptions extends $pb.GeneratedMessage { TransactionOptions._(); - factory TransactionOptions.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory TransactionOptions.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, TransactionOptions_Mode> _TransactionOptions_ModeByTag = { - 2 : TransactionOptions_Mode.readOnly, - 3 : TransactionOptions_Mode.readWrite, - 0 : TransactionOptions_Mode.notSet + factory TransactionOptions.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory TransactionOptions.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, TransactionOptions_Mode> + _TransactionOptions_ModeByTag = { + 2: TransactionOptions_Mode.readOnly, + 3: TransactionOptions_Mode.readWrite, + 0: TransactionOptions_Mode.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TransactionOptions', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2, 3]) - ..aOM(2, _omitFieldNames ? '' : 'readOnly', subBuilder: TransactionOptions_ReadOnly.create) - ..aOM(3, _omitFieldNames ? '' : 'readWrite', subBuilder: TransactionOptions_ReadWrite.create) - ..hasRequiredFields = false - ; + ..aOM(2, _omitFieldNames ? '' : 'readOnly', + subBuilder: TransactionOptions_ReadOnly.create) + ..aOM(3, _omitFieldNames ? '' : 'readWrite', + subBuilder: TransactionOptions_ReadWrite.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TransactionOptions clone() => TransactionOptions()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TransactionOptions copyWith(void Function(TransactionOptions) updates) => super.copyWith((message) => updates(message as TransactionOptions)) as TransactionOptions; + TransactionOptions copyWith(void Function(TransactionOptions) updates) => + super.copyWith((message) => updates(message as TransactionOptions)) + as TransactionOptions; @$core.override $pb.BuilderInfo get info_ => _i; @@ -312,12 +373,15 @@ class TransactionOptions extends $pb.GeneratedMessage { static TransactionOptions create() => TransactionOptions._(); @$core.override TransactionOptions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TransactionOptions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TransactionOptions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TransactionOptions? _defaultInstance; - TransactionOptions_Mode whichMode() => _TransactionOptions_ModeByTag[$_whichOneof(0)]!; + TransactionOptions_Mode whichMode() => + _TransactionOptions_ModeByTag[$_whichOneof(0)]!; void clearMode() => $_clearField($_whichOneof(0)); /// The transaction can only be used for read operations. @@ -345,6 +409,7 @@ class TransactionOptions extends $pb.GeneratedMessage { TransactionOptions_ReadWrite ensureReadWrite() => $_ensure(1); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pbenum.dart index 3a9ed0f7..53a5b381 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/common.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pb.dart index d44d7c1d..67165c2e 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pb.dart @@ -41,21 +41,37 @@ class Document extends $pb.GeneratedMessage { Document._(); - factory Document.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Document.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Document', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory Document.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Document.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Document', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') - ..m<$core.String, Value>(2, _omitFieldNames ? '' : 'fields', entryClassName: 'Document.FieldsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: Value.create, valueDefaultOrMaker: Value.getDefault, packageName: const $pb.PackageName('google.firestore.v1')) - ..aOM<$0.Timestamp>(3, _omitFieldNames ? '' : 'createTime', subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>(4, _omitFieldNames ? '' : 'updateTime', subBuilder: $0.Timestamp.create) - ..hasRequiredFields = false - ; + ..m<$core.String, Value>(2, _omitFieldNames ? '' : 'fields', + entryClassName: 'Document.FieldsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Value.create, + valueDefaultOrMaker: Value.getDefault, + packageName: const $pb.PackageName('google.firestore.v1')) + ..aOM<$0.Timestamp>(3, _omitFieldNames ? '' : 'createTime', + subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(4, _omitFieldNames ? '' : 'updateTime', + subBuilder: $0.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Document clone() => Document()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Document copyWith(void Function(Document) updates) => super.copyWith((message) => updates(message as Document)) as Document; + Document copyWith(void Function(Document) updates) => + super.copyWith((message) => updates(message as Document)) as Document; @$core.override $pb.BuilderInfo get info_ => _i; @@ -66,7 +82,8 @@ class Document extends $pb.GeneratedMessage { Document createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Document getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Document getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Document? _defaultInstance; /// The resource name of the document, for example @@ -141,17 +158,17 @@ class Document extends $pb.GeneratedMessage { } enum Value_ValueType { - booleanValue, - integerValue, - doubleValue, - referenceValue, - mapValue, - geoPointValue, - arrayValue, - timestampValue, - nullValue, - stringValue, - bytesValue, + booleanValue, + integerValue, + doubleValue, + referenceValue, + mapValue, + geoPointValue, + arrayValue, + timestampValue, + nullValue, + stringValue, + bytesValue, notSet } @@ -187,43 +204,61 @@ class Value extends $pb.GeneratedMessage { Value._(); - factory Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); + factory Value.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Value.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, Value_ValueType> _Value_ValueTypeByTag = { - 1 : Value_ValueType.booleanValue, - 2 : Value_ValueType.integerValue, - 3 : Value_ValueType.doubleValue, - 5 : Value_ValueType.referenceValue, - 6 : Value_ValueType.mapValue, - 8 : Value_ValueType.geoPointValue, - 9 : Value_ValueType.arrayValue, - 10 : Value_ValueType.timestampValue, - 11 : Value_ValueType.nullValue, - 17 : Value_ValueType.stringValue, - 18 : Value_ValueType.bytesValue, - 0 : Value_ValueType.notSet + 1: Value_ValueType.booleanValue, + 2: Value_ValueType.integerValue, + 3: Value_ValueType.doubleValue, + 5: Value_ValueType.referenceValue, + 6: Value_ValueType.mapValue, + 8: Value_ValueType.geoPointValue, + 9: Value_ValueType.arrayValue, + 10: Value_ValueType.timestampValue, + 11: Value_ValueType.nullValue, + 17: Value_ValueType.stringValue, + 18: Value_ValueType.bytesValue, + 0: Value_ValueType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [1, 2, 3, 5, 6, 8, 9, 10, 11, 17, 18]) ..aOB(1, _omitFieldNames ? '' : 'booleanValue') ..aInt64(2, _omitFieldNames ? '' : 'integerValue') - ..a<$core.double>(3, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..a<$core.double>( + 3, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) ..aOS(5, _omitFieldNames ? '' : 'referenceValue') - ..aOM(6, _omitFieldNames ? '' : 'mapValue', subBuilder: MapValue.create) - ..aOM<$1.LatLng>(8, _omitFieldNames ? '' : 'geoPointValue', subBuilder: $1.LatLng.create) - ..aOM(9, _omitFieldNames ? '' : 'arrayValue', subBuilder: ArrayValue.create) - ..aOM<$0.Timestamp>(10, _omitFieldNames ? '' : 'timestampValue', subBuilder: $0.Timestamp.create) - ..e<$2.NullValue>(11, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, defaultOrMaker: $2.NullValue.NULL_VALUE, valueOf: $2.NullValue.valueOf, enumValues: $2.NullValue.values) + ..aOM(6, _omitFieldNames ? '' : 'mapValue', + subBuilder: MapValue.create) + ..aOM<$1.LatLng>(8, _omitFieldNames ? '' : 'geoPointValue', + subBuilder: $1.LatLng.create) + ..aOM(9, _omitFieldNames ? '' : 'arrayValue', + subBuilder: ArrayValue.create) + ..aOM<$0.Timestamp>(10, _omitFieldNames ? '' : 'timestampValue', + subBuilder: $0.Timestamp.create) + ..e<$2.NullValue>( + 11, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: $2.NullValue.NULL_VALUE, + valueOf: $2.NullValue.valueOf, + enumValues: $2.NullValue.values) ..aOS(17, _omitFieldNames ? '' : 'stringValue') - ..a<$core.List<$core.int>>(18, _omitFieldNames ? '' : 'bytesValue', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 18, _omitFieldNames ? '' : 'bytesValue', $pb.PbFieldType.OY) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Value clone() => Value()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Value copyWith(void Function(Value) updates) => super.copyWith((message) => updates(message as Value)) as Value; + Value copyWith(void Function(Value) updates) => + super.copyWith((message) => updates(message as Value)) as Value; @$core.override $pb.BuilderInfo get info_ => _i; @@ -234,7 +269,8 @@ class Value extends $pb.GeneratedMessage { Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Value getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Value? _defaultInstance; Value_ValueType whichValueType() => _Value_ValueTypeByTag[$_whichOneof(0)]!; @@ -385,18 +421,27 @@ class ArrayValue extends $pb.GeneratedMessage { ArrayValue._(); - factory ArrayValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ArrayValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ArrayValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, subBuilder: Value.create) - ..hasRequiredFields = false - ; + factory ArrayValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ArrayValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ArrayValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ArrayValue clone() => ArrayValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ArrayValue copyWith(void Function(ArrayValue) updates) => super.copyWith((message) => updates(message as ArrayValue)) as ArrayValue; + ArrayValue copyWith(void Function(ArrayValue) updates) => + super.copyWith((message) => updates(message as ArrayValue)) as ArrayValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -407,7 +452,8 @@ class ArrayValue extends $pb.GeneratedMessage { ArrayValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ArrayValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ArrayValue getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ArrayValue? _defaultInstance; /// Values in the array. @@ -427,18 +473,32 @@ class MapValue extends $pb.GeneratedMessage { MapValue._(); - factory MapValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory MapValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MapValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', entryClassName: 'MapValue.FieldsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: Value.create, valueDefaultOrMaker: Value.getDefault, packageName: const $pb.PackageName('google.firestore.v1')) - ..hasRequiredFields = false - ; + factory MapValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory MapValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MapValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', + entryClassName: 'MapValue.FieldsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Value.create, + valueDefaultOrMaker: Value.getDefault, + packageName: const $pb.PackageName('google.firestore.v1')) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') MapValue clone() => MapValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MapValue copyWith(void Function(MapValue) updates) => super.copyWith((message) => updates(message as MapValue)) as MapValue; + MapValue copyWith(void Function(MapValue) updates) => + super.copyWith((message) => updates(message as MapValue)) as MapValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -449,7 +509,8 @@ class MapValue extends $pb.GeneratedMessage { MapValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static MapValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MapValue getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static MapValue? _defaultInstance; /// The map's fields. @@ -462,6 +523,7 @@ class MapValue extends $pb.GeneratedMessage { $pb.PbMap<$core.String, Value> get fields => $_getMap(0); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pbenum.dart index c2f97738..8c6991d4 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/document.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pb.dart index 359a26e3..4c975805 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pb.dart @@ -30,11 +30,7 @@ export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; export 'firestore.pbenum.dart'; -enum GetDocumentRequest_ConsistencySelector { - transaction, - readTime, - notSet -} +enum GetDocumentRequest_ConsistencySelector { transaction, readTime, notSet } /// The request for /// [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument]. @@ -55,27 +51,40 @@ class GetDocumentRequest extends $pb.GeneratedMessage { GetDocumentRequest._(); - factory GetDocumentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory GetDocumentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, GetDocumentRequest_ConsistencySelector> _GetDocumentRequest_ConsistencySelectorByTag = { - 3 : GetDocumentRequest_ConsistencySelector.transaction, - 5 : GetDocumentRequest_ConsistencySelector.readTime, - 0 : GetDocumentRequest_ConsistencySelector.notSet + factory GetDocumentRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory GetDocumentRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, GetDocumentRequest_ConsistencySelector> + _GetDocumentRequest_ConsistencySelectorByTag = { + 3: GetDocumentRequest_ConsistencySelector.transaction, + 5: GetDocumentRequest_ConsistencySelector.readTime, + 0: GetDocumentRequest_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetDocumentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetDocumentRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [3, 5]) ..aOS(1, _omitFieldNames ? '' : 'name') - ..aOM<$3.DocumentMask>(2, _omitFieldNames ? '' : 'mask', subBuilder: $3.DocumentMask.create) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$4.Timestamp>(5, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + ..aOM<$3.DocumentMask>(2, _omitFieldNames ? '' : 'mask', + subBuilder: $3.DocumentMask.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$4.Timestamp>(5, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GetDocumentRequest clone() => GetDocumentRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - GetDocumentRequest copyWith(void Function(GetDocumentRequest) updates) => super.copyWith((message) => updates(message as GetDocumentRequest)) as GetDocumentRequest; + GetDocumentRequest copyWith(void Function(GetDocumentRequest) updates) => + super.copyWith((message) => updates(message as GetDocumentRequest)) + as GetDocumentRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -84,12 +93,15 @@ class GetDocumentRequest extends $pb.GeneratedMessage { static GetDocumentRequest create() => GetDocumentRequest._(); @$core.override GetDocumentRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetDocumentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetDocumentRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetDocumentRequest? _defaultInstance; - GetDocumentRequest_ConsistencySelector whichConsistencySelector() => _GetDocumentRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; + GetDocumentRequest_ConsistencySelector whichConsistencySelector() => + _GetDocumentRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; void clearConsistencySelector() => $_clearField($_whichOneof(0)); /// Required. The resource name of the Document to get. In the format: @@ -145,11 +157,7 @@ class GetDocumentRequest extends $pb.GeneratedMessage { $4.Timestamp ensureReadTime() => $_ensure(3); } -enum ListDocumentsRequest_ConsistencySelector { - transaction, - readTime, - notSet -} +enum ListDocumentsRequest_ConsistencySelector { transaction, readTime, notSet } /// The request for /// [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments]. @@ -180,32 +188,46 @@ class ListDocumentsRequest extends $pb.GeneratedMessage { ListDocumentsRequest._(); - factory ListDocumentsRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ListDocumentsRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, ListDocumentsRequest_ConsistencySelector> _ListDocumentsRequest_ConsistencySelectorByTag = { - 8 : ListDocumentsRequest_ConsistencySelector.transaction, - 10 : ListDocumentsRequest_ConsistencySelector.readTime, - 0 : ListDocumentsRequest_ConsistencySelector.notSet + factory ListDocumentsRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ListDocumentsRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, ListDocumentsRequest_ConsistencySelector> + _ListDocumentsRequest_ConsistencySelectorByTag = { + 8: ListDocumentsRequest_ConsistencySelector.transaction, + 10: ListDocumentsRequest_ConsistencySelector.readTime, + 0: ListDocumentsRequest_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListDocumentsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListDocumentsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [8, 10]) ..aOS(1, _omitFieldNames ? '' : 'parent') ..aOS(2, _omitFieldNames ? '' : 'collectionId') ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) ..aOS(4, _omitFieldNames ? '' : 'pageToken') ..aOS(6, _omitFieldNames ? '' : 'orderBy') - ..aOM<$3.DocumentMask>(7, _omitFieldNames ? '' : 'mask', subBuilder: $3.DocumentMask.create) - ..a<$core.List<$core.int>>(8, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$4.Timestamp>(10, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) + ..aOM<$3.DocumentMask>(7, _omitFieldNames ? '' : 'mask', + subBuilder: $3.DocumentMask.create) + ..a<$core.List<$core.int>>( + 8, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$4.Timestamp>(10, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) ..aOB(12, _omitFieldNames ? '' : 'showMissing') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListDocumentsRequest clone() => ListDocumentsRequest()..mergeFromMessage(this); + ListDocumentsRequest clone() => + ListDocumentsRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListDocumentsRequest copyWith(void Function(ListDocumentsRequest) updates) => super.copyWith((message) => updates(message as ListDocumentsRequest)) as ListDocumentsRequest; + ListDocumentsRequest copyWith(void Function(ListDocumentsRequest) updates) => + super.copyWith((message) => updates(message as ListDocumentsRequest)) + as ListDocumentsRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -214,12 +236,15 @@ class ListDocumentsRequest extends $pb.GeneratedMessage { static ListDocumentsRequest create() => ListDocumentsRequest._(); @$core.override ListDocumentsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListDocumentsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListDocumentsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ListDocumentsRequest? _defaultInstance; - ListDocumentsRequest_ConsistencySelector whichConsistencySelector() => _ListDocumentsRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; + ListDocumentsRequest_ConsistencySelector whichConsistencySelector() => + _ListDocumentsRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; void clearConsistencySelector() => $_clearField($_whichOneof(0)); /// Required. The parent resource name. In the format: @@ -370,19 +395,31 @@ class ListDocumentsResponse extends $pb.GeneratedMessage { ListDocumentsResponse._(); - factory ListDocumentsResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ListDocumentsResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListDocumentsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc<$1.Document>(1, _omitFieldNames ? '' : 'documents', $pb.PbFieldType.PM, subBuilder: $1.Document.create) + factory ListDocumentsResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ListDocumentsResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListDocumentsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc<$1.Document>(1, _omitFieldNames ? '' : 'documents', $pb.PbFieldType.PM, + subBuilder: $1.Document.create) ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListDocumentsResponse clone() => ListDocumentsResponse()..mergeFromMessage(this); + ListDocumentsResponse clone() => + ListDocumentsResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListDocumentsResponse copyWith(void Function(ListDocumentsResponse) updates) => super.copyWith((message) => updates(message as ListDocumentsResponse)) as ListDocumentsResponse; + ListDocumentsResponse copyWith( + void Function(ListDocumentsResponse) updates) => + super.copyWith((message) => updates(message as ListDocumentsResponse)) + as ListDocumentsResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -391,9 +428,11 @@ class ListDocumentsResponse extends $pb.GeneratedMessage { static ListDocumentsResponse create() => ListDocumentsResponse._(); @$core.override ListDocumentsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListDocumentsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListDocumentsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ListDocumentsResponse? _defaultInstance; /// The Documents found. @@ -434,22 +473,35 @@ class CreateDocumentRequest extends $pb.GeneratedMessage { CreateDocumentRequest._(); - factory CreateDocumentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory CreateDocumentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateDocumentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory CreateDocumentRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory CreateDocumentRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateDocumentRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'parent') ..aOS(2, _omitFieldNames ? '' : 'collectionId') ..aOS(3, _omitFieldNames ? '' : 'documentId') - ..aOM<$1.Document>(4, _omitFieldNames ? '' : 'document', subBuilder: $1.Document.create) - ..aOM<$3.DocumentMask>(5, _omitFieldNames ? '' : 'mask', subBuilder: $3.DocumentMask.create) - ..hasRequiredFields = false - ; + ..aOM<$1.Document>(4, _omitFieldNames ? '' : 'document', + subBuilder: $1.Document.create) + ..aOM<$3.DocumentMask>(5, _omitFieldNames ? '' : 'mask', + subBuilder: $3.DocumentMask.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CreateDocumentRequest clone() => CreateDocumentRequest()..mergeFromMessage(this); + CreateDocumentRequest clone() => + CreateDocumentRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CreateDocumentRequest copyWith(void Function(CreateDocumentRequest) updates) => super.copyWith((message) => updates(message as CreateDocumentRequest)) as CreateDocumentRequest; + CreateDocumentRequest copyWith( + void Function(CreateDocumentRequest) updates) => + super.copyWith((message) => updates(message as CreateDocumentRequest)) + as CreateDocumentRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -458,9 +510,11 @@ class CreateDocumentRequest extends $pb.GeneratedMessage { static CreateDocumentRequest create() => CreateDocumentRequest._(); @$core.override CreateDocumentRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static CreateDocumentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static CreateDocumentRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static CreateDocumentRequest? _defaultInstance; /// Required. The parent resource. For example: @@ -545,21 +599,36 @@ class UpdateDocumentRequest extends $pb.GeneratedMessage { UpdateDocumentRequest._(); - factory UpdateDocumentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory UpdateDocumentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateDocumentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM<$1.Document>(1, _omitFieldNames ? '' : 'document', subBuilder: $1.Document.create) - ..aOM<$3.DocumentMask>(2, _omitFieldNames ? '' : 'updateMask', subBuilder: $3.DocumentMask.create) - ..aOM<$3.DocumentMask>(3, _omitFieldNames ? '' : 'mask', subBuilder: $3.DocumentMask.create) - ..aOM<$3.Precondition>(4, _omitFieldNames ? '' : 'currentDocument', subBuilder: $3.Precondition.create) - ..hasRequiredFields = false - ; + factory UpdateDocumentRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UpdateDocumentRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateDocumentRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM<$1.Document>(1, _omitFieldNames ? '' : 'document', + subBuilder: $1.Document.create) + ..aOM<$3.DocumentMask>(2, _omitFieldNames ? '' : 'updateMask', + subBuilder: $3.DocumentMask.create) + ..aOM<$3.DocumentMask>(3, _omitFieldNames ? '' : 'mask', + subBuilder: $3.DocumentMask.create) + ..aOM<$3.Precondition>(4, _omitFieldNames ? '' : 'currentDocument', + subBuilder: $3.Precondition.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateDocumentRequest clone() => UpdateDocumentRequest()..mergeFromMessage(this); + UpdateDocumentRequest clone() => + UpdateDocumentRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateDocumentRequest copyWith(void Function(UpdateDocumentRequest) updates) => super.copyWith((message) => updates(message as UpdateDocumentRequest)) as UpdateDocumentRequest; + UpdateDocumentRequest copyWith( + void Function(UpdateDocumentRequest) updates) => + super.copyWith((message) => updates(message as UpdateDocumentRequest)) + as UpdateDocumentRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -568,9 +637,11 @@ class UpdateDocumentRequest extends $pb.GeneratedMessage { static UpdateDocumentRequest create() => UpdateDocumentRequest._(); @$core.override UpdateDocumentRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateDocumentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateDocumentRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UpdateDocumentRequest? _defaultInstance; /// Required. The updated document. @@ -648,19 +719,31 @@ class DeleteDocumentRequest extends $pb.GeneratedMessage { DeleteDocumentRequest._(); - factory DeleteDocumentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DeleteDocumentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteDocumentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory DeleteDocumentRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DeleteDocumentRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteDocumentRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') - ..aOM<$3.Precondition>(2, _omitFieldNames ? '' : 'currentDocument', subBuilder: $3.Precondition.create) - ..hasRequiredFields = false - ; + ..aOM<$3.Precondition>(2, _omitFieldNames ? '' : 'currentDocument', + subBuilder: $3.Precondition.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DeleteDocumentRequest clone() => DeleteDocumentRequest()..mergeFromMessage(this); + DeleteDocumentRequest clone() => + DeleteDocumentRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DeleteDocumentRequest copyWith(void Function(DeleteDocumentRequest) updates) => super.copyWith((message) => updates(message as DeleteDocumentRequest)) as DeleteDocumentRequest; + DeleteDocumentRequest copyWith( + void Function(DeleteDocumentRequest) updates) => + super.copyWith((message) => updates(message as DeleteDocumentRequest)) + as DeleteDocumentRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -669,9 +752,11 @@ class DeleteDocumentRequest extends $pb.GeneratedMessage { static DeleteDocumentRequest create() => DeleteDocumentRequest._(); @$core.override DeleteDocumentRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteDocumentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeleteDocumentRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeleteDocumentRequest? _defaultInstance; /// Required. The resource name of the Document to delete. In the format: @@ -700,9 +785,9 @@ class DeleteDocumentRequest extends $pb.GeneratedMessage { } enum BatchGetDocumentsRequest_ConsistencySelector { - transaction, - newTransaction, - readTime, + transaction, + newTransaction, + readTime, notSet } @@ -729,30 +814,47 @@ class BatchGetDocumentsRequest extends $pb.GeneratedMessage { BatchGetDocumentsRequest._(); - factory BatchGetDocumentsRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BatchGetDocumentsRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, BatchGetDocumentsRequest_ConsistencySelector> _BatchGetDocumentsRequest_ConsistencySelectorByTag = { - 4 : BatchGetDocumentsRequest_ConsistencySelector.transaction, - 5 : BatchGetDocumentsRequest_ConsistencySelector.newTransaction, - 7 : BatchGetDocumentsRequest_ConsistencySelector.readTime, - 0 : BatchGetDocumentsRequest_ConsistencySelector.notSet + factory BatchGetDocumentsRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BatchGetDocumentsRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core + .Map<$core.int, BatchGetDocumentsRequest_ConsistencySelector> + _BatchGetDocumentsRequest_ConsistencySelectorByTag = { + 4: BatchGetDocumentsRequest_ConsistencySelector.transaction, + 5: BatchGetDocumentsRequest_ConsistencySelector.newTransaction, + 7: BatchGetDocumentsRequest_ConsistencySelector.readTime, + 0: BatchGetDocumentsRequest_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BatchGetDocumentsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchGetDocumentsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [4, 5, 7]) ..aOS(1, _omitFieldNames ? '' : 'database') ..pPS(2, _omitFieldNames ? '' : 'documents') - ..aOM<$3.DocumentMask>(3, _omitFieldNames ? '' : 'mask', subBuilder: $3.DocumentMask.create) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$3.TransactionOptions>(5, _omitFieldNames ? '' : 'newTransaction', subBuilder: $3.TransactionOptions.create) - ..aOM<$4.Timestamp>(7, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + ..aOM<$3.DocumentMask>(3, _omitFieldNames ? '' : 'mask', + subBuilder: $3.DocumentMask.create) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$3.TransactionOptions>(5, _omitFieldNames ? '' : 'newTransaction', + subBuilder: $3.TransactionOptions.create) + ..aOM<$4.Timestamp>(7, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BatchGetDocumentsRequest clone() => BatchGetDocumentsRequest()..mergeFromMessage(this); + BatchGetDocumentsRequest clone() => + BatchGetDocumentsRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BatchGetDocumentsRequest copyWith(void Function(BatchGetDocumentsRequest) updates) => super.copyWith((message) => updates(message as BatchGetDocumentsRequest)) as BatchGetDocumentsRequest; + BatchGetDocumentsRequest copyWith( + void Function(BatchGetDocumentsRequest) updates) => + super.copyWith((message) => updates(message as BatchGetDocumentsRequest)) + as BatchGetDocumentsRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -761,12 +863,15 @@ class BatchGetDocumentsRequest extends $pb.GeneratedMessage { static BatchGetDocumentsRequest create() => BatchGetDocumentsRequest._(); @$core.override BatchGetDocumentsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static BatchGetDocumentsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BatchGetDocumentsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BatchGetDocumentsRequest? _defaultInstance; - BatchGetDocumentsRequest_ConsistencySelector whichConsistencySelector() => _BatchGetDocumentsRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; + BatchGetDocumentsRequest_ConsistencySelector whichConsistencySelector() => + _BatchGetDocumentsRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; void clearConsistencySelector() => $_clearField($_whichOneof(0)); /// Required. The database name. In the format: @@ -844,11 +949,7 @@ class BatchGetDocumentsRequest extends $pb.GeneratedMessage { $4.Timestamp ensureReadTime() => $_ensure(5); } -enum BatchGetDocumentsResponse_Result { - found, - missing, - notSet -} +enum BatchGetDocumentsResponse_Result { found, missing, notSet } /// The streamed response for /// [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments]. @@ -869,27 +970,42 @@ class BatchGetDocumentsResponse extends $pb.GeneratedMessage { BatchGetDocumentsResponse._(); - factory BatchGetDocumentsResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BatchGetDocumentsResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, BatchGetDocumentsResponse_Result> _BatchGetDocumentsResponse_ResultByTag = { - 1 : BatchGetDocumentsResponse_Result.found, - 2 : BatchGetDocumentsResponse_Result.missing, - 0 : BatchGetDocumentsResponse_Result.notSet + factory BatchGetDocumentsResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BatchGetDocumentsResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, BatchGetDocumentsResponse_Result> + _BatchGetDocumentsResponse_ResultByTag = { + 1: BatchGetDocumentsResponse_Result.found, + 2: BatchGetDocumentsResponse_Result.missing, + 0: BatchGetDocumentsResponse_Result.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BatchGetDocumentsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchGetDocumentsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [1, 2]) - ..aOM<$1.Document>(1, _omitFieldNames ? '' : 'found', subBuilder: $1.Document.create) + ..aOM<$1.Document>(1, _omitFieldNames ? '' : 'found', + subBuilder: $1.Document.create) ..aOS(2, _omitFieldNames ? '' : 'missing') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$4.Timestamp>(4, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$4.Timestamp>(4, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BatchGetDocumentsResponse clone() => BatchGetDocumentsResponse()..mergeFromMessage(this); + BatchGetDocumentsResponse clone() => + BatchGetDocumentsResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BatchGetDocumentsResponse copyWith(void Function(BatchGetDocumentsResponse) updates) => super.copyWith((message) => updates(message as BatchGetDocumentsResponse)) as BatchGetDocumentsResponse; + BatchGetDocumentsResponse copyWith( + void Function(BatchGetDocumentsResponse) updates) => + super.copyWith((message) => updates(message as BatchGetDocumentsResponse)) + as BatchGetDocumentsResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -898,12 +1014,15 @@ class BatchGetDocumentsResponse extends $pb.GeneratedMessage { static BatchGetDocumentsResponse create() => BatchGetDocumentsResponse._(); @$core.override BatchGetDocumentsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static BatchGetDocumentsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BatchGetDocumentsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BatchGetDocumentsResponse? _defaultInstance; - BatchGetDocumentsResponse_Result whichResult() => _BatchGetDocumentsResponse_ResultByTag[$_whichOneof(0)]!; + BatchGetDocumentsResponse_Result whichResult() => + _BatchGetDocumentsResponse_ResultByTag[$_whichOneof(0)]!; void clearResult() => $_clearField($_whichOneof(0)); /// A document that was requested. @@ -973,19 +1092,31 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { BeginTransactionRequest._(); - factory BeginTransactionRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BeginTransactionRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BeginTransactionRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory BeginTransactionRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BeginTransactionRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BeginTransactionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'database') - ..aOM<$3.TransactionOptions>(2, _omitFieldNames ? '' : 'options', subBuilder: $3.TransactionOptions.create) - ..hasRequiredFields = false - ; + ..aOM<$3.TransactionOptions>(2, _omitFieldNames ? '' : 'options', + subBuilder: $3.TransactionOptions.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BeginTransactionRequest clone() => BeginTransactionRequest()..mergeFromMessage(this); + BeginTransactionRequest clone() => + BeginTransactionRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BeginTransactionRequest copyWith(void Function(BeginTransactionRequest) updates) => super.copyWith((message) => updates(message as BeginTransactionRequest)) as BeginTransactionRequest; + BeginTransactionRequest copyWith( + void Function(BeginTransactionRequest) updates) => + super.copyWith((message) => updates(message as BeginTransactionRequest)) + as BeginTransactionRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -994,9 +1125,11 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { static BeginTransactionRequest create() => BeginTransactionRequest._(); @$core.override BeginTransactionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static BeginTransactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BeginTransactionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BeginTransactionRequest? _defaultInstance; /// Required. The database name. In the format: @@ -1037,18 +1170,30 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { BeginTransactionResponse._(); - factory BeginTransactionResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BeginTransactionResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BeginTransactionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + factory BeginTransactionResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BeginTransactionResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BeginTransactionResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BeginTransactionResponse clone() => BeginTransactionResponse()..mergeFromMessage(this); + BeginTransactionResponse clone() => + BeginTransactionResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BeginTransactionResponse copyWith(void Function(BeginTransactionResponse) updates) => super.copyWith((message) => updates(message as BeginTransactionResponse)) as BeginTransactionResponse; + BeginTransactionResponse copyWith( + void Function(BeginTransactionResponse) updates) => + super.copyWith((message) => updates(message as BeginTransactionResponse)) + as BeginTransactionResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1057,9 +1202,11 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { static BeginTransactionResponse create() => BeginTransactionResponse._(); @$core.override BeginTransactionResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static BeginTransactionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BeginTransactionResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BeginTransactionResponse? _defaultInstance; /// The transaction that was started. @@ -1089,20 +1236,31 @@ class CommitRequest extends $pb.GeneratedMessage { CommitRequest._(); - factory CommitRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory CommitRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CommitRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory CommitRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory CommitRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommitRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'database') - ..pc<$5.Write>(2, _omitFieldNames ? '' : 'writes', $pb.PbFieldType.PM, subBuilder: $5.Write.create) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..pc<$5.Write>(2, _omitFieldNames ? '' : 'writes', $pb.PbFieldType.PM, + subBuilder: $5.Write.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') CommitRequest clone() => CommitRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CommitRequest copyWith(void Function(CommitRequest) updates) => super.copyWith((message) => updates(message as CommitRequest)) as CommitRequest; + CommitRequest copyWith(void Function(CommitRequest) updates) => + super.copyWith((message) => updates(message as CommitRequest)) + as CommitRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1111,9 +1269,11 @@ class CommitRequest extends $pb.GeneratedMessage { static CommitRequest create() => CommitRequest._(); @$core.override CommitRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static CommitRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static CommitRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static CommitRequest? _defaultInstance; /// Required. The database name. In the format: @@ -1158,19 +1318,31 @@ class CommitResponse extends $pb.GeneratedMessage { CommitResponse._(); - factory CommitResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory CommitResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CommitResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc<$5.WriteResult>(1, _omitFieldNames ? '' : 'writeResults', $pb.PbFieldType.PM, subBuilder: $5.WriteResult.create) - ..aOM<$4.Timestamp>(2, _omitFieldNames ? '' : 'commitTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + factory CommitResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory CommitResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommitResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc<$5.WriteResult>( + 1, _omitFieldNames ? '' : 'writeResults', $pb.PbFieldType.PM, + subBuilder: $5.WriteResult.create) + ..aOM<$4.Timestamp>(2, _omitFieldNames ? '' : 'commitTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') CommitResponse clone() => CommitResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CommitResponse copyWith(void Function(CommitResponse) updates) => super.copyWith((message) => updates(message as CommitResponse)) as CommitResponse; + CommitResponse copyWith(void Function(CommitResponse) updates) => + super.copyWith((message) => updates(message as CommitResponse)) + as CommitResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1179,9 +1351,11 @@ class CommitResponse extends $pb.GeneratedMessage { static CommitResponse create() => CommitResponse._(); @$core.override CommitResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static CommitResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static CommitResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static CommitResponse? _defaultInstance; /// The result of applying the writes. @@ -1219,19 +1393,29 @@ class RollbackRequest extends $pb.GeneratedMessage { RollbackRequest._(); - factory RollbackRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RollbackRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RollbackRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory RollbackRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RollbackRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RollbackRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'database') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RollbackRequest clone() => RollbackRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RollbackRequest copyWith(void Function(RollbackRequest) updates) => super.copyWith((message) => updates(message as RollbackRequest)) as RollbackRequest; + RollbackRequest copyWith(void Function(RollbackRequest) updates) => + super.copyWith((message) => updates(message as RollbackRequest)) + as RollbackRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1240,9 +1424,11 @@ class RollbackRequest extends $pb.GeneratedMessage { static RollbackRequest create() => RollbackRequest._(); @$core.override RollbackRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RollbackRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RollbackRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RollbackRequest? _defaultInstance; /// Required. The database name. In the format: @@ -1267,15 +1453,12 @@ class RollbackRequest extends $pb.GeneratedMessage { void clearTransaction() => $_clearField(2); } -enum RunQueryRequest_QueryType { - structuredQuery, - notSet -} +enum RunQueryRequest_QueryType { structuredQuery, notSet } enum RunQueryRequest_ConsistencySelector { - transaction, - newTransaction, - readTime, + transaction, + newTransaction, + readTime, notSet } @@ -1301,35 +1484,51 @@ class RunQueryRequest extends $pb.GeneratedMessage { RunQueryRequest._(); - factory RunQueryRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RunQueryRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, RunQueryRequest_QueryType> _RunQueryRequest_QueryTypeByTag = { - 2 : RunQueryRequest_QueryType.structuredQuery, - 0 : RunQueryRequest_QueryType.notSet + factory RunQueryRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RunQueryRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, RunQueryRequest_QueryType> + _RunQueryRequest_QueryTypeByTag = { + 2: RunQueryRequest_QueryType.structuredQuery, + 0: RunQueryRequest_QueryType.notSet }; - static const $core.Map<$core.int, RunQueryRequest_ConsistencySelector> _RunQueryRequest_ConsistencySelectorByTag = { - 5 : RunQueryRequest_ConsistencySelector.transaction, - 6 : RunQueryRequest_ConsistencySelector.newTransaction, - 7 : RunQueryRequest_ConsistencySelector.readTime, - 0 : RunQueryRequest_ConsistencySelector.notSet + static const $core.Map<$core.int, RunQueryRequest_ConsistencySelector> + _RunQueryRequest_ConsistencySelectorByTag = { + 5: RunQueryRequest_ConsistencySelector.transaction, + 6: RunQueryRequest_ConsistencySelector.newTransaction, + 7: RunQueryRequest_ConsistencySelector.readTime, + 0: RunQueryRequest_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RunQueryRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunQueryRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2]) ..oo(1, [5, 6, 7]) ..aOS(1, _omitFieldNames ? '' : 'parent') - ..aOM<$6.StructuredQuery>(2, _omitFieldNames ? '' : 'structuredQuery', subBuilder: $6.StructuredQuery.create) - ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$3.TransactionOptions>(6, _omitFieldNames ? '' : 'newTransaction', subBuilder: $3.TransactionOptions.create) - ..aOM<$4.Timestamp>(7, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..aOM<$7.ExplainOptions>(10, _omitFieldNames ? '' : 'explainOptions', subBuilder: $7.ExplainOptions.create) - ..hasRequiredFields = false - ; + ..aOM<$6.StructuredQuery>(2, _omitFieldNames ? '' : 'structuredQuery', + subBuilder: $6.StructuredQuery.create) + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$3.TransactionOptions>(6, _omitFieldNames ? '' : 'newTransaction', + subBuilder: $3.TransactionOptions.create) + ..aOM<$4.Timestamp>(7, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..aOM<$7.ExplainOptions>(10, _omitFieldNames ? '' : 'explainOptions', + subBuilder: $7.ExplainOptions.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RunQueryRequest clone() => RunQueryRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RunQueryRequest copyWith(void Function(RunQueryRequest) updates) => super.copyWith((message) => updates(message as RunQueryRequest)) as RunQueryRequest; + RunQueryRequest copyWith(void Function(RunQueryRequest) updates) => + super.copyWith((message) => updates(message as RunQueryRequest)) + as RunQueryRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1338,15 +1537,19 @@ class RunQueryRequest extends $pb.GeneratedMessage { static RunQueryRequest create() => RunQueryRequest._(); @$core.override RunQueryRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RunQueryRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RunQueryRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RunQueryRequest? _defaultInstance; - RunQueryRequest_QueryType whichQueryType() => _RunQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; + RunQueryRequest_QueryType whichQueryType() => + _RunQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; void clearQueryType() => $_clearField($_whichOneof(0)); - RunQueryRequest_ConsistencySelector whichConsistencySelector() => _RunQueryRequest_ConsistencySelectorByTag[$_whichOneof(1)]!; + RunQueryRequest_ConsistencySelector whichConsistencySelector() => + _RunQueryRequest_ConsistencySelectorByTag[$_whichOneof(1)]!; void clearConsistencySelector() => $_clearField($_whichOneof(1)); /// Required. The parent resource name. In the format: @@ -1433,10 +1636,7 @@ class RunQueryRequest extends $pb.GeneratedMessage { $7.ExplainOptions ensureExplainOptions() => $_ensure(5); } -enum RunQueryResponse_ContinuationSelector { - done, - notSet -} +enum RunQueryResponse_ContinuationSelector { done, notSet } /// The response for /// [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery]. @@ -1461,28 +1661,43 @@ class RunQueryResponse extends $pb.GeneratedMessage { RunQueryResponse._(); - factory RunQueryResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RunQueryResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, RunQueryResponse_ContinuationSelector> _RunQueryResponse_ContinuationSelectorByTag = { - 6 : RunQueryResponse_ContinuationSelector.done, - 0 : RunQueryResponse_ContinuationSelector.notSet + factory RunQueryResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RunQueryResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, RunQueryResponse_ContinuationSelector> + _RunQueryResponse_ContinuationSelectorByTag = { + 6: RunQueryResponse_ContinuationSelector.done, + 0: RunQueryResponse_ContinuationSelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RunQueryResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunQueryResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [6]) - ..aOM<$1.Document>(1, _omitFieldNames ? '' : 'document', subBuilder: $1.Document.create) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$4.Timestamp>(3, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..a<$core.int>(4, _omitFieldNames ? '' : 'skippedResults', $pb.PbFieldType.O3) + ..aOM<$1.Document>(1, _omitFieldNames ? '' : 'document', + subBuilder: $1.Document.create) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$4.Timestamp>(3, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'skippedResults', $pb.PbFieldType.O3) ..aOB(6, _omitFieldNames ? '' : 'done') - ..aOM<$7.ExplainMetrics>(11, _omitFieldNames ? '' : 'explainMetrics', subBuilder: $7.ExplainMetrics.create) - ..hasRequiredFields = false - ; + ..aOM<$7.ExplainMetrics>(11, _omitFieldNames ? '' : 'explainMetrics', + subBuilder: $7.ExplainMetrics.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RunQueryResponse clone() => RunQueryResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RunQueryResponse copyWith(void Function(RunQueryResponse) updates) => super.copyWith((message) => updates(message as RunQueryResponse)) as RunQueryResponse; + RunQueryResponse copyWith(void Function(RunQueryResponse) updates) => + super.copyWith((message) => updates(message as RunQueryResponse)) + as RunQueryResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1491,12 +1706,15 @@ class RunQueryResponse extends $pb.GeneratedMessage { static RunQueryResponse create() => RunQueryResponse._(); @$core.override RunQueryResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RunQueryResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RunQueryResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RunQueryResponse? _defaultInstance; - RunQueryResponse_ContinuationSelector whichContinuationSelector() => _RunQueryResponse_ContinuationSelectorByTag[$_whichOneof(0)]!; + RunQueryResponse_ContinuationSelector whichContinuationSelector() => + _RunQueryResponse_ContinuationSelectorByTag[$_whichOneof(0)]!; void clearContinuationSelector() => $_clearField($_whichOneof(0)); /// A query result, not set when reporting partial progress. @@ -1580,15 +1798,12 @@ class RunQueryResponse extends $pb.GeneratedMessage { $7.ExplainMetrics ensureExplainMetrics() => $_ensure(5); } -enum RunAggregationQueryRequest_QueryType { - structuredAggregationQuery, - notSet -} +enum RunAggregationQueryRequest_QueryType { structuredAggregationQuery, notSet } enum RunAggregationQueryRequest_ConsistencySelector { - transaction, - newTransaction, - readTime, + transaction, + newTransaction, + readTime, notSet } @@ -1605,7 +1820,8 @@ class RunAggregationQueryRequest extends $pb.GeneratedMessage { }) { final result = create(); if (parent != null) result.parent = parent; - if (structuredAggregationQuery != null) result.structuredAggregationQuery = structuredAggregationQuery; + if (structuredAggregationQuery != null) + result.structuredAggregationQuery = structuredAggregationQuery; if (transaction != null) result.transaction = transaction; if (newTransaction != null) result.newTransaction = newTransaction; if (readTime != null) result.readTime = readTime; @@ -1615,35 +1831,56 @@ class RunAggregationQueryRequest extends $pb.GeneratedMessage { RunAggregationQueryRequest._(); - factory RunAggregationQueryRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RunAggregationQueryRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, RunAggregationQueryRequest_QueryType> _RunAggregationQueryRequest_QueryTypeByTag = { - 2 : RunAggregationQueryRequest_QueryType.structuredAggregationQuery, - 0 : RunAggregationQueryRequest_QueryType.notSet + factory RunAggregationQueryRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RunAggregationQueryRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, RunAggregationQueryRequest_QueryType> + _RunAggregationQueryRequest_QueryTypeByTag = { + 2: RunAggregationQueryRequest_QueryType.structuredAggregationQuery, + 0: RunAggregationQueryRequest_QueryType.notSet }; - static const $core.Map<$core.int, RunAggregationQueryRequest_ConsistencySelector> _RunAggregationQueryRequest_ConsistencySelectorByTag = { - 4 : RunAggregationQueryRequest_ConsistencySelector.transaction, - 5 : RunAggregationQueryRequest_ConsistencySelector.newTransaction, - 6 : RunAggregationQueryRequest_ConsistencySelector.readTime, - 0 : RunAggregationQueryRequest_ConsistencySelector.notSet + static const $core + .Map<$core.int, RunAggregationQueryRequest_ConsistencySelector> + _RunAggregationQueryRequest_ConsistencySelectorByTag = { + 4: RunAggregationQueryRequest_ConsistencySelector.transaction, + 5: RunAggregationQueryRequest_ConsistencySelector.newTransaction, + 6: RunAggregationQueryRequest_ConsistencySelector.readTime, + 0: RunAggregationQueryRequest_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RunAggregationQueryRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunAggregationQueryRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2]) ..oo(1, [4, 5, 6]) ..aOS(1, _omitFieldNames ? '' : 'parent') - ..aOM<$6.StructuredAggregationQuery>(2, _omitFieldNames ? '' : 'structuredAggregationQuery', subBuilder: $6.StructuredAggregationQuery.create) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$3.TransactionOptions>(5, _omitFieldNames ? '' : 'newTransaction', subBuilder: $3.TransactionOptions.create) - ..aOM<$4.Timestamp>(6, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..aOM<$7.ExplainOptions>(8, _omitFieldNames ? '' : 'explainOptions', subBuilder: $7.ExplainOptions.create) - ..hasRequiredFields = false - ; + ..aOM<$6.StructuredAggregationQuery>( + 2, _omitFieldNames ? '' : 'structuredAggregationQuery', + subBuilder: $6.StructuredAggregationQuery.create) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$3.TransactionOptions>(5, _omitFieldNames ? '' : 'newTransaction', + subBuilder: $3.TransactionOptions.create) + ..aOM<$4.Timestamp>(6, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..aOM<$7.ExplainOptions>(8, _omitFieldNames ? '' : 'explainOptions', + subBuilder: $7.ExplainOptions.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RunAggregationQueryRequest clone() => RunAggregationQueryRequest()..mergeFromMessage(this); + RunAggregationQueryRequest clone() => + RunAggregationQueryRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RunAggregationQueryRequest copyWith(void Function(RunAggregationQueryRequest) updates) => super.copyWith((message) => updates(message as RunAggregationQueryRequest)) as RunAggregationQueryRequest; + RunAggregationQueryRequest copyWith( + void Function(RunAggregationQueryRequest) updates) => + super.copyWith( + (message) => updates(message as RunAggregationQueryRequest)) + as RunAggregationQueryRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1652,15 +1889,19 @@ class RunAggregationQueryRequest extends $pb.GeneratedMessage { static RunAggregationQueryRequest create() => RunAggregationQueryRequest._(); @$core.override RunAggregationQueryRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RunAggregationQueryRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RunAggregationQueryRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RunAggregationQueryRequest? _defaultInstance; - RunAggregationQueryRequest_QueryType whichQueryType() => _RunAggregationQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; + RunAggregationQueryRequest_QueryType whichQueryType() => + _RunAggregationQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; void clearQueryType() => $_clearField($_whichOneof(0)); - RunAggregationQueryRequest_ConsistencySelector whichConsistencySelector() => _RunAggregationQueryRequest_ConsistencySelectorByTag[$_whichOneof(1)]!; + RunAggregationQueryRequest_ConsistencySelector whichConsistencySelector() => + _RunAggregationQueryRequest_ConsistencySelectorByTag[$_whichOneof(1)]!; void clearConsistencySelector() => $_clearField($_whichOneof(1)); /// Required. The parent resource name. In the format: @@ -1682,13 +1923,15 @@ class RunAggregationQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $6.StructuredAggregationQuery get structuredAggregationQuery => $_getN(1); @$pb.TagNumber(2) - set structuredAggregationQuery($6.StructuredAggregationQuery value) => $_setField(2, value); + set structuredAggregationQuery($6.StructuredAggregationQuery value) => + $_setField(2, value); @$pb.TagNumber(2) $core.bool hasStructuredAggregationQuery() => $_has(1); @$pb.TagNumber(2) void clearStructuredAggregationQuery() => $_clearField(2); @$pb.TagNumber(2) - $6.StructuredAggregationQuery ensureStructuredAggregationQuery() => $_ensure(1); + $6.StructuredAggregationQuery ensureStructuredAggregationQuery() => + $_ensure(1); /// Run the aggregation within an already active transaction. /// @@ -1766,32 +2009,51 @@ class RunAggregationQueryResponse extends $pb.GeneratedMessage { RunAggregationQueryResponse._(); - factory RunAggregationQueryResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory RunAggregationQueryResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RunAggregationQueryResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM<$8.AggregationResult>(1, _omitFieldNames ? '' : 'result', subBuilder: $8.AggregationResult.create) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) - ..aOM<$4.Timestamp>(3, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..aOM<$7.ExplainMetrics>(10, _omitFieldNames ? '' : 'explainMetrics', subBuilder: $7.ExplainMetrics.create) - ..hasRequiredFields = false - ; + factory RunAggregationQueryResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RunAggregationQueryResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunAggregationQueryResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM<$8.AggregationResult>(1, _omitFieldNames ? '' : 'result', + subBuilder: $8.AggregationResult.create) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$4.Timestamp>(3, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..aOM<$7.ExplainMetrics>(10, _omitFieldNames ? '' : 'explainMetrics', + subBuilder: $7.ExplainMetrics.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RunAggregationQueryResponse clone() => RunAggregationQueryResponse()..mergeFromMessage(this); + RunAggregationQueryResponse clone() => + RunAggregationQueryResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RunAggregationQueryResponse copyWith(void Function(RunAggregationQueryResponse) updates) => super.copyWith((message) => updates(message as RunAggregationQueryResponse)) as RunAggregationQueryResponse; + RunAggregationQueryResponse copyWith( + void Function(RunAggregationQueryResponse) updates) => + super.copyWith( + (message) => updates(message as RunAggregationQueryResponse)) + as RunAggregationQueryResponse; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static RunAggregationQueryResponse create() => RunAggregationQueryResponse._(); + static RunAggregationQueryResponse create() => + RunAggregationQueryResponse._(); @$core.override RunAggregationQueryResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RunAggregationQueryResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RunAggregationQueryResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RunAggregationQueryResponse? _defaultInstance; /// A single aggregation result. @@ -1855,15 +2117,9 @@ class RunAggregationQueryResponse extends $pb.GeneratedMessage { $7.ExplainMetrics ensureExplainMetrics() => $_ensure(3); } -enum PartitionQueryRequest_QueryType { - structuredQuery, - notSet -} +enum PartitionQueryRequest_QueryType { structuredQuery, notSet } -enum PartitionQueryRequest_ConsistencySelector { - readTime, - notSet -} +enum PartitionQueryRequest_ConsistencySelector { readTime, notSet } /// The request for /// [Firestore.PartitionQuery][google.firestore.v1.Firestore.PartitionQuery]. @@ -1888,33 +2144,48 @@ class PartitionQueryRequest extends $pb.GeneratedMessage { PartitionQueryRequest._(); - factory PartitionQueryRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory PartitionQueryRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, PartitionQueryRequest_QueryType> _PartitionQueryRequest_QueryTypeByTag = { - 2 : PartitionQueryRequest_QueryType.structuredQuery, - 0 : PartitionQueryRequest_QueryType.notSet + factory PartitionQueryRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PartitionQueryRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, PartitionQueryRequest_QueryType> + _PartitionQueryRequest_QueryTypeByTag = { + 2: PartitionQueryRequest_QueryType.structuredQuery, + 0: PartitionQueryRequest_QueryType.notSet }; - static const $core.Map<$core.int, PartitionQueryRequest_ConsistencySelector> _PartitionQueryRequest_ConsistencySelectorByTag = { - 6 : PartitionQueryRequest_ConsistencySelector.readTime, - 0 : PartitionQueryRequest_ConsistencySelector.notSet + static const $core.Map<$core.int, PartitionQueryRequest_ConsistencySelector> + _PartitionQueryRequest_ConsistencySelectorByTag = { + 6: PartitionQueryRequest_ConsistencySelector.readTime, + 0: PartitionQueryRequest_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PartitionQueryRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PartitionQueryRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2]) ..oo(1, [6]) ..aOS(1, _omitFieldNames ? '' : 'parent') - ..aOM<$6.StructuredQuery>(2, _omitFieldNames ? '' : 'structuredQuery', subBuilder: $6.StructuredQuery.create) + ..aOM<$6.StructuredQuery>(2, _omitFieldNames ? '' : 'structuredQuery', + subBuilder: $6.StructuredQuery.create) ..aInt64(3, _omitFieldNames ? '' : 'partitionCount') ..aOS(4, _omitFieldNames ? '' : 'pageToken') ..a<$core.int>(5, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) - ..aOM<$4.Timestamp>(6, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + ..aOM<$4.Timestamp>(6, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PartitionQueryRequest clone() => PartitionQueryRequest()..mergeFromMessage(this); + PartitionQueryRequest clone() => + PartitionQueryRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PartitionQueryRequest copyWith(void Function(PartitionQueryRequest) updates) => super.copyWith((message) => updates(message as PartitionQueryRequest)) as PartitionQueryRequest; + PartitionQueryRequest copyWith( + void Function(PartitionQueryRequest) updates) => + super.copyWith((message) => updates(message as PartitionQueryRequest)) + as PartitionQueryRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1923,15 +2194,19 @@ class PartitionQueryRequest extends $pb.GeneratedMessage { static PartitionQueryRequest create() => PartitionQueryRequest._(); @$core.override PartitionQueryRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PartitionQueryRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PartitionQueryRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PartitionQueryRequest? _defaultInstance; - PartitionQueryRequest_QueryType whichQueryType() => _PartitionQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; + PartitionQueryRequest_QueryType whichQueryType() => + _PartitionQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; void clearQueryType() => $_clearField($_whichOneof(0)); - PartitionQueryRequest_ConsistencySelector whichConsistencySelector() => _PartitionQueryRequest_ConsistencySelectorByTag[$_whichOneof(1)]!; + PartitionQueryRequest_ConsistencySelector whichConsistencySelector() => + _PartitionQueryRequest_ConsistencySelectorByTag[$_whichOneof(1)]!; void clearConsistencySelector() => $_clearField($_whichOneof(1)); /// Required. The parent resource name. In the format: @@ -2049,19 +2324,31 @@ class PartitionQueryResponse extends $pb.GeneratedMessage { PartitionQueryResponse._(); - factory PartitionQueryResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory PartitionQueryResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PartitionQueryResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc<$6.Cursor>(1, _omitFieldNames ? '' : 'partitions', $pb.PbFieldType.PM, subBuilder: $6.Cursor.create) + factory PartitionQueryResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PartitionQueryResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PartitionQueryResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc<$6.Cursor>(1, _omitFieldNames ? '' : 'partitions', $pb.PbFieldType.PM, + subBuilder: $6.Cursor.create) ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PartitionQueryResponse clone() => PartitionQueryResponse()..mergeFromMessage(this); + PartitionQueryResponse clone() => + PartitionQueryResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PartitionQueryResponse copyWith(void Function(PartitionQueryResponse) updates) => super.copyWith((message) => updates(message as PartitionQueryResponse)) as PartitionQueryResponse; + PartitionQueryResponse copyWith( + void Function(PartitionQueryResponse) updates) => + super.copyWith((message) => updates(message as PartitionQueryResponse)) + as PartitionQueryResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2070,9 +2357,11 @@ class PartitionQueryResponse extends $pb.GeneratedMessage { static PartitionQueryResponse create() => PartitionQueryResponse._(); @$core.override PartitionQueryResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PartitionQueryResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PartitionQueryResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PartitionQueryResponse? _defaultInstance; /// Partition results. @@ -2137,22 +2426,37 @@ class WriteRequest extends $pb.GeneratedMessage { WriteRequest._(); - factory WriteRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory WriteRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WriteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory WriteRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory WriteRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WriteRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'database') ..aOS(2, _omitFieldNames ? '' : 'streamId') - ..pc<$5.Write>(3, _omitFieldNames ? '' : 'writes', $pb.PbFieldType.PM, subBuilder: $5.Write.create) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'streamToken', $pb.PbFieldType.OY) - ..m<$core.String, $core.String>(5, _omitFieldNames ? '' : 'labels', entryClassName: 'WriteRequest.LabelsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.firestore.v1')) - ..hasRequiredFields = false - ; + ..pc<$5.Write>(3, _omitFieldNames ? '' : 'writes', $pb.PbFieldType.PM, + subBuilder: $5.Write.create) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'streamToken', $pb.PbFieldType.OY) + ..m<$core.String, $core.String>(5, _omitFieldNames ? '' : 'labels', + entryClassName: 'WriteRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.firestore.v1')) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') WriteRequest clone() => WriteRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - WriteRequest copyWith(void Function(WriteRequest) updates) => super.copyWith((message) => updates(message as WriteRequest)) as WriteRequest; + WriteRequest copyWith(void Function(WriteRequest) updates) => + super.copyWith((message) => updates(message as WriteRequest)) + as WriteRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2161,9 +2465,11 @@ class WriteRequest extends $pb.GeneratedMessage { static WriteRequest create() => WriteRequest._(); @$core.override WriteRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static WriteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static WriteRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static WriteRequest? _defaultInstance; /// Required. The database name. In the format: @@ -2245,21 +2551,34 @@ class WriteResponse extends $pb.GeneratedMessage { WriteResponse._(); - factory WriteResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory WriteResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WriteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory WriteResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory WriteResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WriteResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'streamId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'streamToken', $pb.PbFieldType.OY) - ..pc<$5.WriteResult>(3, _omitFieldNames ? '' : 'writeResults', $pb.PbFieldType.PM, subBuilder: $5.WriteResult.create) - ..aOM<$4.Timestamp>(4, _omitFieldNames ? '' : 'commitTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'streamToken', $pb.PbFieldType.OY) + ..pc<$5.WriteResult>( + 3, _omitFieldNames ? '' : 'writeResults', $pb.PbFieldType.PM, + subBuilder: $5.WriteResult.create) + ..aOM<$4.Timestamp>(4, _omitFieldNames ? '' : 'commitTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') WriteResponse clone() => WriteResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - WriteResponse copyWith(void Function(WriteResponse) updates) => super.copyWith((message) => updates(message as WriteResponse)) as WriteResponse; + WriteResponse copyWith(void Function(WriteResponse) updates) => + super.copyWith((message) => updates(message as WriteResponse)) + as WriteResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2268,9 +2587,11 @@ class WriteResponse extends $pb.GeneratedMessage { static WriteResponse create() => WriteResponse._(); @$core.override WriteResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static WriteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static WriteResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static WriteResponse? _defaultInstance; /// The ID of the stream. @@ -2318,11 +2639,7 @@ class WriteResponse extends $pb.GeneratedMessage { $4.Timestamp ensureCommitTime() => $_ensure(3); } -enum ListenRequest_TargetChange { - addTarget, - removeTarget, - notSet -} +enum ListenRequest_TargetChange { addTarget, removeTarget, notSet } /// A request for [Firestore.Listen][google.firestore.v1.Firestore.Listen] class ListenRequest extends $pb.GeneratedMessage { @@ -2342,27 +2659,42 @@ class ListenRequest extends $pb.GeneratedMessage { ListenRequest._(); - factory ListenRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ListenRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, ListenRequest_TargetChange> _ListenRequest_TargetChangeByTag = { - 2 : ListenRequest_TargetChange.addTarget, - 3 : ListenRequest_TargetChange.removeTarget, - 0 : ListenRequest_TargetChange.notSet + factory ListenRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ListenRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, ListenRequest_TargetChange> + _ListenRequest_TargetChangeByTag = { + 2: ListenRequest_TargetChange.addTarget, + 3: ListenRequest_TargetChange.removeTarget, + 0: ListenRequest_TargetChange.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListenRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListenRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2, 3]) ..aOS(1, _omitFieldNames ? '' : 'database') - ..aOM(2, _omitFieldNames ? '' : 'addTarget', subBuilder: Target.create) + ..aOM(2, _omitFieldNames ? '' : 'addTarget', + subBuilder: Target.create) ..a<$core.int>(3, _omitFieldNames ? '' : 'removeTarget', $pb.PbFieldType.O3) - ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'labels', entryClassName: 'ListenRequest.LabelsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.firestore.v1')) - ..hasRequiredFields = false - ; + ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'labels', + entryClassName: 'ListenRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.firestore.v1')) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListenRequest clone() => ListenRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListenRequest copyWith(void Function(ListenRequest) updates) => super.copyWith((message) => updates(message as ListenRequest)) as ListenRequest; + ListenRequest copyWith(void Function(ListenRequest) updates) => + super.copyWith((message) => updates(message as ListenRequest)) + as ListenRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2371,12 +2703,15 @@ class ListenRequest extends $pb.GeneratedMessage { static ListenRequest create() => ListenRequest._(); @$core.override ListenRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListenRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListenRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ListenRequest? _defaultInstance; - ListenRequest_TargetChange whichTargetChange() => _ListenRequest_TargetChangeByTag[$_whichOneof(0)]!; + ListenRequest_TargetChange whichTargetChange() => + _ListenRequest_TargetChangeByTag[$_whichOneof(0)]!; void clearTargetChange() => $_clearField($_whichOneof(0)); /// Required. The database name. In the format: @@ -2418,11 +2753,11 @@ class ListenRequest extends $pb.GeneratedMessage { } enum ListenResponse_ResponseType { - targetChange, - documentChange, - documentDelete, - filter, - documentRemove, + targetChange, + documentChange, + documentDelete, + filter, + documentRemove, notSet } @@ -2446,31 +2781,46 @@ class ListenResponse extends $pb.GeneratedMessage { ListenResponse._(); - factory ListenResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ListenResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, ListenResponse_ResponseType> _ListenResponse_ResponseTypeByTag = { - 2 : ListenResponse_ResponseType.targetChange, - 3 : ListenResponse_ResponseType.documentChange, - 4 : ListenResponse_ResponseType.documentDelete, - 5 : ListenResponse_ResponseType.filter, - 6 : ListenResponse_ResponseType.documentRemove, - 0 : ListenResponse_ResponseType.notSet + factory ListenResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ListenResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, ListenResponse_ResponseType> + _ListenResponse_ResponseTypeByTag = { + 2: ListenResponse_ResponseType.targetChange, + 3: ListenResponse_ResponseType.documentChange, + 4: ListenResponse_ResponseType.documentDelete, + 5: ListenResponse_ResponseType.filter, + 6: ListenResponse_ResponseType.documentRemove, + 0: ListenResponse_ResponseType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListenResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListenResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2, 3, 4, 5, 6]) - ..aOM(2, _omitFieldNames ? '' : 'targetChange', subBuilder: TargetChange.create) - ..aOM<$5.DocumentChange>(3, _omitFieldNames ? '' : 'documentChange', subBuilder: $5.DocumentChange.create) - ..aOM<$5.DocumentDelete>(4, _omitFieldNames ? '' : 'documentDelete', subBuilder: $5.DocumentDelete.create) - ..aOM<$5.ExistenceFilter>(5, _omitFieldNames ? '' : 'filter', subBuilder: $5.ExistenceFilter.create) - ..aOM<$5.DocumentRemove>(6, _omitFieldNames ? '' : 'documentRemove', subBuilder: $5.DocumentRemove.create) - ..hasRequiredFields = false - ; + ..aOM(2, _omitFieldNames ? '' : 'targetChange', + subBuilder: TargetChange.create) + ..aOM<$5.DocumentChange>(3, _omitFieldNames ? '' : 'documentChange', + subBuilder: $5.DocumentChange.create) + ..aOM<$5.DocumentDelete>(4, _omitFieldNames ? '' : 'documentDelete', + subBuilder: $5.DocumentDelete.create) + ..aOM<$5.ExistenceFilter>(5, _omitFieldNames ? '' : 'filter', + subBuilder: $5.ExistenceFilter.create) + ..aOM<$5.DocumentRemove>(6, _omitFieldNames ? '' : 'documentRemove', + subBuilder: $5.DocumentRemove.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListenResponse clone() => ListenResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListenResponse copyWith(void Function(ListenResponse) updates) => super.copyWith((message) => updates(message as ListenResponse)) as ListenResponse; + ListenResponse copyWith(void Function(ListenResponse) updates) => + super.copyWith((message) => updates(message as ListenResponse)) + as ListenResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2479,12 +2829,15 @@ class ListenResponse extends $pb.GeneratedMessage { static ListenResponse create() => ListenResponse._(); @$core.override ListenResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListenResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListenResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ListenResponse? _defaultInstance; - ListenResponse_ResponseType whichResponseType() => _ListenResponse_ResponseTypeByTag[$_whichOneof(0)]!; + ListenResponse_ResponseType whichResponseType() => + _ListenResponse_ResponseTypeByTag[$_whichOneof(0)]!; void clearResponseType() => $_clearField($_whichOneof(0)); /// Targets have changed. @@ -2565,18 +2918,29 @@ class Target_DocumentsTarget extends $pb.GeneratedMessage { Target_DocumentsTarget._(); - factory Target_DocumentsTarget.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Target_DocumentsTarget.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Target.DocumentsTarget', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory Target_DocumentsTarget.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Target_DocumentsTarget.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Target.DocumentsTarget', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..pPS(2, _omitFieldNames ? '' : 'documents') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Target_DocumentsTarget clone() => Target_DocumentsTarget()..mergeFromMessage(this); + Target_DocumentsTarget clone() => + Target_DocumentsTarget()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Target_DocumentsTarget copyWith(void Function(Target_DocumentsTarget) updates) => super.copyWith((message) => updates(message as Target_DocumentsTarget)) as Target_DocumentsTarget; + Target_DocumentsTarget copyWith( + void Function(Target_DocumentsTarget) updates) => + super.copyWith((message) => updates(message as Target_DocumentsTarget)) + as Target_DocumentsTarget; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2585,9 +2949,11 @@ class Target_DocumentsTarget extends $pb.GeneratedMessage { static Target_DocumentsTarget create() => Target_DocumentsTarget._(); @$core.override Target_DocumentsTarget createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Target_DocumentsTarget getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Target_DocumentsTarget getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Target_DocumentsTarget? _defaultInstance; /// The names of the documents to retrieve. In the format: @@ -2598,10 +2964,7 @@ class Target_DocumentsTarget extends $pb.GeneratedMessage { $pb.PbList<$core.String> get documents => $_getList(0); } -enum Target_QueryTarget_QueryType { - structuredQuery, - notSet -} +enum Target_QueryTarget_QueryType { structuredQuery, notSet } /// A target specified by a query. class Target_QueryTarget extends $pb.GeneratedMessage { @@ -2617,24 +2980,35 @@ class Target_QueryTarget extends $pb.GeneratedMessage { Target_QueryTarget._(); - factory Target_QueryTarget.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Target_QueryTarget.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, Target_QueryTarget_QueryType> _Target_QueryTarget_QueryTypeByTag = { - 2 : Target_QueryTarget_QueryType.structuredQuery, - 0 : Target_QueryTarget_QueryType.notSet + factory Target_QueryTarget.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Target_QueryTarget.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, Target_QueryTarget_QueryType> + _Target_QueryTarget_QueryTypeByTag = { + 2: Target_QueryTarget_QueryType.structuredQuery, + 0: Target_QueryTarget_QueryType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Target.QueryTarget', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Target.QueryTarget', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2]) ..aOS(1, _omitFieldNames ? '' : 'parent') - ..aOM<$6.StructuredQuery>(2, _omitFieldNames ? '' : 'structuredQuery', subBuilder: $6.StructuredQuery.create) - ..hasRequiredFields = false - ; + ..aOM<$6.StructuredQuery>(2, _omitFieldNames ? '' : 'structuredQuery', + subBuilder: $6.StructuredQuery.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Target_QueryTarget clone() => Target_QueryTarget()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Target_QueryTarget copyWith(void Function(Target_QueryTarget) updates) => super.copyWith((message) => updates(message as Target_QueryTarget)) as Target_QueryTarget; + Target_QueryTarget copyWith(void Function(Target_QueryTarget) updates) => + super.copyWith((message) => updates(message as Target_QueryTarget)) + as Target_QueryTarget; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2643,12 +3017,15 @@ class Target_QueryTarget extends $pb.GeneratedMessage { static Target_QueryTarget create() => Target_QueryTarget._(); @$core.override Target_QueryTarget createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Target_QueryTarget getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Target_QueryTarget getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Target_QueryTarget? _defaultInstance; - Target_QueryTarget_QueryType whichQueryType() => _Target_QueryTarget_QueryTypeByTag[$_whichOneof(0)]!; + Target_QueryTarget_QueryType whichQueryType() => + _Target_QueryTarget_QueryTypeByTag[$_whichOneof(0)]!; void clearQueryType() => $_clearField($_whichOneof(0)); /// The parent resource name. In the format: @@ -2679,17 +3056,9 @@ class Target_QueryTarget extends $pb.GeneratedMessage { $6.StructuredQuery ensureStructuredQuery() => $_ensure(1); } -enum Target_TargetType { - query, - documents, - notSet -} +enum Target_TargetType { query, documents, notSet } -enum Target_ResumeType { - resumeToken, - readTime, - notSet -} +enum Target_ResumeType { resumeToken, readTime, notSet } /// A specification of a set of documents to listen to. class Target extends $pb.GeneratedMessage { @@ -2715,36 +3084,51 @@ class Target extends $pb.GeneratedMessage { Target._(); - factory Target.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Target.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, Target_TargetType> _Target_TargetTypeByTag = { - 2 : Target_TargetType.query, - 3 : Target_TargetType.documents, - 0 : Target_TargetType.notSet + factory Target.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Target.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, Target_TargetType> _Target_TargetTypeByTag = + { + 2: Target_TargetType.query, + 3: Target_TargetType.documents, + 0: Target_TargetType.notSet }; - static const $core.Map<$core.int, Target_ResumeType> _Target_ResumeTypeByTag = { - 4 : Target_ResumeType.resumeToken, - 11 : Target_ResumeType.readTime, - 0 : Target_ResumeType.notSet + static const $core.Map<$core.int, Target_ResumeType> _Target_ResumeTypeByTag = + { + 4: Target_ResumeType.resumeToken, + 11: Target_ResumeType.readTime, + 0: Target_ResumeType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Target', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Target', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2, 3]) ..oo(1, [4, 11]) - ..aOM(2, _omitFieldNames ? '' : 'query', subBuilder: Target_QueryTarget.create) - ..aOM(3, _omitFieldNames ? '' : 'documents', subBuilder: Target_DocumentsTarget.create) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'resumeToken', $pb.PbFieldType.OY) + ..aOM(2, _omitFieldNames ? '' : 'query', + subBuilder: Target_QueryTarget.create) + ..aOM(3, _omitFieldNames ? '' : 'documents', + subBuilder: Target_DocumentsTarget.create) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'resumeToken', $pb.PbFieldType.OY) ..a<$core.int>(5, _omitFieldNames ? '' : 'targetId', $pb.PbFieldType.O3) ..aOB(6, _omitFieldNames ? '' : 'once') - ..aOM<$4.Timestamp>(11, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..aOM<$9.Int32Value>(12, _omitFieldNames ? '' : 'expectedCount', subBuilder: $9.Int32Value.create) - ..hasRequiredFields = false - ; + ..aOM<$4.Timestamp>(11, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..aOM<$9.Int32Value>(12, _omitFieldNames ? '' : 'expectedCount', + subBuilder: $9.Int32Value.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Target clone() => Target()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Target copyWith(void Function(Target) updates) => super.copyWith((message) => updates(message as Target)) as Target; + Target copyWith(void Function(Target) updates) => + super.copyWith((message) => updates(message as Target)) as Target; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2755,13 +3139,16 @@ class Target extends $pb.GeneratedMessage { Target createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Target getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Target getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Target? _defaultInstance; - Target_TargetType whichTargetType() => _Target_TargetTypeByTag[$_whichOneof(0)]!; + Target_TargetType whichTargetType() => + _Target_TargetTypeByTag[$_whichOneof(0)]!; void clearTargetType() => $_clearField($_whichOneof(0)); - Target_ResumeType whichResumeType() => _Target_ResumeTypeByTag[$_whichOneof(1)]!; + Target_ResumeType whichResumeType() => + _Target_ResumeTypeByTag[$_whichOneof(1)]!; void clearResumeType() => $_clearField($_whichOneof(1)); /// A target specified by a query. @@ -2889,22 +3276,38 @@ class TargetChange extends $pb.GeneratedMessage { TargetChange._(); - factory TargetChange.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory TargetChange.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TargetChange', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'targetChangeType', $pb.PbFieldType.OE, defaultOrMaker: TargetChange_TargetChangeType.NO_CHANGE, valueOf: TargetChange_TargetChangeType.valueOf, enumValues: TargetChange_TargetChangeType.values) + factory TargetChange.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory TargetChange.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TargetChange', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'targetChangeType', $pb.PbFieldType.OE, + defaultOrMaker: TargetChange_TargetChangeType.NO_CHANGE, + valueOf: TargetChange_TargetChangeType.valueOf, + enumValues: TargetChange_TargetChangeType.values) ..p<$core.int>(2, _omitFieldNames ? '' : 'targetIds', $pb.PbFieldType.K3) - ..aOM<$10.Status>(3, _omitFieldNames ? '' : 'cause', subBuilder: $10.Status.create) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'resumeToken', $pb.PbFieldType.OY) - ..aOM<$4.Timestamp>(6, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + ..aOM<$10.Status>(3, _omitFieldNames ? '' : 'cause', + subBuilder: $10.Status.create) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'resumeToken', $pb.PbFieldType.OY) + ..aOM<$4.Timestamp>(6, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TargetChange clone() => TargetChange()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TargetChange copyWith(void Function(TargetChange) updates) => super.copyWith((message) => updates(message as TargetChange)) as TargetChange; + TargetChange copyWith(void Function(TargetChange) updates) => + super.copyWith((message) => updates(message as TargetChange)) + as TargetChange; @$core.override $pb.BuilderInfo get info_ => _i; @@ -2913,16 +3316,19 @@ class TargetChange extends $pb.GeneratedMessage { static TargetChange create() => TargetChange._(); @$core.override TargetChange createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TargetChange getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TargetChange getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TargetChange? _defaultInstance; /// The type of change that occurred. @$pb.TagNumber(1) TargetChange_TargetChangeType get targetChangeType => $_getN(0); @$pb.TagNumber(1) - set targetChangeType(TargetChange_TargetChangeType value) => $_setField(1, value); + set targetChangeType(TargetChange_TargetChangeType value) => + $_setField(1, value); @$pb.TagNumber(1) $core.bool hasTargetChangeType() => $_has(0); @$pb.TagNumber(1) @@ -2983,10 +3389,7 @@ class TargetChange extends $pb.GeneratedMessage { $4.Timestamp ensureReadTime() => $_ensure(4); } -enum ListCollectionIdsRequest_ConsistencySelector { - readTime, - notSet -} +enum ListCollectionIdsRequest_ConsistencySelector { readTime, notSet } /// The request for /// [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds]. @@ -3007,26 +3410,40 @@ class ListCollectionIdsRequest extends $pb.GeneratedMessage { ListCollectionIdsRequest._(); - factory ListCollectionIdsRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ListCollectionIdsRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, ListCollectionIdsRequest_ConsistencySelector> _ListCollectionIdsRequest_ConsistencySelectorByTag = { - 4 : ListCollectionIdsRequest_ConsistencySelector.readTime, - 0 : ListCollectionIdsRequest_ConsistencySelector.notSet + factory ListCollectionIdsRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ListCollectionIdsRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core + .Map<$core.int, ListCollectionIdsRequest_ConsistencySelector> + _ListCollectionIdsRequest_ConsistencySelectorByTag = { + 4: ListCollectionIdsRequest_ConsistencySelector.readTime, + 0: ListCollectionIdsRequest_ConsistencySelector.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListCollectionIdsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListCollectionIdsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [4]) ..aOS(1, _omitFieldNames ? '' : 'parent') ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) ..aOS(3, _omitFieldNames ? '' : 'pageToken') - ..aOM<$4.Timestamp>(4, _omitFieldNames ? '' : 'readTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false - ; + ..aOM<$4.Timestamp>(4, _omitFieldNames ? '' : 'readTime', + subBuilder: $4.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListCollectionIdsRequest clone() => ListCollectionIdsRequest()..mergeFromMessage(this); + ListCollectionIdsRequest clone() => + ListCollectionIdsRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListCollectionIdsRequest copyWith(void Function(ListCollectionIdsRequest) updates) => super.copyWith((message) => updates(message as ListCollectionIdsRequest)) as ListCollectionIdsRequest; + ListCollectionIdsRequest copyWith( + void Function(ListCollectionIdsRequest) updates) => + super.copyWith((message) => updates(message as ListCollectionIdsRequest)) + as ListCollectionIdsRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -3035,12 +3452,15 @@ class ListCollectionIdsRequest extends $pb.GeneratedMessage { static ListCollectionIdsRequest create() => ListCollectionIdsRequest._(); @$core.override ListCollectionIdsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListCollectionIdsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListCollectionIdsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ListCollectionIdsRequest? _defaultInstance; - ListCollectionIdsRequest_ConsistencySelector whichConsistencySelector() => _ListCollectionIdsRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; + ListCollectionIdsRequest_ConsistencySelector whichConsistencySelector() => + _ListCollectionIdsRequest_ConsistencySelectorByTag[$_whichOneof(0)]!; void clearConsistencySelector() => $_clearField($_whichOneof(0)); /// Required. The parent document. In the format: @@ -3109,19 +3529,30 @@ class ListCollectionIdsResponse extends $pb.GeneratedMessage { ListCollectionIdsResponse._(); - factory ListCollectionIdsResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ListCollectionIdsResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListCollectionIdsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory ListCollectionIdsResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ListCollectionIdsResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListCollectionIdsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'collectionIds') ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListCollectionIdsResponse clone() => ListCollectionIdsResponse()..mergeFromMessage(this); + ListCollectionIdsResponse clone() => + ListCollectionIdsResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListCollectionIdsResponse copyWith(void Function(ListCollectionIdsResponse) updates) => super.copyWith((message) => updates(message as ListCollectionIdsResponse)) as ListCollectionIdsResponse; + ListCollectionIdsResponse copyWith( + void Function(ListCollectionIdsResponse) updates) => + super.copyWith((message) => updates(message as ListCollectionIdsResponse)) + as ListCollectionIdsResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -3130,9 +3561,11 @@ class ListCollectionIdsResponse extends $pb.GeneratedMessage { static ListCollectionIdsResponse create() => ListCollectionIdsResponse._(); @$core.override ListCollectionIdsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListCollectionIdsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListCollectionIdsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ListCollectionIdsResponse? _defaultInstance; /// The collection ids. @@ -3167,20 +3600,34 @@ class BatchWriteRequest extends $pb.GeneratedMessage { BatchWriteRequest._(); - factory BatchWriteRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BatchWriteRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BatchWriteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory BatchWriteRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BatchWriteRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchWriteRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'database') - ..pc<$5.Write>(2, _omitFieldNames ? '' : 'writes', $pb.PbFieldType.PM, subBuilder: $5.Write.create) - ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'labels', entryClassName: 'BatchWriteRequest.LabelsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.firestore.v1')) - ..hasRequiredFields = false - ; + ..pc<$5.Write>(2, _omitFieldNames ? '' : 'writes', $pb.PbFieldType.PM, + subBuilder: $5.Write.create) + ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'labels', + entryClassName: 'BatchWriteRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.firestore.v1')) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BatchWriteRequest clone() => BatchWriteRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BatchWriteRequest copyWith(void Function(BatchWriteRequest) updates) => super.copyWith((message) => updates(message as BatchWriteRequest)) as BatchWriteRequest; + BatchWriteRequest copyWith(void Function(BatchWriteRequest) updates) => + super.copyWith((message) => updates(message as BatchWriteRequest)) + as BatchWriteRequest; @$core.override $pb.BuilderInfo get info_ => _i; @@ -3189,9 +3636,11 @@ class BatchWriteRequest extends $pb.GeneratedMessage { static BatchWriteRequest create() => BatchWriteRequest._(); @$core.override BatchWriteRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static BatchWriteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BatchWriteRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BatchWriteRequest? _defaultInstance; /// Required. The database name. In the format: @@ -3233,19 +3682,31 @@ class BatchWriteResponse extends $pb.GeneratedMessage { BatchWriteResponse._(); - factory BatchWriteResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BatchWriteResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BatchWriteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc<$5.WriteResult>(1, _omitFieldNames ? '' : 'writeResults', $pb.PbFieldType.PM, subBuilder: $5.WriteResult.create) - ..pc<$10.Status>(2, _omitFieldNames ? '' : 'status', $pb.PbFieldType.PM, subBuilder: $10.Status.create) - ..hasRequiredFields = false - ; + factory BatchWriteResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BatchWriteResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchWriteResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc<$5.WriteResult>( + 1, _omitFieldNames ? '' : 'writeResults', $pb.PbFieldType.PM, + subBuilder: $5.WriteResult.create) + ..pc<$10.Status>(2, _omitFieldNames ? '' : 'status', $pb.PbFieldType.PM, + subBuilder: $10.Status.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BatchWriteResponse clone() => BatchWriteResponse()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BatchWriteResponse copyWith(void Function(BatchWriteResponse) updates) => super.copyWith((message) => updates(message as BatchWriteResponse)) as BatchWriteResponse; + BatchWriteResponse copyWith(void Function(BatchWriteResponse) updates) => + super.copyWith((message) => updates(message as BatchWriteResponse)) + as BatchWriteResponse; @$core.override $pb.BuilderInfo get info_ => _i; @@ -3254,9 +3715,11 @@ class BatchWriteResponse extends $pb.GeneratedMessage { static BatchWriteResponse create() => BatchWriteResponse._(); @$core.override BatchWriteResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static BatchWriteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BatchWriteResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BatchWriteResponse? _defaultInstance; /// The result of applying the writes. @@ -3274,6 +3737,7 @@ class BatchWriteResponse extends $pb.GeneratedMessage { $pb.PbList<$10.Status> get status => $_getList(1); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbenum.dart index a5b2f0f5..663b0c9b 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbenum.dart @@ -17,11 +17,17 @@ import 'package:protobuf/protobuf.dart' as $pb; /// The type of change. class TargetChange_TargetChangeType extends $pb.ProtobufEnum { /// No change has occurred. Used only to send an updated `resume_token`. - static const TargetChange_TargetChangeType NO_CHANGE = TargetChange_TargetChangeType._(0, _omitEnumNames ? '' : 'NO_CHANGE'); + static const TargetChange_TargetChangeType NO_CHANGE = + TargetChange_TargetChangeType._(0, _omitEnumNames ? '' : 'NO_CHANGE'); + /// The targets have been added. - static const TargetChange_TargetChangeType ADD = TargetChange_TargetChangeType._(1, _omitEnumNames ? '' : 'ADD'); + static const TargetChange_TargetChangeType ADD = + TargetChange_TargetChangeType._(1, _omitEnumNames ? '' : 'ADD'); + /// The targets have been removed. - static const TargetChange_TargetChangeType REMOVE = TargetChange_TargetChangeType._(2, _omitEnumNames ? '' : 'REMOVE'); + static const TargetChange_TargetChangeType REMOVE = + TargetChange_TargetChangeType._(2, _omitEnumNames ? '' : 'REMOVE'); + /// The targets reflect all changes committed before the targets were added /// to the stream. /// @@ -30,15 +36,19 @@ class TargetChange_TargetChangeType extends $pb.ProtobufEnum { /// /// Listeners can wait for this change if read-after-write semantics /// are desired. - static const TargetChange_TargetChangeType CURRENT = TargetChange_TargetChangeType._(3, _omitEnumNames ? '' : 'CURRENT'); + static const TargetChange_TargetChangeType CURRENT = + TargetChange_TargetChangeType._(3, _omitEnumNames ? '' : 'CURRENT'); + /// The targets have been reset, and a new initial state for the targets /// will be returned in subsequent changes. /// /// After the initial state is complete, `CURRENT` will be returned even /// if the target was previously indicated to be `CURRENT`. - static const TargetChange_TargetChangeType RESET = TargetChange_TargetChangeType._(4, _omitEnumNames ? '' : 'RESET'); + static const TargetChange_TargetChangeType RESET = + TargetChange_TargetChangeType._(4, _omitEnumNames ? '' : 'RESET'); - static const $core.List values = [ + static const $core.List values = + [ NO_CHANGE, ADD, REMOVE, @@ -46,11 +56,13 @@ class TargetChange_TargetChangeType extends $pb.ProtobufEnum { RESET, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); - static TargetChange_TargetChangeType? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 4); + static TargetChange_TargetChangeType? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const TargetChange_TargetChangeType._(super.value, super.name); } - -const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbgrpc.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbgrpc.dart index 6ca81adb..d5ab458a 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbgrpc.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/firestore.pbgrpc.dart @@ -44,22 +44,34 @@ class FirestoreClient extends $grpc.Client { FirestoreClient(super.channel, {super.options, super.interceptors}); /// Gets a single document. - $grpc.ResponseFuture<$1.Document> getDocument($0.GetDocumentRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$1.Document> getDocument( + $0.GetDocumentRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getDocument, request, options: options); } /// Lists documents. - $grpc.ResponseFuture<$0.ListDocumentsResponse> listDocuments($0.ListDocumentsRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$0.ListDocumentsResponse> listDocuments( + $0.ListDocumentsRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$listDocuments, request, options: options); } /// Updates or inserts a document. - $grpc.ResponseFuture<$1.Document> updateDocument($0.UpdateDocumentRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$1.Document> updateDocument( + $0.UpdateDocumentRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$updateDocument, request, options: options); } /// Deletes a document. - $grpc.ResponseFuture<$2.Empty> deleteDocument($0.DeleteDocumentRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$2.Empty> deleteDocument( + $0.DeleteDocumentRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$deleteDocument, request, options: options); } @@ -67,28 +79,47 @@ class FirestoreClient extends $grpc.Client { /// /// Documents returned by this method are not guaranteed to be returned in the /// same order that they were requested. - $grpc.ResponseStream<$0.BatchGetDocumentsResponse> batchGetDocuments($0.BatchGetDocumentsRequest request, {$grpc.CallOptions? options,}) { - return $createStreamingCall(_$batchGetDocuments, $async.Stream.fromIterable([request]), options: options); + $grpc.ResponseStream<$0.BatchGetDocumentsResponse> batchGetDocuments( + $0.BatchGetDocumentsRequest request, { + $grpc.CallOptions? options, + }) { + return $createStreamingCall( + _$batchGetDocuments, $async.Stream.fromIterable([request]), + options: options); } /// Starts a new transaction. - $grpc.ResponseFuture<$0.BeginTransactionResponse> beginTransaction($0.BeginTransactionRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$0.BeginTransactionResponse> beginTransaction( + $0.BeginTransactionRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$beginTransaction, request, options: options); } /// Commits a transaction, while optionally updating documents. - $grpc.ResponseFuture<$0.CommitResponse> commit($0.CommitRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$0.CommitResponse> commit( + $0.CommitRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$commit, request, options: options); } /// Rolls back a transaction. - $grpc.ResponseFuture<$2.Empty> rollback($0.RollbackRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$2.Empty> rollback( + $0.RollbackRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$rollback, request, options: options); } /// Runs a query. - $grpc.ResponseStream<$0.RunQueryResponse> runQuery($0.RunQueryRequest request, {$grpc.CallOptions? options,}) { - return $createStreamingCall(_$runQuery, $async.Stream.fromIterable([request]), options: options); + $grpc.ResponseStream<$0.RunQueryResponse> runQuery( + $0.RunQueryRequest request, { + $grpc.CallOptions? options, + }) { + return $createStreamingCall( + _$runQuery, $async.Stream.fromIterable([request]), + options: options); } /// Runs an aggregation query. @@ -104,31 +135,48 @@ class FirestoreClient extends $grpc.Client { /// -- Return the number of documents in table given a filter. /// SELECT COUNT(*) FROM ( SELECT * FROM k where a = true ); /// ``` - $grpc.ResponseStream<$0.RunAggregationQueryResponse> runAggregationQuery($0.RunAggregationQueryRequest request, {$grpc.CallOptions? options,}) { - return $createStreamingCall(_$runAggregationQuery, $async.Stream.fromIterable([request]), options: options); + $grpc.ResponseStream<$0.RunAggregationQueryResponse> runAggregationQuery( + $0.RunAggregationQueryRequest request, { + $grpc.CallOptions? options, + }) { + return $createStreamingCall( + _$runAggregationQuery, $async.Stream.fromIterable([request]), + options: options); } /// Partitions a query by returning partition cursors that can be used to run /// the query in parallel. The returned partition cursors are split points that /// can be used by RunQuery as starting/end points for the query results. - $grpc.ResponseFuture<$0.PartitionQueryResponse> partitionQuery($0.PartitionQueryRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$0.PartitionQueryResponse> partitionQuery( + $0.PartitionQueryRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$partitionQuery, request, options: options); } /// Streams batches of document updates and deletes, in order. This method is /// only available via gRPC or WebChannel (not REST). - $grpc.ResponseStream<$0.WriteResponse> write($async.Stream<$0.WriteRequest> request, {$grpc.CallOptions? options,}) { + $grpc.ResponseStream<$0.WriteResponse> write( + $async.Stream<$0.WriteRequest> request, { + $grpc.CallOptions? options, + }) { return $createStreamingCall(_$write, request, options: options); } /// Listens to changes. This method is only available via gRPC or WebChannel /// (not REST). - $grpc.ResponseStream<$0.ListenResponse> listen($async.Stream<$0.ListenRequest> request, {$grpc.CallOptions? options,}) { + $grpc.ResponseStream<$0.ListenResponse> listen( + $async.Stream<$0.ListenRequest> request, { + $grpc.CallOptions? options, + }) { return $createStreamingCall(_$listen, request, options: options); } /// Lists all the collection IDs underneath a document. - $grpc.ResponseFuture<$0.ListCollectionIdsResponse> listCollectionIds($0.ListCollectionIdsRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$0.ListCollectionIdsResponse> listCollectionIds( + $0.ListCollectionIdsRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$listCollectionIds, request, options: options); } @@ -142,81 +190,101 @@ class FirestoreClient extends $grpc.Client { /// /// If you require an atomically applied set of writes, use /// [Commit][google.firestore.v1.Firestore.Commit] instead. - $grpc.ResponseFuture<$0.BatchWriteResponse> batchWrite($0.BatchWriteRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$0.BatchWriteResponse> batchWrite( + $0.BatchWriteRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$batchWrite, request, options: options); } /// Creates a new document. - $grpc.ResponseFuture<$1.Document> createDocument($0.CreateDocumentRequest request, {$grpc.CallOptions? options,}) { + $grpc.ResponseFuture<$1.Document> createDocument( + $0.CreateDocumentRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$createDocument, request, options: options); } - // method descriptors - - static final _$getDocument = $grpc.ClientMethod<$0.GetDocumentRequest, $1.Document>( - '/google.firestore.v1.Firestore/GetDocument', - ($0.GetDocumentRequest value) => value.writeToBuffer(), - $1.Document.fromBuffer); - static final _$listDocuments = $grpc.ClientMethod<$0.ListDocumentsRequest, $0.ListDocumentsResponse>( - '/google.firestore.v1.Firestore/ListDocuments', - ($0.ListDocumentsRequest value) => value.writeToBuffer(), - $0.ListDocumentsResponse.fromBuffer); - static final _$updateDocument = $grpc.ClientMethod<$0.UpdateDocumentRequest, $1.Document>( - '/google.firestore.v1.Firestore/UpdateDocument', - ($0.UpdateDocumentRequest value) => value.writeToBuffer(), - $1.Document.fromBuffer); - static final _$deleteDocument = $grpc.ClientMethod<$0.DeleteDocumentRequest, $2.Empty>( - '/google.firestore.v1.Firestore/DeleteDocument', - ($0.DeleteDocumentRequest value) => value.writeToBuffer(), - $2.Empty.fromBuffer); - static final _$batchGetDocuments = $grpc.ClientMethod<$0.BatchGetDocumentsRequest, $0.BatchGetDocumentsResponse>( + // method descriptors + + static final _$getDocument = + $grpc.ClientMethod<$0.GetDocumentRequest, $1.Document>( + '/google.firestore.v1.Firestore/GetDocument', + ($0.GetDocumentRequest value) => value.writeToBuffer(), + $1.Document.fromBuffer); + static final _$listDocuments = + $grpc.ClientMethod<$0.ListDocumentsRequest, $0.ListDocumentsResponse>( + '/google.firestore.v1.Firestore/ListDocuments', + ($0.ListDocumentsRequest value) => value.writeToBuffer(), + $0.ListDocumentsResponse.fromBuffer); + static final _$updateDocument = + $grpc.ClientMethod<$0.UpdateDocumentRequest, $1.Document>( + '/google.firestore.v1.Firestore/UpdateDocument', + ($0.UpdateDocumentRequest value) => value.writeToBuffer(), + $1.Document.fromBuffer); + static final _$deleteDocument = + $grpc.ClientMethod<$0.DeleteDocumentRequest, $2.Empty>( + '/google.firestore.v1.Firestore/DeleteDocument', + ($0.DeleteDocumentRequest value) => value.writeToBuffer(), + $2.Empty.fromBuffer); + static final _$batchGetDocuments = $grpc.ClientMethod< + $0.BatchGetDocumentsRequest, $0.BatchGetDocumentsResponse>( '/google.firestore.v1.Firestore/BatchGetDocuments', ($0.BatchGetDocumentsRequest value) => value.writeToBuffer(), $0.BatchGetDocumentsResponse.fromBuffer); - static final _$beginTransaction = $grpc.ClientMethod<$0.BeginTransactionRequest, $0.BeginTransactionResponse>( + static final _$beginTransaction = $grpc.ClientMethod< + $0.BeginTransactionRequest, $0.BeginTransactionResponse>( '/google.firestore.v1.Firestore/BeginTransaction', ($0.BeginTransactionRequest value) => value.writeToBuffer(), $0.BeginTransactionResponse.fromBuffer); - static final _$commit = $grpc.ClientMethod<$0.CommitRequest, $0.CommitResponse>( - '/google.firestore.v1.Firestore/Commit', - ($0.CommitRequest value) => value.writeToBuffer(), - $0.CommitResponse.fromBuffer); + static final _$commit = + $grpc.ClientMethod<$0.CommitRequest, $0.CommitResponse>( + '/google.firestore.v1.Firestore/Commit', + ($0.CommitRequest value) => value.writeToBuffer(), + $0.CommitResponse.fromBuffer); static final _$rollback = $grpc.ClientMethod<$0.RollbackRequest, $2.Empty>( '/google.firestore.v1.Firestore/Rollback', ($0.RollbackRequest value) => value.writeToBuffer(), $2.Empty.fromBuffer); - static final _$runQuery = $grpc.ClientMethod<$0.RunQueryRequest, $0.RunQueryResponse>( - '/google.firestore.v1.Firestore/RunQuery', - ($0.RunQueryRequest value) => value.writeToBuffer(), - $0.RunQueryResponse.fromBuffer); - static final _$runAggregationQuery = $grpc.ClientMethod<$0.RunAggregationQueryRequest, $0.RunAggregationQueryResponse>( + static final _$runQuery = + $grpc.ClientMethod<$0.RunQueryRequest, $0.RunQueryResponse>( + '/google.firestore.v1.Firestore/RunQuery', + ($0.RunQueryRequest value) => value.writeToBuffer(), + $0.RunQueryResponse.fromBuffer); + static final _$runAggregationQuery = $grpc.ClientMethod< + $0.RunAggregationQueryRequest, $0.RunAggregationQueryResponse>( '/google.firestore.v1.Firestore/RunAggregationQuery', ($0.RunAggregationQueryRequest value) => value.writeToBuffer(), $0.RunAggregationQueryResponse.fromBuffer); - static final _$partitionQuery = $grpc.ClientMethod<$0.PartitionQueryRequest, $0.PartitionQueryResponse>( - '/google.firestore.v1.Firestore/PartitionQuery', - ($0.PartitionQueryRequest value) => value.writeToBuffer(), - $0.PartitionQueryResponse.fromBuffer); + static final _$partitionQuery = + $grpc.ClientMethod<$0.PartitionQueryRequest, $0.PartitionQueryResponse>( + '/google.firestore.v1.Firestore/PartitionQuery', + ($0.PartitionQueryRequest value) => value.writeToBuffer(), + $0.PartitionQueryResponse.fromBuffer); static final _$write = $grpc.ClientMethod<$0.WriteRequest, $0.WriteResponse>( '/google.firestore.v1.Firestore/Write', ($0.WriteRequest value) => value.writeToBuffer(), $0.WriteResponse.fromBuffer); - static final _$listen = $grpc.ClientMethod<$0.ListenRequest, $0.ListenResponse>( - '/google.firestore.v1.Firestore/Listen', - ($0.ListenRequest value) => value.writeToBuffer(), - $0.ListenResponse.fromBuffer); - static final _$listCollectionIds = $grpc.ClientMethod<$0.ListCollectionIdsRequest, $0.ListCollectionIdsResponse>( + static final _$listen = + $grpc.ClientMethod<$0.ListenRequest, $0.ListenResponse>( + '/google.firestore.v1.Firestore/Listen', + ($0.ListenRequest value) => value.writeToBuffer(), + $0.ListenResponse.fromBuffer); + static final _$listCollectionIds = $grpc.ClientMethod< + $0.ListCollectionIdsRequest, $0.ListCollectionIdsResponse>( '/google.firestore.v1.Firestore/ListCollectionIds', ($0.ListCollectionIdsRequest value) => value.writeToBuffer(), $0.ListCollectionIdsResponse.fromBuffer); - static final _$batchWrite = $grpc.ClientMethod<$0.BatchWriteRequest, $0.BatchWriteResponse>( - '/google.firestore.v1.Firestore/BatchWrite', - ($0.BatchWriteRequest value) => value.writeToBuffer(), - $0.BatchWriteResponse.fromBuffer); - static final _$createDocument = $grpc.ClientMethod<$0.CreateDocumentRequest, $1.Document>( - '/google.firestore.v1.Firestore/CreateDocument', - ($0.CreateDocumentRequest value) => value.writeToBuffer(), - $1.Document.fromBuffer); + static final _$batchWrite = + $grpc.ClientMethod<$0.BatchWriteRequest, $0.BatchWriteResponse>( + '/google.firestore.v1.Firestore/BatchWrite', + ($0.BatchWriteRequest value) => value.writeToBuffer(), + $0.BatchWriteResponse.fromBuffer); + static final _$createDocument = + $grpc.ClientMethod<$0.CreateDocumentRequest, $1.Document>( + '/google.firestore.v1.Firestore/CreateDocument', + ($0.CreateDocumentRequest value) => value.writeToBuffer(), + $1.Document.fromBuffer); } @$pb.GrpcServiceName('google.firestore.v1.Firestore') @@ -229,42 +297,51 @@ abstract class FirestoreServiceBase extends $grpc.Service { getDocument_Pre, false, false, - ($core.List<$core.int> value) => $0.GetDocumentRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.GetDocumentRequest.fromBuffer(value), ($1.Document value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ListDocumentsRequest, $0.ListDocumentsResponse>( - 'ListDocuments', - listDocuments_Pre, - false, - false, - ($core.List<$core.int> value) => $0.ListDocumentsRequest.fromBuffer(value), - ($0.ListDocumentsResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$0.ListDocumentsRequest, $0.ListDocumentsResponse>( + 'ListDocuments', + listDocuments_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.ListDocumentsRequest.fromBuffer(value), + ($0.ListDocumentsResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.UpdateDocumentRequest, $1.Document>( 'UpdateDocument', updateDocument_Pre, false, false, - ($core.List<$core.int> value) => $0.UpdateDocumentRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.UpdateDocumentRequest.fromBuffer(value), ($1.Document value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.DeleteDocumentRequest, $2.Empty>( 'DeleteDocument', deleteDocument_Pre, false, false, - ($core.List<$core.int> value) => $0.DeleteDocumentRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.DeleteDocumentRequest.fromBuffer(value), ($2.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.BatchGetDocumentsRequest, $0.BatchGetDocumentsResponse>( + $addMethod($grpc.ServiceMethod<$0.BatchGetDocumentsRequest, + $0.BatchGetDocumentsResponse>( 'BatchGetDocuments', batchGetDocuments_Pre, false, true, - ($core.List<$core.int> value) => $0.BatchGetDocumentsRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.BatchGetDocumentsRequest.fromBuffer(value), ($0.BatchGetDocumentsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.BeginTransactionRequest, $0.BeginTransactionResponse>( + $addMethod($grpc.ServiceMethod<$0.BeginTransactionRequest, + $0.BeginTransactionResponse>( 'BeginTransaction', beginTransaction_Pre, false, false, - ($core.List<$core.int> value) => $0.BeginTransactionRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.BeginTransactionRequest.fromBuffer(value), ($0.BeginTransactionResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.CommitRequest, $0.CommitResponse>( 'Commit', @@ -287,19 +364,23 @@ abstract class FirestoreServiceBase extends $grpc.Service { true, ($core.List<$core.int> value) => $0.RunQueryRequest.fromBuffer(value), ($0.RunQueryResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.RunAggregationQueryRequest, $0.RunAggregationQueryResponse>( + $addMethod($grpc.ServiceMethod<$0.RunAggregationQueryRequest, + $0.RunAggregationQueryResponse>( 'RunAggregationQuery', runAggregationQuery_Pre, false, true, - ($core.List<$core.int> value) => $0.RunAggregationQueryRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.RunAggregationQueryRequest.fromBuffer(value), ($0.RunAggregationQueryResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.PartitionQueryRequest, $0.PartitionQueryResponse>( + $addMethod($grpc.ServiceMethod<$0.PartitionQueryRequest, + $0.PartitionQueryResponse>( 'PartitionQuery', partitionQuery_Pre, false, false, - ($core.List<$core.int> value) => $0.PartitionQueryRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.PartitionQueryRequest.fromBuffer(value), ($0.PartitionQueryResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.WriteRequest, $0.WriteResponse>( 'Write', @@ -315,12 +396,14 @@ abstract class FirestoreServiceBase extends $grpc.Service { true, ($core.List<$core.int> value) => $0.ListenRequest.fromBuffer(value), ($0.ListenResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ListCollectionIdsRequest, $0.ListCollectionIdsResponse>( + $addMethod($grpc.ServiceMethod<$0.ListCollectionIdsRequest, + $0.ListCollectionIdsResponse>( 'ListCollectionIds', listCollectionIds_Pre, false, false, - ($core.List<$core.int> value) => $0.ListCollectionIdsRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.ListCollectionIdsRequest.fromBuffer(value), ($0.ListCollectionIdsResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.BatchWriteRequest, $0.BatchWriteResponse>( 'BatchWrite', @@ -334,96 +417,132 @@ abstract class FirestoreServiceBase extends $grpc.Service { createDocument_Pre, false, false, - ($core.List<$core.int> value) => $0.CreateDocumentRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.CreateDocumentRequest.fromBuffer(value), ($1.Document value) => value.writeToBuffer())); } - $async.Future<$1.Document> getDocument_Pre($grpc.ServiceCall $call, $async.Future<$0.GetDocumentRequest> $request) async { + $async.Future<$1.Document> getDocument_Pre($grpc.ServiceCall $call, + $async.Future<$0.GetDocumentRequest> $request) async { return getDocument($call, await $request); } - $async.Future<$1.Document> getDocument($grpc.ServiceCall call, $0.GetDocumentRequest request); + $async.Future<$1.Document> getDocument( + $grpc.ServiceCall call, $0.GetDocumentRequest request); - $async.Future<$0.ListDocumentsResponse> listDocuments_Pre($grpc.ServiceCall $call, $async.Future<$0.ListDocumentsRequest> $request) async { + $async.Future<$0.ListDocumentsResponse> listDocuments_Pre( + $grpc.ServiceCall $call, + $async.Future<$0.ListDocumentsRequest> $request) async { return listDocuments($call, await $request); } - $async.Future<$0.ListDocumentsResponse> listDocuments($grpc.ServiceCall call, $0.ListDocumentsRequest request); + $async.Future<$0.ListDocumentsResponse> listDocuments( + $grpc.ServiceCall call, $0.ListDocumentsRequest request); - $async.Future<$1.Document> updateDocument_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdateDocumentRequest> $request) async { + $async.Future<$1.Document> updateDocument_Pre($grpc.ServiceCall $call, + $async.Future<$0.UpdateDocumentRequest> $request) async { return updateDocument($call, await $request); } - $async.Future<$1.Document> updateDocument($grpc.ServiceCall call, $0.UpdateDocumentRequest request); + $async.Future<$1.Document> updateDocument( + $grpc.ServiceCall call, $0.UpdateDocumentRequest request); - $async.Future<$2.Empty> deleteDocument_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteDocumentRequest> $request) async { + $async.Future<$2.Empty> deleteDocument_Pre($grpc.ServiceCall $call, + $async.Future<$0.DeleteDocumentRequest> $request) async { return deleteDocument($call, await $request); } - $async.Future<$2.Empty> deleteDocument($grpc.ServiceCall call, $0.DeleteDocumentRequest request); + $async.Future<$2.Empty> deleteDocument( + $grpc.ServiceCall call, $0.DeleteDocumentRequest request); - $async.Stream<$0.BatchGetDocumentsResponse> batchGetDocuments_Pre($grpc.ServiceCall $call, $async.Future<$0.BatchGetDocumentsRequest> $request) async* { + $async.Stream<$0.BatchGetDocumentsResponse> batchGetDocuments_Pre( + $grpc.ServiceCall $call, + $async.Future<$0.BatchGetDocumentsRequest> $request) async* { yield* batchGetDocuments($call, await $request); } - $async.Stream<$0.BatchGetDocumentsResponse> batchGetDocuments($grpc.ServiceCall call, $0.BatchGetDocumentsRequest request); + $async.Stream<$0.BatchGetDocumentsResponse> batchGetDocuments( + $grpc.ServiceCall call, $0.BatchGetDocumentsRequest request); - $async.Future<$0.BeginTransactionResponse> beginTransaction_Pre($grpc.ServiceCall $call, $async.Future<$0.BeginTransactionRequest> $request) async { + $async.Future<$0.BeginTransactionResponse> beginTransaction_Pre( + $grpc.ServiceCall $call, + $async.Future<$0.BeginTransactionRequest> $request) async { return beginTransaction($call, await $request); } - $async.Future<$0.BeginTransactionResponse> beginTransaction($grpc.ServiceCall call, $0.BeginTransactionRequest request); + $async.Future<$0.BeginTransactionResponse> beginTransaction( + $grpc.ServiceCall call, $0.BeginTransactionRequest request); - $async.Future<$0.CommitResponse> commit_Pre($grpc.ServiceCall $call, $async.Future<$0.CommitRequest> $request) async { + $async.Future<$0.CommitResponse> commit_Pre( + $grpc.ServiceCall $call, $async.Future<$0.CommitRequest> $request) async { return commit($call, await $request); } - $async.Future<$0.CommitResponse> commit($grpc.ServiceCall call, $0.CommitRequest request); + $async.Future<$0.CommitResponse> commit( + $grpc.ServiceCall call, $0.CommitRequest request); - $async.Future<$2.Empty> rollback_Pre($grpc.ServiceCall $call, $async.Future<$0.RollbackRequest> $request) async { + $async.Future<$2.Empty> rollback_Pre($grpc.ServiceCall $call, + $async.Future<$0.RollbackRequest> $request) async { return rollback($call, await $request); } - $async.Future<$2.Empty> rollback($grpc.ServiceCall call, $0.RollbackRequest request); + $async.Future<$2.Empty> rollback( + $grpc.ServiceCall call, $0.RollbackRequest request); - $async.Stream<$0.RunQueryResponse> runQuery_Pre($grpc.ServiceCall $call, $async.Future<$0.RunQueryRequest> $request) async* { + $async.Stream<$0.RunQueryResponse> runQuery_Pre($grpc.ServiceCall $call, + $async.Future<$0.RunQueryRequest> $request) async* { yield* runQuery($call, await $request); } - $async.Stream<$0.RunQueryResponse> runQuery($grpc.ServiceCall call, $0.RunQueryRequest request); + $async.Stream<$0.RunQueryResponse> runQuery( + $grpc.ServiceCall call, $0.RunQueryRequest request); - $async.Stream<$0.RunAggregationQueryResponse> runAggregationQuery_Pre($grpc.ServiceCall $call, $async.Future<$0.RunAggregationQueryRequest> $request) async* { + $async.Stream<$0.RunAggregationQueryResponse> runAggregationQuery_Pre( + $grpc.ServiceCall $call, + $async.Future<$0.RunAggregationQueryRequest> $request) async* { yield* runAggregationQuery($call, await $request); } - $async.Stream<$0.RunAggregationQueryResponse> runAggregationQuery($grpc.ServiceCall call, $0.RunAggregationQueryRequest request); + $async.Stream<$0.RunAggregationQueryResponse> runAggregationQuery( + $grpc.ServiceCall call, $0.RunAggregationQueryRequest request); - $async.Future<$0.PartitionQueryResponse> partitionQuery_Pre($grpc.ServiceCall $call, $async.Future<$0.PartitionQueryRequest> $request) async { + $async.Future<$0.PartitionQueryResponse> partitionQuery_Pre( + $grpc.ServiceCall $call, + $async.Future<$0.PartitionQueryRequest> $request) async { return partitionQuery($call, await $request); } - $async.Future<$0.PartitionQueryResponse> partitionQuery($grpc.ServiceCall call, $0.PartitionQueryRequest request); + $async.Future<$0.PartitionQueryResponse> partitionQuery( + $grpc.ServiceCall call, $0.PartitionQueryRequest request); - $async.Stream<$0.WriteResponse> write($grpc.ServiceCall call, $async.Stream<$0.WriteRequest> request); + $async.Stream<$0.WriteResponse> write( + $grpc.ServiceCall call, $async.Stream<$0.WriteRequest> request); - $async.Stream<$0.ListenResponse> listen($grpc.ServiceCall call, $async.Stream<$0.ListenRequest> request); + $async.Stream<$0.ListenResponse> listen( + $grpc.ServiceCall call, $async.Stream<$0.ListenRequest> request); - $async.Future<$0.ListCollectionIdsResponse> listCollectionIds_Pre($grpc.ServiceCall $call, $async.Future<$0.ListCollectionIdsRequest> $request) async { + $async.Future<$0.ListCollectionIdsResponse> listCollectionIds_Pre( + $grpc.ServiceCall $call, + $async.Future<$0.ListCollectionIdsRequest> $request) async { return listCollectionIds($call, await $request); } - $async.Future<$0.ListCollectionIdsResponse> listCollectionIds($grpc.ServiceCall call, $0.ListCollectionIdsRequest request); + $async.Future<$0.ListCollectionIdsResponse> listCollectionIds( + $grpc.ServiceCall call, $0.ListCollectionIdsRequest request); - $async.Future<$0.BatchWriteResponse> batchWrite_Pre($grpc.ServiceCall $call, $async.Future<$0.BatchWriteRequest> $request) async { + $async.Future<$0.BatchWriteResponse> batchWrite_Pre($grpc.ServiceCall $call, + $async.Future<$0.BatchWriteRequest> $request) async { return batchWrite($call, await $request); } - $async.Future<$0.BatchWriteResponse> batchWrite($grpc.ServiceCall call, $0.BatchWriteRequest request); + $async.Future<$0.BatchWriteResponse> batchWrite( + $grpc.ServiceCall call, $0.BatchWriteRequest request); - $async.Future<$1.Document> createDocument_Pre($grpc.ServiceCall $call, $async.Future<$0.CreateDocumentRequest> $request) async { + $async.Future<$1.Document> createDocument_Pre($grpc.ServiceCall $call, + $async.Future<$0.CreateDocumentRequest> $request) async { return createDocument($call, await $request); } - $async.Future<$1.Document> createDocument($grpc.ServiceCall call, $0.CreateDocumentRequest request); - + $async.Future<$1.Document> createDocument( + $grpc.ServiceCall call, $0.CreateDocumentRequest request); } diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pb.dart index 5c658ecb..07fd1842 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pb.dart @@ -36,30 +36,47 @@ class StructuredQuery_CollectionSelector extends $pb.GeneratedMessage { StructuredQuery_CollectionSelector._(); - factory StructuredQuery_CollectionSelector.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_CollectionSelector.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.CollectionSelector', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory StructuredQuery_CollectionSelector.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_CollectionSelector.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.CollectionSelector', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(2, _omitFieldNames ? '' : 'collectionId') ..aOB(3, _omitFieldNames ? '' : 'allDescendants') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_CollectionSelector clone() => StructuredQuery_CollectionSelector()..mergeFromMessage(this); + StructuredQuery_CollectionSelector clone() => + StructuredQuery_CollectionSelector()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_CollectionSelector copyWith(void Function(StructuredQuery_CollectionSelector) updates) => super.copyWith((message) => updates(message as StructuredQuery_CollectionSelector)) as StructuredQuery_CollectionSelector; + StructuredQuery_CollectionSelector copyWith( + void Function(StructuredQuery_CollectionSelector) updates) => + super.copyWith((message) => + updates(message as StructuredQuery_CollectionSelector)) + as StructuredQuery_CollectionSelector; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredQuery_CollectionSelector create() => StructuredQuery_CollectionSelector._(); + static StructuredQuery_CollectionSelector create() => + StructuredQuery_CollectionSelector._(); @$core.override StructuredQuery_CollectionSelector createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_CollectionSelector getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_CollectionSelector getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static StructuredQuery_CollectionSelector? _defaultInstance; /// The collection ID. @@ -87,9 +104,9 @@ class StructuredQuery_CollectionSelector extends $pb.GeneratedMessage { } enum StructuredQuery_Filter_FilterType { - compositeFilter, - fieldFilter, - unaryFilter, + compositeFilter, + fieldFilter, + unaryFilter, notSet } @@ -109,27 +126,43 @@ class StructuredQuery_Filter extends $pb.GeneratedMessage { StructuredQuery_Filter._(); - factory StructuredQuery_Filter.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_Filter.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, StructuredQuery_Filter_FilterType> _StructuredQuery_Filter_FilterTypeByTag = { - 1 : StructuredQuery_Filter_FilterType.compositeFilter, - 2 : StructuredQuery_Filter_FilterType.fieldFilter, - 3 : StructuredQuery_Filter_FilterType.unaryFilter, - 0 : StructuredQuery_Filter_FilterType.notSet + factory StructuredQuery_Filter.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_Filter.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, StructuredQuery_Filter_FilterType> + _StructuredQuery_Filter_FilterTypeByTag = { + 1: StructuredQuery_Filter_FilterType.compositeFilter, + 2: StructuredQuery_Filter_FilterType.fieldFilter, + 3: StructuredQuery_Filter_FilterType.unaryFilter, + 0: StructuredQuery_Filter_FilterType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.Filter', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.Filter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [1, 2, 3]) - ..aOM(1, _omitFieldNames ? '' : 'compositeFilter', subBuilder: StructuredQuery_CompositeFilter.create) - ..aOM(2, _omitFieldNames ? '' : 'fieldFilter', subBuilder: StructuredQuery_FieldFilter.create) - ..aOM(3, _omitFieldNames ? '' : 'unaryFilter', subBuilder: StructuredQuery_UnaryFilter.create) - ..hasRequiredFields = false - ; + ..aOM( + 1, _omitFieldNames ? '' : 'compositeFilter', + subBuilder: StructuredQuery_CompositeFilter.create) + ..aOM(2, _omitFieldNames ? '' : 'fieldFilter', + subBuilder: StructuredQuery_FieldFilter.create) + ..aOM(3, _omitFieldNames ? '' : 'unaryFilter', + subBuilder: StructuredQuery_UnaryFilter.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_Filter clone() => StructuredQuery_Filter()..mergeFromMessage(this); + StructuredQuery_Filter clone() => + StructuredQuery_Filter()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_Filter copyWith(void Function(StructuredQuery_Filter) updates) => super.copyWith((message) => updates(message as StructuredQuery_Filter)) as StructuredQuery_Filter; + StructuredQuery_Filter copyWith( + void Function(StructuredQuery_Filter) updates) => + super.copyWith((message) => updates(message as StructuredQuery_Filter)) + as StructuredQuery_Filter; @$core.override $pb.BuilderInfo get info_ => _i; @@ -138,19 +171,23 @@ class StructuredQuery_Filter extends $pb.GeneratedMessage { static StructuredQuery_Filter create() => StructuredQuery_Filter._(); @$core.override StructuredQuery_Filter createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_Filter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_Filter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery_Filter? _defaultInstance; - StructuredQuery_Filter_FilterType whichFilterType() => _StructuredQuery_Filter_FilterTypeByTag[$_whichOneof(0)]!; + StructuredQuery_Filter_FilterType whichFilterType() => + _StructuredQuery_Filter_FilterTypeByTag[$_whichOneof(0)]!; void clearFilterType() => $_clearField($_whichOneof(0)); /// A composite filter. @$pb.TagNumber(1) StructuredQuery_CompositeFilter get compositeFilter => $_getN(0); @$pb.TagNumber(1) - set compositeFilter(StructuredQuery_CompositeFilter value) => $_setField(1, value); + set compositeFilter(StructuredQuery_CompositeFilter value) => + $_setField(1, value); @$pb.TagNumber(1) $core.bool hasCompositeFilter() => $_has(0); @$pb.TagNumber(1) @@ -197,37 +234,61 @@ class StructuredQuery_CompositeFilter extends $pb.GeneratedMessage { StructuredQuery_CompositeFilter._(); - factory StructuredQuery_CompositeFilter.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_CompositeFilter.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.CompositeFilter', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, defaultOrMaker: StructuredQuery_CompositeFilter_Operator.OPERATOR_UNSPECIFIED, valueOf: StructuredQuery_CompositeFilter_Operator.valueOf, enumValues: StructuredQuery_CompositeFilter_Operator.values) - ..pc(2, _omitFieldNames ? '' : 'filters', $pb.PbFieldType.PM, subBuilder: StructuredQuery_Filter.create) - ..hasRequiredFields = false - ; + factory StructuredQuery_CompositeFilter.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_CompositeFilter.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.CompositeFilter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, + defaultOrMaker: + StructuredQuery_CompositeFilter_Operator.OPERATOR_UNSPECIFIED, + valueOf: StructuredQuery_CompositeFilter_Operator.valueOf, + enumValues: StructuredQuery_CompositeFilter_Operator.values) + ..pc( + 2, _omitFieldNames ? '' : 'filters', $pb.PbFieldType.PM, + subBuilder: StructuredQuery_Filter.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_CompositeFilter clone() => StructuredQuery_CompositeFilter()..mergeFromMessage(this); + StructuredQuery_CompositeFilter clone() => + StructuredQuery_CompositeFilter()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_CompositeFilter copyWith(void Function(StructuredQuery_CompositeFilter) updates) => super.copyWith((message) => updates(message as StructuredQuery_CompositeFilter)) as StructuredQuery_CompositeFilter; + StructuredQuery_CompositeFilter copyWith( + void Function(StructuredQuery_CompositeFilter) updates) => + super.copyWith( + (message) => updates(message as StructuredQuery_CompositeFilter)) + as StructuredQuery_CompositeFilter; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredQuery_CompositeFilter create() => StructuredQuery_CompositeFilter._(); + static StructuredQuery_CompositeFilter create() => + StructuredQuery_CompositeFilter._(); @$core.override StructuredQuery_CompositeFilter createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_CompositeFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_CompositeFilter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static StructuredQuery_CompositeFilter? _defaultInstance; /// The operator for combining multiple filters. @$pb.TagNumber(1) StructuredQuery_CompositeFilter_Operator get op => $_getN(0); @$pb.TagNumber(1) - set op(StructuredQuery_CompositeFilter_Operator value) => $_setField(1, value); + set op(StructuredQuery_CompositeFilter_Operator value) => + $_setField(1, value); @$pb.TagNumber(1) $core.bool hasOp() => $_has(0); @$pb.TagNumber(1) @@ -258,31 +319,53 @@ class StructuredQuery_FieldFilter extends $pb.GeneratedMessage { StructuredQuery_FieldFilter._(); - factory StructuredQuery_FieldFilter.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_FieldFilter.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.FieldFilter', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'field', subBuilder: StructuredQuery_FieldReference.create) - ..e(2, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, defaultOrMaker: StructuredQuery_FieldFilter_Operator.OPERATOR_UNSPECIFIED, valueOf: StructuredQuery_FieldFilter_Operator.valueOf, enumValues: StructuredQuery_FieldFilter_Operator.values) - ..aOM<$1.Value>(3, _omitFieldNames ? '' : 'value', subBuilder: $1.Value.create) - ..hasRequiredFields = false - ; + factory StructuredQuery_FieldFilter.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_FieldFilter.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.FieldFilter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'field', + subBuilder: StructuredQuery_FieldReference.create) + ..e( + 2, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, + defaultOrMaker: + StructuredQuery_FieldFilter_Operator.OPERATOR_UNSPECIFIED, + valueOf: StructuredQuery_FieldFilter_Operator.valueOf, + enumValues: StructuredQuery_FieldFilter_Operator.values) + ..aOM<$1.Value>(3, _omitFieldNames ? '' : 'value', + subBuilder: $1.Value.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_FieldFilter clone() => StructuredQuery_FieldFilter()..mergeFromMessage(this); + StructuredQuery_FieldFilter clone() => + StructuredQuery_FieldFilter()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_FieldFilter copyWith(void Function(StructuredQuery_FieldFilter) updates) => super.copyWith((message) => updates(message as StructuredQuery_FieldFilter)) as StructuredQuery_FieldFilter; + StructuredQuery_FieldFilter copyWith( + void Function(StructuredQuery_FieldFilter) updates) => + super.copyWith( + (message) => updates(message as StructuredQuery_FieldFilter)) + as StructuredQuery_FieldFilter; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredQuery_FieldFilter create() => StructuredQuery_FieldFilter._(); + static StructuredQuery_FieldFilter create() => + StructuredQuery_FieldFilter._(); @$core.override StructuredQuery_FieldFilter createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_FieldFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_FieldFilter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery_FieldFilter? _defaultInstance; /// The field to filter by. @@ -320,10 +403,7 @@ class StructuredQuery_FieldFilter extends $pb.GeneratedMessage { $1.Value ensureValue() => $_ensure(2); } -enum StructuredQuery_UnaryFilter_OperandType { - field_2, - notSet -} +enum StructuredQuery_UnaryFilter_OperandType { field_2, notSet } /// A filter with a single operand. class StructuredQuery_UnaryFilter extends $pb.GeneratedMessage { @@ -339,38 +419,61 @@ class StructuredQuery_UnaryFilter extends $pb.GeneratedMessage { StructuredQuery_UnaryFilter._(); - factory StructuredQuery_UnaryFilter.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_UnaryFilter.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, StructuredQuery_UnaryFilter_OperandType> _StructuredQuery_UnaryFilter_OperandTypeByTag = { - 2 : StructuredQuery_UnaryFilter_OperandType.field_2, - 0 : StructuredQuery_UnaryFilter_OperandType.notSet + factory StructuredQuery_UnaryFilter.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_UnaryFilter.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, StructuredQuery_UnaryFilter_OperandType> + _StructuredQuery_UnaryFilter_OperandTypeByTag = { + 2: StructuredQuery_UnaryFilter_OperandType.field_2, + 0: StructuredQuery_UnaryFilter_OperandType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.UnaryFilter', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.UnaryFilter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2]) - ..e(1, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, defaultOrMaker: StructuredQuery_UnaryFilter_Operator.OPERATOR_UNSPECIFIED, valueOf: StructuredQuery_UnaryFilter_Operator.valueOf, enumValues: StructuredQuery_UnaryFilter_Operator.values) - ..aOM(2, _omitFieldNames ? '' : 'field', subBuilder: StructuredQuery_FieldReference.create) - ..hasRequiredFields = false - ; + ..e( + 1, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, + defaultOrMaker: + StructuredQuery_UnaryFilter_Operator.OPERATOR_UNSPECIFIED, + valueOf: StructuredQuery_UnaryFilter_Operator.valueOf, + enumValues: StructuredQuery_UnaryFilter_Operator.values) + ..aOM(2, _omitFieldNames ? '' : 'field', + subBuilder: StructuredQuery_FieldReference.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_UnaryFilter clone() => StructuredQuery_UnaryFilter()..mergeFromMessage(this); + StructuredQuery_UnaryFilter clone() => + StructuredQuery_UnaryFilter()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_UnaryFilter copyWith(void Function(StructuredQuery_UnaryFilter) updates) => super.copyWith((message) => updates(message as StructuredQuery_UnaryFilter)) as StructuredQuery_UnaryFilter; + StructuredQuery_UnaryFilter copyWith( + void Function(StructuredQuery_UnaryFilter) updates) => + super.copyWith( + (message) => updates(message as StructuredQuery_UnaryFilter)) + as StructuredQuery_UnaryFilter; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredQuery_UnaryFilter create() => StructuredQuery_UnaryFilter._(); + static StructuredQuery_UnaryFilter create() => + StructuredQuery_UnaryFilter._(); @$core.override StructuredQuery_UnaryFilter createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_UnaryFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_UnaryFilter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery_UnaryFilter? _defaultInstance; - StructuredQuery_UnaryFilter_OperandType whichOperandType() => _StructuredQuery_UnaryFilter_OperandTypeByTag[$_whichOneof(0)]!; + StructuredQuery_UnaryFilter_OperandType whichOperandType() => + _StructuredQuery_UnaryFilter_OperandTypeByTag[$_whichOneof(0)]!; void clearOperandType() => $_clearField($_whichOneof(0)); /// The unary operator to apply. @@ -410,19 +513,35 @@ class StructuredQuery_Order extends $pb.GeneratedMessage { StructuredQuery_Order._(); - factory StructuredQuery_Order.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_Order.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.Order', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'field', subBuilder: StructuredQuery_FieldReference.create) - ..e(2, _omitFieldNames ? '' : 'direction', $pb.PbFieldType.OE, defaultOrMaker: StructuredQuery_Direction.DIRECTION_UNSPECIFIED, valueOf: StructuredQuery_Direction.valueOf, enumValues: StructuredQuery_Direction.values) - ..hasRequiredFields = false - ; + factory StructuredQuery_Order.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_Order.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.Order', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'field', + subBuilder: StructuredQuery_FieldReference.create) + ..e( + 2, _omitFieldNames ? '' : 'direction', $pb.PbFieldType.OE, + defaultOrMaker: StructuredQuery_Direction.DIRECTION_UNSPECIFIED, + valueOf: StructuredQuery_Direction.valueOf, + enumValues: StructuredQuery_Direction.values) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_Order clone() => StructuredQuery_Order()..mergeFromMessage(this); + StructuredQuery_Order clone() => + StructuredQuery_Order()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_Order copyWith(void Function(StructuredQuery_Order) updates) => super.copyWith((message) => updates(message as StructuredQuery_Order)) as StructuredQuery_Order; + StructuredQuery_Order copyWith( + void Function(StructuredQuery_Order) updates) => + super.copyWith((message) => updates(message as StructuredQuery_Order)) + as StructuredQuery_Order; @$core.override $pb.BuilderInfo get info_ => _i; @@ -431,9 +550,11 @@ class StructuredQuery_Order extends $pb.GeneratedMessage { static StructuredQuery_Order create() => StructuredQuery_Order._(); @$core.override StructuredQuery_Order createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_Order getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_Order getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery_Order? _defaultInstance; /// The field to order by. @@ -471,29 +592,44 @@ class StructuredQuery_FieldReference extends $pb.GeneratedMessage { StructuredQuery_FieldReference._(); - factory StructuredQuery_FieldReference.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_FieldReference.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.FieldReference', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory StructuredQuery_FieldReference.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_FieldReference.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.FieldReference', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(2, _omitFieldNames ? '' : 'fieldPath') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_FieldReference clone() => StructuredQuery_FieldReference()..mergeFromMessage(this); + StructuredQuery_FieldReference clone() => + StructuredQuery_FieldReference()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_FieldReference copyWith(void Function(StructuredQuery_FieldReference) updates) => super.copyWith((message) => updates(message as StructuredQuery_FieldReference)) as StructuredQuery_FieldReference; + StructuredQuery_FieldReference copyWith( + void Function(StructuredQuery_FieldReference) updates) => + super.copyWith( + (message) => updates(message as StructuredQuery_FieldReference)) + as StructuredQuery_FieldReference; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredQuery_FieldReference create() => StructuredQuery_FieldReference._(); + static StructuredQuery_FieldReference create() => + StructuredQuery_FieldReference._(); @$core.override StructuredQuery_FieldReference createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_FieldReference getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_FieldReference getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery_FieldReference? _defaultInstance; /// A reference to a field in a document. @@ -525,18 +661,32 @@ class StructuredQuery_Projection extends $pb.GeneratedMessage { StructuredQuery_Projection._(); - factory StructuredQuery_Projection.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_Projection.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.Projection', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc(2, _omitFieldNames ? '' : 'fields', $pb.PbFieldType.PM, subBuilder: StructuredQuery_FieldReference.create) - ..hasRequiredFields = false - ; + factory StructuredQuery_Projection.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_Projection.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.Projection', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'fields', $pb.PbFieldType.PM, + subBuilder: StructuredQuery_FieldReference.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_Projection clone() => StructuredQuery_Projection()..mergeFromMessage(this); + StructuredQuery_Projection clone() => + StructuredQuery_Projection()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_Projection copyWith(void Function(StructuredQuery_Projection) updates) => super.copyWith((message) => updates(message as StructuredQuery_Projection)) as StructuredQuery_Projection; + StructuredQuery_Projection copyWith( + void Function(StructuredQuery_Projection) updates) => + super.copyWith( + (message) => updates(message as StructuredQuery_Projection)) + as StructuredQuery_Projection; @$core.override $pb.BuilderInfo get info_ => _i; @@ -545,9 +695,11 @@ class StructuredQuery_Projection extends $pb.GeneratedMessage { static StructuredQuery_Projection create() => StructuredQuery_Projection._(); @$core.override StructuredQuery_Projection createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_Projection getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_Projection getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery_Projection? _defaultInstance; /// The fields to return. @@ -576,41 +728,67 @@ class StructuredQuery_FindNearest extends $pb.GeneratedMessage { if (queryVector != null) result.queryVector = queryVector; if (distanceMeasure != null) result.distanceMeasure = distanceMeasure; if (limit != null) result.limit = limit; - if (distanceResultField != null) result.distanceResultField = distanceResultField; + if (distanceResultField != null) + result.distanceResultField = distanceResultField; if (distanceThreshold != null) result.distanceThreshold = distanceThreshold; return result; } StructuredQuery_FindNearest._(); - factory StructuredQuery_FindNearest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery_FindNearest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery.FindNearest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'vectorField', subBuilder: StructuredQuery_FieldReference.create) - ..aOM<$1.Value>(2, _omitFieldNames ? '' : 'queryVector', subBuilder: $1.Value.create) - ..e(3, _omitFieldNames ? '' : 'distanceMeasure', $pb.PbFieldType.OE, defaultOrMaker: StructuredQuery_FindNearest_DistanceMeasure.DISTANCE_MEASURE_UNSPECIFIED, valueOf: StructuredQuery_FindNearest_DistanceMeasure.valueOf, enumValues: StructuredQuery_FindNearest_DistanceMeasure.values) - ..aOM<$0.Int32Value>(4, _omitFieldNames ? '' : 'limit', subBuilder: $0.Int32Value.create) + factory StructuredQuery_FindNearest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery_FindNearest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery.FindNearest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM( + 1, _omitFieldNames ? '' : 'vectorField', + subBuilder: StructuredQuery_FieldReference.create) + ..aOM<$1.Value>(2, _omitFieldNames ? '' : 'queryVector', + subBuilder: $1.Value.create) + ..e( + 3, _omitFieldNames ? '' : 'distanceMeasure', $pb.PbFieldType.OE, + defaultOrMaker: StructuredQuery_FindNearest_DistanceMeasure + .DISTANCE_MEASURE_UNSPECIFIED, + valueOf: StructuredQuery_FindNearest_DistanceMeasure.valueOf, + enumValues: StructuredQuery_FindNearest_DistanceMeasure.values) + ..aOM<$0.Int32Value>(4, _omitFieldNames ? '' : 'limit', + subBuilder: $0.Int32Value.create) ..aOS(5, _omitFieldNames ? '' : 'distanceResultField') - ..aOM<$0.DoubleValue>(6, _omitFieldNames ? '' : 'distanceThreshold', subBuilder: $0.DoubleValue.create) - ..hasRequiredFields = false - ; + ..aOM<$0.DoubleValue>(6, _omitFieldNames ? '' : 'distanceThreshold', + subBuilder: $0.DoubleValue.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_FindNearest clone() => StructuredQuery_FindNearest()..mergeFromMessage(this); + StructuredQuery_FindNearest clone() => + StructuredQuery_FindNearest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery_FindNearest copyWith(void Function(StructuredQuery_FindNearest) updates) => super.copyWith((message) => updates(message as StructuredQuery_FindNearest)) as StructuredQuery_FindNearest; + StructuredQuery_FindNearest copyWith( + void Function(StructuredQuery_FindNearest) updates) => + super.copyWith( + (message) => updates(message as StructuredQuery_FindNearest)) + as StructuredQuery_FindNearest; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredQuery_FindNearest create() => StructuredQuery_FindNearest._(); + static StructuredQuery_FindNearest create() => + StructuredQuery_FindNearest._(); @$core.override StructuredQuery_FindNearest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery_FindNearest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery_FindNearest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery_FindNearest? _defaultInstance; /// Required. An indexed vector field to search upon. Only documents which @@ -644,7 +822,8 @@ class StructuredQuery_FindNearest extends $pb.GeneratedMessage { @$pb.TagNumber(3) StructuredQuery_FindNearest_DistanceMeasure get distanceMeasure => $_getN(2); @$pb.TagNumber(3) - set distanceMeasure(StructuredQuery_FindNearest_DistanceMeasure value) => $_setField(3, value); + set distanceMeasure(StructuredQuery_FindNearest_DistanceMeasure value) => + $_setField(3, value); @$pb.TagNumber(3) $core.bool hasDistanceMeasure() => $_has(2); @$pb.TagNumber(3) @@ -732,26 +911,44 @@ class StructuredQuery extends $pb.GeneratedMessage { StructuredQuery._(); - factory StructuredQuery.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredQuery.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredQuery', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'select', subBuilder: StructuredQuery_Projection.create) - ..pc(2, _omitFieldNames ? '' : 'from', $pb.PbFieldType.PM, subBuilder: StructuredQuery_CollectionSelector.create) - ..aOM(3, _omitFieldNames ? '' : 'where', subBuilder: StructuredQuery_Filter.create) - ..pc(4, _omitFieldNames ? '' : 'orderBy', $pb.PbFieldType.PM, subBuilder: StructuredQuery_Order.create) - ..aOM<$0.Int32Value>(5, _omitFieldNames ? '' : 'limit', subBuilder: $0.Int32Value.create) + factory StructuredQuery.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredQuery.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredQuery', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'select', + subBuilder: StructuredQuery_Projection.create) + ..pc( + 2, _omitFieldNames ? '' : 'from', $pb.PbFieldType.PM, + subBuilder: StructuredQuery_CollectionSelector.create) + ..aOM(3, _omitFieldNames ? '' : 'where', + subBuilder: StructuredQuery_Filter.create) + ..pc( + 4, _omitFieldNames ? '' : 'orderBy', $pb.PbFieldType.PM, + subBuilder: StructuredQuery_Order.create) + ..aOM<$0.Int32Value>(5, _omitFieldNames ? '' : 'limit', + subBuilder: $0.Int32Value.create) ..a<$core.int>(6, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) - ..aOM(7, _omitFieldNames ? '' : 'startAt', subBuilder: Cursor.create) + ..aOM(7, _omitFieldNames ? '' : 'startAt', + subBuilder: Cursor.create) ..aOM(8, _omitFieldNames ? '' : 'endAt', subBuilder: Cursor.create) - ..aOM(9, _omitFieldNames ? '' : 'findNearest', subBuilder: StructuredQuery_FindNearest.create) - ..hasRequiredFields = false - ; + ..aOM(9, _omitFieldNames ? '' : 'findNearest', + subBuilder: StructuredQuery_FindNearest.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') StructuredQuery clone() => StructuredQuery()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredQuery copyWith(void Function(StructuredQuery) updates) => super.copyWith((message) => updates(message as StructuredQuery)) as StructuredQuery; + StructuredQuery copyWith(void Function(StructuredQuery) updates) => + super.copyWith((message) => updates(message as StructuredQuery)) + as StructuredQuery; @$core.override $pb.BuilderInfo get info_ => _i; @@ -760,9 +957,11 @@ class StructuredQuery extends $pb.GeneratedMessage { static StructuredQuery create() => StructuredQuery._(); @$core.override StructuredQuery createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredQuery getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredQuery getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredQuery? _defaultInstance; /// Optional sub-set of the fields to return. @@ -938,7 +1137,8 @@ class StructuredQuery extends $pb.GeneratedMessage { /// /// The `COUNT(*)` aggregation function operates on the entire document /// so it does not require a field reference. -class StructuredAggregationQuery_Aggregation_Count extends $pb.GeneratedMessage { +class StructuredAggregationQuery_Aggregation_Count + extends $pb.GeneratedMessage { factory StructuredAggregationQuery_Aggregation_Count({ $0.Int64Value? upTo, }) { @@ -949,29 +1149,51 @@ class StructuredAggregationQuery_Aggregation_Count extends $pb.GeneratedMessage StructuredAggregationQuery_Aggregation_Count._(); - factory StructuredAggregationQuery_Aggregation_Count.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredAggregationQuery_Aggregation_Count.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation.Count', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM<$0.Int64Value>(1, _omitFieldNames ? '' : 'upTo', subBuilder: $0.Int64Value.create) - ..hasRequiredFields = false - ; + factory StructuredAggregationQuery_Aggregation_Count.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredAggregationQuery_Aggregation_Count.fromJson( + $core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation.Count', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM<$0.Int64Value>(1, _omitFieldNames ? '' : 'upTo', + subBuilder: $0.Int64Value.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation_Count clone() => StructuredAggregationQuery_Aggregation_Count()..mergeFromMessage(this); + StructuredAggregationQuery_Aggregation_Count clone() => + StructuredAggregationQuery_Aggregation_Count()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation_Count copyWith(void Function(StructuredAggregationQuery_Aggregation_Count) updates) => super.copyWith((message) => updates(message as StructuredAggregationQuery_Aggregation_Count)) as StructuredAggregationQuery_Aggregation_Count; + StructuredAggregationQuery_Aggregation_Count copyWith( + void Function(StructuredAggregationQuery_Aggregation_Count) + updates) => + super.copyWith((message) => + updates(message as StructuredAggregationQuery_Aggregation_Count)) + as StructuredAggregationQuery_Aggregation_Count; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation_Count create() => StructuredAggregationQuery_Aggregation_Count._(); + static StructuredAggregationQuery_Aggregation_Count create() => + StructuredAggregationQuery_Aggregation_Count._(); @$core.override - StructuredAggregationQuery_Aggregation_Count createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + StructuredAggregationQuery_Aggregation_Count createEmptyInstance() => + create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation_Count getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredAggregationQuery_Aggregation_Count getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + StructuredAggregationQuery_Aggregation_Count>(create); static StructuredAggregationQuery_Aggregation_Count? _defaultInstance; /// Optional. Optional constraint on the maximum number of documents to @@ -1035,29 +1257,48 @@ class StructuredAggregationQuery_Aggregation_Sum extends $pb.GeneratedMessage { StructuredAggregationQuery_Aggregation_Sum._(); - factory StructuredAggregationQuery_Aggregation_Sum.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredAggregationQuery_Aggregation_Sum.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation.Sum', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'field', subBuilder: StructuredQuery_FieldReference.create) - ..hasRequiredFields = false - ; + factory StructuredAggregationQuery_Aggregation_Sum.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredAggregationQuery_Aggregation_Sum.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation.Sum', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'field', + subBuilder: StructuredQuery_FieldReference.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation_Sum clone() => StructuredAggregationQuery_Aggregation_Sum()..mergeFromMessage(this); + StructuredAggregationQuery_Aggregation_Sum clone() => + StructuredAggregationQuery_Aggregation_Sum()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation_Sum copyWith(void Function(StructuredAggregationQuery_Aggregation_Sum) updates) => super.copyWith((message) => updates(message as StructuredAggregationQuery_Aggregation_Sum)) as StructuredAggregationQuery_Aggregation_Sum; + StructuredAggregationQuery_Aggregation_Sum copyWith( + void Function(StructuredAggregationQuery_Aggregation_Sum) updates) => + super.copyWith((message) => + updates(message as StructuredAggregationQuery_Aggregation_Sum)) + as StructuredAggregationQuery_Aggregation_Sum; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation_Sum create() => StructuredAggregationQuery_Aggregation_Sum._(); + static StructuredAggregationQuery_Aggregation_Sum create() => + StructuredAggregationQuery_Aggregation_Sum._(); @$core.override StructuredAggregationQuery_Aggregation_Sum createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList + createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation_Sum getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredAggregationQuery_Aggregation_Sum getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + StructuredAggregationQuery_Aggregation_Sum>(create); static StructuredAggregationQuery_Aggregation_Sum? _defaultInstance; /// The field to aggregate on. @@ -1095,29 +1336,48 @@ class StructuredAggregationQuery_Aggregation_Avg extends $pb.GeneratedMessage { StructuredAggregationQuery_Aggregation_Avg._(); - factory StructuredAggregationQuery_Aggregation_Avg.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredAggregationQuery_Aggregation_Avg.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation.Avg', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'field', subBuilder: StructuredQuery_FieldReference.create) - ..hasRequiredFields = false - ; + factory StructuredAggregationQuery_Aggregation_Avg.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredAggregationQuery_Aggregation_Avg.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation.Avg', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'field', + subBuilder: StructuredQuery_FieldReference.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation_Avg clone() => StructuredAggregationQuery_Aggregation_Avg()..mergeFromMessage(this); + StructuredAggregationQuery_Aggregation_Avg clone() => + StructuredAggregationQuery_Aggregation_Avg()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation_Avg copyWith(void Function(StructuredAggregationQuery_Aggregation_Avg) updates) => super.copyWith((message) => updates(message as StructuredAggregationQuery_Aggregation_Avg)) as StructuredAggregationQuery_Aggregation_Avg; + StructuredAggregationQuery_Aggregation_Avg copyWith( + void Function(StructuredAggregationQuery_Aggregation_Avg) updates) => + super.copyWith((message) => + updates(message as StructuredAggregationQuery_Aggregation_Avg)) + as StructuredAggregationQuery_Aggregation_Avg; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation_Avg create() => StructuredAggregationQuery_Aggregation_Avg._(); + static StructuredAggregationQuery_Aggregation_Avg create() => + StructuredAggregationQuery_Aggregation_Avg._(); @$core.override StructuredAggregationQuery_Aggregation_Avg createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList + createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation_Avg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredAggregationQuery_Aggregation_Avg getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + StructuredAggregationQuery_Aggregation_Avg>(create); static StructuredAggregationQuery_Aggregation_Avg? _defaultInstance; /// The field to aggregate on. @@ -1133,12 +1393,7 @@ class StructuredAggregationQuery_Aggregation_Avg extends $pb.GeneratedMessage { StructuredQuery_FieldReference ensureField_1() => $_ensure(0); } -enum StructuredAggregationQuery_Aggregation_Operator { - count, - sum, - avg, - notSet -} +enum StructuredAggregationQuery_Aggregation_Operator { count, sum, avg, notSet } /// Defines an aggregation that produces a single result. class StructuredAggregationQuery_Aggregation extends $pb.GeneratedMessage { @@ -1158,49 +1413,76 @@ class StructuredAggregationQuery_Aggregation extends $pb.GeneratedMessage { StructuredAggregationQuery_Aggregation._(); - factory StructuredAggregationQuery_Aggregation.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredAggregationQuery_Aggregation.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, StructuredAggregationQuery_Aggregation_Operator> _StructuredAggregationQuery_Aggregation_OperatorByTag = { - 1 : StructuredAggregationQuery_Aggregation_Operator.count, - 2 : StructuredAggregationQuery_Aggregation_Operator.sum, - 3 : StructuredAggregationQuery_Aggregation_Operator.avg, - 0 : StructuredAggregationQuery_Aggregation_Operator.notSet + factory StructuredAggregationQuery_Aggregation.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredAggregationQuery_Aggregation.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core + .Map<$core.int, StructuredAggregationQuery_Aggregation_Operator> + _StructuredAggregationQuery_Aggregation_OperatorByTag = { + 1: StructuredAggregationQuery_Aggregation_Operator.count, + 2: StructuredAggregationQuery_Aggregation_Operator.sum, + 3: StructuredAggregationQuery_Aggregation_Operator.avg, + 0: StructuredAggregationQuery_Aggregation_Operator.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredAggregationQuery.Aggregation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [1, 2, 3]) - ..aOM(1, _omitFieldNames ? '' : 'count', subBuilder: StructuredAggregationQuery_Aggregation_Count.create) - ..aOM(2, _omitFieldNames ? '' : 'sum', subBuilder: StructuredAggregationQuery_Aggregation_Sum.create) - ..aOM(3, _omitFieldNames ? '' : 'avg', subBuilder: StructuredAggregationQuery_Aggregation_Avg.create) + ..aOM( + 1, _omitFieldNames ? '' : 'count', + subBuilder: StructuredAggregationQuery_Aggregation_Count.create) + ..aOM( + 2, _omitFieldNames ? '' : 'sum', + subBuilder: StructuredAggregationQuery_Aggregation_Sum.create) + ..aOM( + 3, _omitFieldNames ? '' : 'avg', + subBuilder: StructuredAggregationQuery_Aggregation_Avg.create) ..aOS(7, _omitFieldNames ? '' : 'alias') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation clone() => StructuredAggregationQuery_Aggregation()..mergeFromMessage(this); + StructuredAggregationQuery_Aggregation clone() => + StructuredAggregationQuery_Aggregation()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery_Aggregation copyWith(void Function(StructuredAggregationQuery_Aggregation) updates) => super.copyWith((message) => updates(message as StructuredAggregationQuery_Aggregation)) as StructuredAggregationQuery_Aggregation; + StructuredAggregationQuery_Aggregation copyWith( + void Function(StructuredAggregationQuery_Aggregation) updates) => + super.copyWith((message) => + updates(message as StructuredAggregationQuery_Aggregation)) + as StructuredAggregationQuery_Aggregation; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation create() => StructuredAggregationQuery_Aggregation._(); + static StructuredAggregationQuery_Aggregation create() => + StructuredAggregationQuery_Aggregation._(); @$core.override StructuredAggregationQuery_Aggregation createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery_Aggregation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredAggregationQuery_Aggregation getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + StructuredAggregationQuery_Aggregation>(create); static StructuredAggregationQuery_Aggregation? _defaultInstance; - StructuredAggregationQuery_Aggregation_Operator whichOperator() => _StructuredAggregationQuery_Aggregation_OperatorByTag[$_whichOneof(0)]!; + StructuredAggregationQuery_Aggregation_Operator whichOperator() => + _StructuredAggregationQuery_Aggregation_OperatorByTag[$_whichOneof(0)]!; void clearOperator() => $_clearField($_whichOneof(0)); /// Count aggregator. @$pb.TagNumber(1) StructuredAggregationQuery_Aggregation_Count get count => $_getN(0); @$pb.TagNumber(1) - set count(StructuredAggregationQuery_Aggregation_Count value) => $_setField(1, value); + set count(StructuredAggregationQuery_Aggregation_Count value) => + $_setField(1, value); @$pb.TagNumber(1) $core.bool hasCount() => $_has(0); @$pb.TagNumber(1) @@ -1212,7 +1494,8 @@ class StructuredAggregationQuery_Aggregation extends $pb.GeneratedMessage { @$pb.TagNumber(2) StructuredAggregationQuery_Aggregation_Sum get sum => $_getN(1); @$pb.TagNumber(2) - set sum(StructuredAggregationQuery_Aggregation_Sum value) => $_setField(2, value); + set sum(StructuredAggregationQuery_Aggregation_Sum value) => + $_setField(2, value); @$pb.TagNumber(2) $core.bool hasSum() => $_has(1); @$pb.TagNumber(2) @@ -1224,7 +1507,8 @@ class StructuredAggregationQuery_Aggregation extends $pb.GeneratedMessage { @$pb.TagNumber(3) StructuredAggregationQuery_Aggregation_Avg get avg => $_getN(2); @$pb.TagNumber(3) - set avg(StructuredAggregationQuery_Aggregation_Avg value) => $_setField(3, value); + set avg(StructuredAggregationQuery_Aggregation_Avg value) => + $_setField(3, value); @$pb.TagNumber(3) $core.bool hasAvg() => $_has(2); @$pb.TagNumber(3) @@ -1277,10 +1561,7 @@ class StructuredAggregationQuery_Aggregation extends $pb.GeneratedMessage { void clearAlias() => $_clearField(7); } -enum StructuredAggregationQuery_QueryType { - structuredQuery, - notSet -} +enum StructuredAggregationQuery_QueryType { structuredQuery, notSet } /// Firestore query for running an aggregation over a /// [StructuredQuery][google.firestore.v1.StructuredQuery]. @@ -1297,24 +1578,40 @@ class StructuredAggregationQuery extends $pb.GeneratedMessage { StructuredAggregationQuery._(); - factory StructuredAggregationQuery.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StructuredAggregationQuery.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, StructuredAggregationQuery_QueryType> _StructuredAggregationQuery_QueryTypeByTag = { - 1 : StructuredAggregationQuery_QueryType.structuredQuery, - 0 : StructuredAggregationQuery_QueryType.notSet + factory StructuredAggregationQuery.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StructuredAggregationQuery.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, StructuredAggregationQuery_QueryType> + _StructuredAggregationQuery_QueryTypeByTag = { + 1: StructuredAggregationQuery_QueryType.structuredQuery, + 0: StructuredAggregationQuery_QueryType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructuredAggregationQuery', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StructuredAggregationQuery', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [1]) - ..aOM(1, _omitFieldNames ? '' : 'structuredQuery', subBuilder: StructuredQuery.create) - ..pc(3, _omitFieldNames ? '' : 'aggregations', $pb.PbFieldType.PM, subBuilder: StructuredAggregationQuery_Aggregation.create) - ..hasRequiredFields = false - ; + ..aOM(1, _omitFieldNames ? '' : 'structuredQuery', + subBuilder: StructuredQuery.create) + ..pc( + 3, _omitFieldNames ? '' : 'aggregations', $pb.PbFieldType.PM, + subBuilder: StructuredAggregationQuery_Aggregation.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery clone() => StructuredAggregationQuery()..mergeFromMessage(this); + StructuredAggregationQuery clone() => + StructuredAggregationQuery()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StructuredAggregationQuery copyWith(void Function(StructuredAggregationQuery) updates) => super.copyWith((message) => updates(message as StructuredAggregationQuery)) as StructuredAggregationQuery; + StructuredAggregationQuery copyWith( + void Function(StructuredAggregationQuery) updates) => + super.copyWith( + (message) => updates(message as StructuredAggregationQuery)) + as StructuredAggregationQuery; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1323,12 +1620,15 @@ class StructuredAggregationQuery extends $pb.GeneratedMessage { static StructuredAggregationQuery create() => StructuredAggregationQuery._(); @$core.override StructuredAggregationQuery createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StructuredAggregationQuery getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructuredAggregationQuery getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StructuredAggregationQuery? _defaultInstance; - StructuredAggregationQuery_QueryType whichQueryType() => _StructuredAggregationQuery_QueryTypeByTag[$_whichOneof(0)]!; + StructuredAggregationQuery_QueryType whichQueryType() => + _StructuredAggregationQuery_QueryTypeByTag[$_whichOneof(0)]!; void clearQueryType() => $_clearField($_whichOneof(0)); /// Nested structured query. @@ -1350,7 +1650,8 @@ class StructuredAggregationQuery extends $pb.GeneratedMessage { /// /// * A minimum of one and maximum of five aggregations per query. @$pb.TagNumber(3) - $pb.PbList get aggregations => $_getList(1); + $pb.PbList get aggregations => + $_getList(1); } /// A position in a query result set. @@ -1367,19 +1668,28 @@ class Cursor extends $pb.GeneratedMessage { Cursor._(); - factory Cursor.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Cursor.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Cursor', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc<$1.Value>(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, subBuilder: $1.Value.create) + factory Cursor.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Cursor.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Cursor', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc<$1.Value>(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: $1.Value.create) ..aOB(2, _omitFieldNames ? '' : 'before') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Cursor clone() => Cursor()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Cursor copyWith(void Function(Cursor) updates) => super.copyWith((message) => updates(message as Cursor)) as Cursor; + Cursor copyWith(void Function(Cursor) updates) => + super.copyWith((message) => updates(message as Cursor)) as Cursor; @$core.override $pb.BuilderInfo get info_ => _i; @@ -1390,7 +1700,8 @@ class Cursor extends $pb.GeneratedMessage { Cursor createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Cursor getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Cursor getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Cursor? _defaultInstance; /// The values that represent a position, in the order they appear in @@ -1412,6 +1723,7 @@ class Cursor extends $pb.GeneratedMessage { void clearBefore() => $_clearField(2); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pbenum.dart index c81214db..b135aad1 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query.pbenum.dart @@ -17,20 +17,29 @@ import 'package:protobuf/protobuf.dart' as $pb; /// A sort direction. class StructuredQuery_Direction extends $pb.ProtobufEnum { /// Unspecified. - static const StructuredQuery_Direction DIRECTION_UNSPECIFIED = StructuredQuery_Direction._(0, _omitEnumNames ? '' : 'DIRECTION_UNSPECIFIED'); + static const StructuredQuery_Direction DIRECTION_UNSPECIFIED = + StructuredQuery_Direction._( + 0, _omitEnumNames ? '' : 'DIRECTION_UNSPECIFIED'); + /// Ascending. - static const StructuredQuery_Direction ASCENDING = StructuredQuery_Direction._(1, _omitEnumNames ? '' : 'ASCENDING'); + static const StructuredQuery_Direction ASCENDING = + StructuredQuery_Direction._(1, _omitEnumNames ? '' : 'ASCENDING'); + /// Descending. - static const StructuredQuery_Direction DESCENDING = StructuredQuery_Direction._(2, _omitEnumNames ? '' : 'DESCENDING'); + static const StructuredQuery_Direction DESCENDING = + StructuredQuery_Direction._(2, _omitEnumNames ? '' : 'DESCENDING'); - static const $core.List values = [ + static const $core.List values = + [ DIRECTION_UNSPECIFIED, ASCENDING, DESCENDING, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); - static StructuredQuery_Direction? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 2); + static StructuredQuery_Direction? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const StructuredQuery_Direction._(super.value, super.name); } @@ -38,20 +47,30 @@ class StructuredQuery_Direction extends $pb.ProtobufEnum { /// A composite filter operator. class StructuredQuery_CompositeFilter_Operator extends $pb.ProtobufEnum { /// Unspecified. This value must not be used. - static const StructuredQuery_CompositeFilter_Operator OPERATOR_UNSPECIFIED = StructuredQuery_CompositeFilter_Operator._(0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + static const StructuredQuery_CompositeFilter_Operator OPERATOR_UNSPECIFIED = + StructuredQuery_CompositeFilter_Operator._( + 0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + /// Documents are required to satisfy all of the combined filters. - static const StructuredQuery_CompositeFilter_Operator AND = StructuredQuery_CompositeFilter_Operator._(1, _omitEnumNames ? '' : 'AND'); + static const StructuredQuery_CompositeFilter_Operator AND = + StructuredQuery_CompositeFilter_Operator._( + 1, _omitEnumNames ? '' : 'AND'); + /// Documents are required to satisfy at least one of the combined filters. - static const StructuredQuery_CompositeFilter_Operator OR = StructuredQuery_CompositeFilter_Operator._(2, _omitEnumNames ? '' : 'OR'); + static const StructuredQuery_CompositeFilter_Operator OR = + StructuredQuery_CompositeFilter_Operator._(2, _omitEnumNames ? '' : 'OR'); - static const $core.List values = [ + static const $core.List values = + [ OPERATOR_UNSPECIFIED, AND, OR, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); - static StructuredQuery_CompositeFilter_Operator? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 2); + static StructuredQuery_CompositeFilter_Operator? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const StructuredQuery_CompositeFilter_Operator._(super.value, super.name); } @@ -59,42 +78,65 @@ class StructuredQuery_CompositeFilter_Operator extends $pb.ProtobufEnum { /// A field filter operator. class StructuredQuery_FieldFilter_Operator extends $pb.ProtobufEnum { /// Unspecified. This value must not be used. - static const StructuredQuery_FieldFilter_Operator OPERATOR_UNSPECIFIED = StructuredQuery_FieldFilter_Operator._(0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + static const StructuredQuery_FieldFilter_Operator OPERATOR_UNSPECIFIED = + StructuredQuery_FieldFilter_Operator._( + 0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + /// The given `field` is less than the given `value`. /// /// Requires: /// /// * That `field` come first in `order_by`. - static const StructuredQuery_FieldFilter_Operator LESS_THAN = StructuredQuery_FieldFilter_Operator._(1, _omitEnumNames ? '' : 'LESS_THAN'); + static const StructuredQuery_FieldFilter_Operator LESS_THAN = + StructuredQuery_FieldFilter_Operator._( + 1, _omitEnumNames ? '' : 'LESS_THAN'); + /// The given `field` is less than or equal to the given `value`. /// /// Requires: /// /// * That `field` come first in `order_by`. - static const StructuredQuery_FieldFilter_Operator LESS_THAN_OR_EQUAL = StructuredQuery_FieldFilter_Operator._(2, _omitEnumNames ? '' : 'LESS_THAN_OR_EQUAL'); + static const StructuredQuery_FieldFilter_Operator LESS_THAN_OR_EQUAL = + StructuredQuery_FieldFilter_Operator._( + 2, _omitEnumNames ? '' : 'LESS_THAN_OR_EQUAL'); + /// The given `field` is greater than the given `value`. /// /// Requires: /// /// * That `field` come first in `order_by`. - static const StructuredQuery_FieldFilter_Operator GREATER_THAN = StructuredQuery_FieldFilter_Operator._(3, _omitEnumNames ? '' : 'GREATER_THAN'); + static const StructuredQuery_FieldFilter_Operator GREATER_THAN = + StructuredQuery_FieldFilter_Operator._( + 3, _omitEnumNames ? '' : 'GREATER_THAN'); + /// The given `field` is greater than or equal to the given `value`. /// /// Requires: /// /// * That `field` come first in `order_by`. - static const StructuredQuery_FieldFilter_Operator GREATER_THAN_OR_EQUAL = StructuredQuery_FieldFilter_Operator._(4, _omitEnumNames ? '' : 'GREATER_THAN_OR_EQUAL'); + static const StructuredQuery_FieldFilter_Operator GREATER_THAN_OR_EQUAL = + StructuredQuery_FieldFilter_Operator._( + 4, _omitEnumNames ? '' : 'GREATER_THAN_OR_EQUAL'); + /// The given `field` is equal to the given `value`. - static const StructuredQuery_FieldFilter_Operator EQUAL = StructuredQuery_FieldFilter_Operator._(5, _omitEnumNames ? '' : 'EQUAL'); + static const StructuredQuery_FieldFilter_Operator EQUAL = + StructuredQuery_FieldFilter_Operator._(5, _omitEnumNames ? '' : 'EQUAL'); + /// The given `field` is not equal to the given `value`. /// /// Requires: /// /// * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. /// * That `field` comes first in the `order_by`. - static const StructuredQuery_FieldFilter_Operator NOT_EQUAL = StructuredQuery_FieldFilter_Operator._(6, _omitEnumNames ? '' : 'NOT_EQUAL'); + static const StructuredQuery_FieldFilter_Operator NOT_EQUAL = + StructuredQuery_FieldFilter_Operator._( + 6, _omitEnumNames ? '' : 'NOT_EQUAL'); + /// The given `field` is an array that contains the given `value`. - static const StructuredQuery_FieldFilter_Operator ARRAY_CONTAINS = StructuredQuery_FieldFilter_Operator._(7, _omitEnumNames ? '' : 'ARRAY_CONTAINS'); + static const StructuredQuery_FieldFilter_Operator ARRAY_CONTAINS = + StructuredQuery_FieldFilter_Operator._( + 7, _omitEnumNames ? '' : 'ARRAY_CONTAINS'); + /// The given `field` is equal to at least one value in the given array. /// /// Requires: @@ -102,7 +144,9 @@ class StructuredQuery_FieldFilter_Operator extends $pb.ProtobufEnum { /// * That `value` is a non-empty `ArrayValue`, subject to disjunction /// limits. /// * No `NOT_IN` filters in the same query. - static const StructuredQuery_FieldFilter_Operator IN = StructuredQuery_FieldFilter_Operator._(8, _omitEnumNames ? '' : 'IN'); + static const StructuredQuery_FieldFilter_Operator IN = + StructuredQuery_FieldFilter_Operator._(8, _omitEnumNames ? '' : 'IN'); + /// The given `field` is an array that contains any of the values in the /// given array. /// @@ -112,7 +156,10 @@ class StructuredQuery_FieldFilter_Operator extends $pb.ProtobufEnum { /// limits. /// * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction. /// * No `NOT_IN` filters in the same query. - static const StructuredQuery_FieldFilter_Operator ARRAY_CONTAINS_ANY = StructuredQuery_FieldFilter_Operator._(9, _omitEnumNames ? '' : 'ARRAY_CONTAINS_ANY'); + static const StructuredQuery_FieldFilter_Operator ARRAY_CONTAINS_ANY = + StructuredQuery_FieldFilter_Operator._( + 9, _omitEnumNames ? '' : 'ARRAY_CONTAINS_ANY'); + /// The value of the `field` is not in the given array. /// /// Requires: @@ -121,9 +168,12 @@ class StructuredQuery_FieldFilter_Operator extends $pb.ProtobufEnum { /// * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, /// `IS_NOT_NULL`, or `IS_NOT_NAN`. /// * That `field` comes first in the `order_by`. - static const StructuredQuery_FieldFilter_Operator NOT_IN = StructuredQuery_FieldFilter_Operator._(10, _omitEnumNames ? '' : 'NOT_IN'); + static const StructuredQuery_FieldFilter_Operator NOT_IN = + StructuredQuery_FieldFilter_Operator._( + 10, _omitEnumNames ? '' : 'NOT_IN'); - static const $core.List values = [ + static const $core.List values = + [ OPERATOR_UNSPECIFIED, LESS_THAN, LESS_THAN_OR_EQUAL, @@ -137,8 +187,10 @@ class StructuredQuery_FieldFilter_Operator extends $pb.ProtobufEnum { NOT_IN, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 10); - static StructuredQuery_FieldFilter_Operator? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 10); + static StructuredQuery_FieldFilter_Operator? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const StructuredQuery_FieldFilter_Operator._(super.value, super.name); } @@ -146,27 +198,41 @@ class StructuredQuery_FieldFilter_Operator extends $pb.ProtobufEnum { /// A unary operator. class StructuredQuery_UnaryFilter_Operator extends $pb.ProtobufEnum { /// Unspecified. This value must not be used. - static const StructuredQuery_UnaryFilter_Operator OPERATOR_UNSPECIFIED = StructuredQuery_UnaryFilter_Operator._(0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + static const StructuredQuery_UnaryFilter_Operator OPERATOR_UNSPECIFIED = + StructuredQuery_UnaryFilter_Operator._( + 0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + /// The given `field` is equal to `NaN`. - static const StructuredQuery_UnaryFilter_Operator IS_NAN = StructuredQuery_UnaryFilter_Operator._(2, _omitEnumNames ? '' : 'IS_NAN'); + static const StructuredQuery_UnaryFilter_Operator IS_NAN = + StructuredQuery_UnaryFilter_Operator._(2, _omitEnumNames ? '' : 'IS_NAN'); + /// The given `field` is equal to `NULL`. - static const StructuredQuery_UnaryFilter_Operator IS_NULL = StructuredQuery_UnaryFilter_Operator._(3, _omitEnumNames ? '' : 'IS_NULL'); + static const StructuredQuery_UnaryFilter_Operator IS_NULL = + StructuredQuery_UnaryFilter_Operator._( + 3, _omitEnumNames ? '' : 'IS_NULL'); + /// The given `field` is not equal to `NaN`. /// /// Requires: /// /// * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. /// * That `field` comes first in the `order_by`. - static const StructuredQuery_UnaryFilter_Operator IS_NOT_NAN = StructuredQuery_UnaryFilter_Operator._(4, _omitEnumNames ? '' : 'IS_NOT_NAN'); + static const StructuredQuery_UnaryFilter_Operator IS_NOT_NAN = + StructuredQuery_UnaryFilter_Operator._( + 4, _omitEnumNames ? '' : 'IS_NOT_NAN'); + /// The given `field` is not equal to `NULL`. /// /// Requires: /// /// * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. /// * That `field` comes first in the `order_by`. - static const StructuredQuery_UnaryFilter_Operator IS_NOT_NULL = StructuredQuery_UnaryFilter_Operator._(5, _omitEnumNames ? '' : 'IS_NOT_NULL'); + static const StructuredQuery_UnaryFilter_Operator IS_NOT_NULL = + StructuredQuery_UnaryFilter_Operator._( + 5, _omitEnumNames ? '' : 'IS_NOT_NULL'); - static const $core.List values = [ + static const $core.List values = + [ OPERATOR_UNSPECIFIED, IS_NAN, IS_NULL, @@ -174,8 +240,10 @@ class StructuredQuery_UnaryFilter_Operator extends $pb.ProtobufEnum { IS_NOT_NULL, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 5); - static StructuredQuery_UnaryFilter_Operator? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 5); + static StructuredQuery_UnaryFilter_Operator? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const StructuredQuery_UnaryFilter_Operator._(super.value, super.name); } @@ -183,12 +251,19 @@ class StructuredQuery_UnaryFilter_Operator extends $pb.ProtobufEnum { /// The distance measure to use when comparing vectors. class StructuredQuery_FindNearest_DistanceMeasure extends $pb.ProtobufEnum { /// Should not be set. - static const StructuredQuery_FindNearest_DistanceMeasure DISTANCE_MEASURE_UNSPECIFIED = StructuredQuery_FindNearest_DistanceMeasure._(0, _omitEnumNames ? '' : 'DISTANCE_MEASURE_UNSPECIFIED'); + static const StructuredQuery_FindNearest_DistanceMeasure + DISTANCE_MEASURE_UNSPECIFIED = + StructuredQuery_FindNearest_DistanceMeasure._( + 0, _omitEnumNames ? '' : 'DISTANCE_MEASURE_UNSPECIFIED'); + /// Measures the EUCLIDEAN distance between the vectors. See /// [Euclidean](https://en.wikipedia.org/wiki/Euclidean_distance) to learn /// more. The resulting distance decreases the more similar two vectors /// are. - static const StructuredQuery_FindNearest_DistanceMeasure EUCLIDEAN = StructuredQuery_FindNearest_DistanceMeasure._(1, _omitEnumNames ? '' : 'EUCLIDEAN'); + static const StructuredQuery_FindNearest_DistanceMeasure EUCLIDEAN = + StructuredQuery_FindNearest_DistanceMeasure._( + 1, _omitEnumNames ? '' : 'EUCLIDEAN'); + /// COSINE distance compares vectors based on the angle between them, which /// allows you to measure similarity that isn't based on the vectors /// magnitude. We recommend using DOT_PRODUCT with unit normalized vectors @@ -197,24 +272,33 @@ class StructuredQuery_FindNearest_DistanceMeasure extends $pb.ProtobufEnum { /// Similarity](https://en.wikipedia.org/wiki/Cosine_similarity) to learn /// more about COSINE similarity and COSINE distance. The resulting /// COSINE distance decreases the more similar two vectors are. - static const StructuredQuery_FindNearest_DistanceMeasure COSINE = StructuredQuery_FindNearest_DistanceMeasure._(2, _omitEnumNames ? '' : 'COSINE'); + static const StructuredQuery_FindNearest_DistanceMeasure COSINE = + StructuredQuery_FindNearest_DistanceMeasure._( + 2, _omitEnumNames ? '' : 'COSINE'); + /// Similar to cosine but is affected by the magnitude of the vectors. See /// [Dot Product](https://en.wikipedia.org/wiki/Dot_product) to learn more. /// The resulting distance increases the more similar two vectors are. - static const StructuredQuery_FindNearest_DistanceMeasure DOT_PRODUCT = StructuredQuery_FindNearest_DistanceMeasure._(3, _omitEnumNames ? '' : 'DOT_PRODUCT'); + static const StructuredQuery_FindNearest_DistanceMeasure DOT_PRODUCT = + StructuredQuery_FindNearest_DistanceMeasure._( + 3, _omitEnumNames ? '' : 'DOT_PRODUCT'); - static const $core.List values = [ + static const $core.List values = + [ DISTANCE_MEASURE_UNSPECIFIED, EUCLIDEAN, COSINE, DOT_PRODUCT, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 3); - static StructuredQuery_FindNearest_DistanceMeasure? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List + _byValue = $pb.ProtobufEnum.$_initByValueList(values, 3); + static StructuredQuery_FindNearest_DistanceMeasure? valueOf( + $core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const StructuredQuery_FindNearest_DistanceMeasure._(super.value, super.name); } - -const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pb.dart index 4a3d9b45..a0c77fb0 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pb.dart @@ -32,18 +32,27 @@ class ExplainOptions extends $pb.GeneratedMessage { ExplainOptions._(); - factory ExplainOptions.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ExplainOptions.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExplainOptions', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory ExplainOptions.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExplainOptions.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExplainOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'analyze') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExplainOptions clone() => ExplainOptions()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ExplainOptions copyWith(void Function(ExplainOptions) updates) => super.copyWith((message) => updates(message as ExplainOptions)) as ExplainOptions; + ExplainOptions copyWith(void Function(ExplainOptions) updates) => + super.copyWith((message) => updates(message as ExplainOptions)) + as ExplainOptions; @$core.override $pb.BuilderInfo get info_ => _i; @@ -52,9 +61,11 @@ class ExplainOptions extends $pb.GeneratedMessage { static ExplainOptions create() => ExplainOptions._(); @$core.override ExplainOptions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExplainOptions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExplainOptions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExplainOptions? _defaultInstance; /// Optional. Whether to execute this query. @@ -88,19 +99,30 @@ class ExplainMetrics extends $pb.GeneratedMessage { ExplainMetrics._(); - factory ExplainMetrics.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ExplainMetrics.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExplainMetrics', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'planSummary', subBuilder: PlanSummary.create) - ..aOM(2, _omitFieldNames ? '' : 'executionStats', subBuilder: ExecutionStats.create) - ..hasRequiredFields = false - ; + factory ExplainMetrics.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExplainMetrics.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExplainMetrics', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'planSummary', + subBuilder: PlanSummary.create) + ..aOM(2, _omitFieldNames ? '' : 'executionStats', + subBuilder: ExecutionStats.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExplainMetrics clone() => ExplainMetrics()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ExplainMetrics copyWith(void Function(ExplainMetrics) updates) => super.copyWith((message) => updates(message as ExplainMetrics)) as ExplainMetrics; + ExplainMetrics copyWith(void Function(ExplainMetrics) updates) => + super.copyWith((message) => updates(message as ExplainMetrics)) + as ExplainMetrics; @$core.override $pb.BuilderInfo get info_ => _i; @@ -109,9 +131,11 @@ class ExplainMetrics extends $pb.GeneratedMessage { static ExplainMetrics create() => ExplainMetrics._(); @$core.override ExplainMetrics createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExplainMetrics getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExplainMetrics getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExplainMetrics? _defaultInstance; /// Planning phase information for the query. @@ -153,18 +177,28 @@ class PlanSummary extends $pb.GeneratedMessage { PlanSummary._(); - factory PlanSummary.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory PlanSummary.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlanSummary', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..pc<$0.Struct>(1, _omitFieldNames ? '' : 'indexesUsed', $pb.PbFieldType.PM, subBuilder: $0.Struct.create) - ..hasRequiredFields = false - ; + factory PlanSummary.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PlanSummary.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PlanSummary', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..pc<$0.Struct>(1, _omitFieldNames ? '' : 'indexesUsed', $pb.PbFieldType.PM, + subBuilder: $0.Struct.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PlanSummary clone() => PlanSummary()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PlanSummary copyWith(void Function(PlanSummary) updates) => super.copyWith((message) => updates(message as PlanSummary)) as PlanSummary; + PlanSummary copyWith(void Function(PlanSummary) updates) => + super.copyWith((message) => updates(message as PlanSummary)) + as PlanSummary; @$core.override $pb.BuilderInfo get info_ => _i; @@ -175,7 +209,8 @@ class PlanSummary extends $pb.GeneratedMessage { PlanSummary createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PlanSummary getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PlanSummary getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PlanSummary? _defaultInstance; /// The indexes selected for the query. For example: @@ -205,21 +240,32 @@ class ExecutionStats extends $pb.GeneratedMessage { ExecutionStats._(); - factory ExecutionStats.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ExecutionStats.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecutionStats', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory ExecutionStats.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExecutionStats.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExecutionStats', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'resultsReturned') - ..aOM<$1.Duration>(3, _omitFieldNames ? '' : 'executionDuration', subBuilder: $1.Duration.create) + ..aOM<$1.Duration>(3, _omitFieldNames ? '' : 'executionDuration', + subBuilder: $1.Duration.create) ..aInt64(4, _omitFieldNames ? '' : 'readOperations') - ..aOM<$0.Struct>(5, _omitFieldNames ? '' : 'debugStats', subBuilder: $0.Struct.create) - ..hasRequiredFields = false - ; + ..aOM<$0.Struct>(5, _omitFieldNames ? '' : 'debugStats', + subBuilder: $0.Struct.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExecutionStats clone() => ExecutionStats()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ExecutionStats copyWith(void Function(ExecutionStats) updates) => super.copyWith((message) => updates(message as ExecutionStats)) as ExecutionStats; + ExecutionStats copyWith(void Function(ExecutionStats) updates) => + super.copyWith((message) => updates(message as ExecutionStats)) + as ExecutionStats; @$core.override $pb.BuilderInfo get info_ => _i; @@ -228,9 +274,11 @@ class ExecutionStats extends $pb.GeneratedMessage { static ExecutionStats create() => ExecutionStats._(); @$core.override ExecutionStats createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecutionStats getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExecutionStats getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExecutionStats? _defaultInstance; /// Total number of results returned, including documents, projections, @@ -290,6 +338,7 @@ class ExecutionStats extends $pb.GeneratedMessage { $0.Struct ensureDebugStats() => $_ensure(3); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pbenum.dart index a2e385f6..3f5360ee 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/query_profile.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pb.dart index 90a5f699..58b987df 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pb.dart @@ -24,12 +24,7 @@ export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; export 'write.pbenum.dart'; -enum Write_Operation { - update, - delete, - transform, - notSet -} +enum Write_Operation { update, delete, transform, notSet } /// A write on a document. class Write extends $pb.GeneratedMessage { @@ -47,36 +42,51 @@ class Write extends $pb.GeneratedMessage { if (updateMask != null) result.updateMask = updateMask; if (currentDocument != null) result.currentDocument = currentDocument; if (transform != null) result.transform = transform; - if (updateTransforms != null) result.updateTransforms.addAll(updateTransforms); + if (updateTransforms != null) + result.updateTransforms.addAll(updateTransforms); return result; } Write._(); - factory Write.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Write.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); + factory Write.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Write.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, Write_Operation> _Write_OperationByTag = { - 1 : Write_Operation.update, - 2 : Write_Operation.delete, - 6 : Write_Operation.transform, - 0 : Write_Operation.notSet + 1: Write_Operation.update, + 2: Write_Operation.delete, + 6: Write_Operation.transform, + 0: Write_Operation.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Write', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Write', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [1, 2, 6]) - ..aOM<$0.Document>(1, _omitFieldNames ? '' : 'update', subBuilder: $0.Document.create) + ..aOM<$0.Document>(1, _omitFieldNames ? '' : 'update', + subBuilder: $0.Document.create) ..aOS(2, _omitFieldNames ? '' : 'delete') - ..aOM<$1.DocumentMask>(3, _omitFieldNames ? '' : 'updateMask', subBuilder: $1.DocumentMask.create) - ..aOM<$1.Precondition>(4, _omitFieldNames ? '' : 'currentDocument', subBuilder: $1.Precondition.create) - ..aOM(6, _omitFieldNames ? '' : 'transform', subBuilder: DocumentTransform.create) - ..pc(7, _omitFieldNames ? '' : 'updateTransforms', $pb.PbFieldType.PM, subBuilder: DocumentTransform_FieldTransform.create) - ..hasRequiredFields = false - ; + ..aOM<$1.DocumentMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $1.DocumentMask.create) + ..aOM<$1.Precondition>(4, _omitFieldNames ? '' : 'currentDocument', + subBuilder: $1.Precondition.create) + ..aOM(6, _omitFieldNames ? '' : 'transform', + subBuilder: DocumentTransform.create) + ..pc( + 7, _omitFieldNames ? '' : 'updateTransforms', $pb.PbFieldType.PM, + subBuilder: DocumentTransform_FieldTransform.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Write clone() => Write()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Write copyWith(void Function(Write) updates) => super.copyWith((message) => updates(message as Write)) as Write; + Write copyWith(void Function(Write) updates) => + super.copyWith((message) => updates(message as Write)) as Write; @$core.override $pb.BuilderInfo get info_ => _i; @@ -87,7 +97,8 @@ class Write extends $pb.GeneratedMessage { Write createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Write getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Write getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Write? _defaultInstance; Write_Operation whichOperation() => _Write_OperationByTag[$_whichOneof(0)]!; @@ -169,16 +180,17 @@ class Write extends $pb.GeneratedMessage { /// write is equivalent to performing `update` and `transform` to the same /// document atomically and in order. @$pb.TagNumber(7) - $pb.PbList get updateTransforms => $_getList(5); + $pb.PbList get updateTransforms => + $_getList(5); } enum DocumentTransform_FieldTransform_TransformType { - setToServerValue, - increment, - maximum, - minimum, - appendMissingElements, - removeAllFromArray, + setToServerValue, + increment, + maximum, + minimum, + appendMissingElements, + removeAllFromArray, notSet } @@ -199,55 +211,87 @@ class DocumentTransform_FieldTransform extends $pb.GeneratedMessage { if (increment != null) result.increment = increment; if (maximum != null) result.maximum = maximum; if (minimum != null) result.minimum = minimum; - if (appendMissingElements != null) result.appendMissingElements = appendMissingElements; - if (removeAllFromArray != null) result.removeAllFromArray = removeAllFromArray; + if (appendMissingElements != null) + result.appendMissingElements = appendMissingElements; + if (removeAllFromArray != null) + result.removeAllFromArray = removeAllFromArray; return result; } DocumentTransform_FieldTransform._(); - factory DocumentTransform_FieldTransform.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DocumentTransform_FieldTransform.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, DocumentTransform_FieldTransform_TransformType> _DocumentTransform_FieldTransform_TransformTypeByTag = { - 2 : DocumentTransform_FieldTransform_TransformType.setToServerValue, - 3 : DocumentTransform_FieldTransform_TransformType.increment, - 4 : DocumentTransform_FieldTransform_TransformType.maximum, - 5 : DocumentTransform_FieldTransform_TransformType.minimum, - 6 : DocumentTransform_FieldTransform_TransformType.appendMissingElements, - 7 : DocumentTransform_FieldTransform_TransformType.removeAllFromArray, - 0 : DocumentTransform_FieldTransform_TransformType.notSet + factory DocumentTransform_FieldTransform.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DocumentTransform_FieldTransform.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core + .Map<$core.int, DocumentTransform_FieldTransform_TransformType> + _DocumentTransform_FieldTransform_TransformTypeByTag = { + 2: DocumentTransform_FieldTransform_TransformType.setToServerValue, + 3: DocumentTransform_FieldTransform_TransformType.increment, + 4: DocumentTransform_FieldTransform_TransformType.maximum, + 5: DocumentTransform_FieldTransform_TransformType.minimum, + 6: DocumentTransform_FieldTransform_TransformType.appendMissingElements, + 7: DocumentTransform_FieldTransform_TransformType.removeAllFromArray, + 0: DocumentTransform_FieldTransform_TransformType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DocumentTransform.FieldTransform', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DocumentTransform.FieldTransform', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..oo(0, [2, 3, 4, 5, 6, 7]) ..aOS(1, _omitFieldNames ? '' : 'fieldPath') - ..e(2, _omitFieldNames ? '' : 'setToServerValue', $pb.PbFieldType.OE, defaultOrMaker: DocumentTransform_FieldTransform_ServerValue.SERVER_VALUE_UNSPECIFIED, valueOf: DocumentTransform_FieldTransform_ServerValue.valueOf, enumValues: DocumentTransform_FieldTransform_ServerValue.values) - ..aOM<$0.Value>(3, _omitFieldNames ? '' : 'increment', subBuilder: $0.Value.create) - ..aOM<$0.Value>(4, _omitFieldNames ? '' : 'maximum', subBuilder: $0.Value.create) - ..aOM<$0.Value>(5, _omitFieldNames ? '' : 'minimum', subBuilder: $0.Value.create) - ..aOM<$0.ArrayValue>(6, _omitFieldNames ? '' : 'appendMissingElements', subBuilder: $0.ArrayValue.create) - ..aOM<$0.ArrayValue>(7, _omitFieldNames ? '' : 'removeAllFromArray', subBuilder: $0.ArrayValue.create) - ..hasRequiredFields = false - ; + ..e( + 2, _omitFieldNames ? '' : 'setToServerValue', $pb.PbFieldType.OE, + defaultOrMaker: DocumentTransform_FieldTransform_ServerValue + .SERVER_VALUE_UNSPECIFIED, + valueOf: DocumentTransform_FieldTransform_ServerValue.valueOf, + enumValues: DocumentTransform_FieldTransform_ServerValue.values) + ..aOM<$0.Value>(3, _omitFieldNames ? '' : 'increment', + subBuilder: $0.Value.create) + ..aOM<$0.Value>(4, _omitFieldNames ? '' : 'maximum', + subBuilder: $0.Value.create) + ..aOM<$0.Value>(5, _omitFieldNames ? '' : 'minimum', + subBuilder: $0.Value.create) + ..aOM<$0.ArrayValue>(6, _omitFieldNames ? '' : 'appendMissingElements', + subBuilder: $0.ArrayValue.create) + ..aOM<$0.ArrayValue>(7, _omitFieldNames ? '' : 'removeAllFromArray', + subBuilder: $0.ArrayValue.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DocumentTransform_FieldTransform clone() => DocumentTransform_FieldTransform()..mergeFromMessage(this); + DocumentTransform_FieldTransform clone() => + DocumentTransform_FieldTransform()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DocumentTransform_FieldTransform copyWith(void Function(DocumentTransform_FieldTransform) updates) => super.copyWith((message) => updates(message as DocumentTransform_FieldTransform)) as DocumentTransform_FieldTransform; + DocumentTransform_FieldTransform copyWith( + void Function(DocumentTransform_FieldTransform) updates) => + super.copyWith( + (message) => updates(message as DocumentTransform_FieldTransform)) + as DocumentTransform_FieldTransform; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static DocumentTransform_FieldTransform create() => DocumentTransform_FieldTransform._(); + static DocumentTransform_FieldTransform create() => + DocumentTransform_FieldTransform._(); @$core.override DocumentTransform_FieldTransform createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DocumentTransform_FieldTransform getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DocumentTransform_FieldTransform getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static DocumentTransform_FieldTransform? _defaultInstance; - DocumentTransform_FieldTransform_TransformType whichTransformType() => _DocumentTransform_FieldTransform_TransformTypeByTag[$_whichOneof(0)]!; + DocumentTransform_FieldTransform_TransformType whichTransformType() => + _DocumentTransform_FieldTransform_TransformTypeByTag[$_whichOneof(0)]!; void clearTransformType() => $_clearField($_whichOneof(0)); /// The path of the field. See @@ -264,9 +308,11 @@ class DocumentTransform_FieldTransform extends $pb.GeneratedMessage { /// Sets the field to the given server value. @$pb.TagNumber(2) - DocumentTransform_FieldTransform_ServerValue get setToServerValue => $_getN(1); + DocumentTransform_FieldTransform_ServerValue get setToServerValue => + $_getN(1); @$pb.TagNumber(2) - set setToServerValue(DocumentTransform_FieldTransform_ServerValue value) => $_setField(2, value); + set setToServerValue(DocumentTransform_FieldTransform_ServerValue value) => + $_setField(2, value); @$pb.TagNumber(2) $core.bool hasSetToServerValue() => $_has(1); @$pb.TagNumber(2) @@ -398,19 +444,30 @@ class DocumentTransform extends $pb.GeneratedMessage { DocumentTransform._(); - factory DocumentTransform.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DocumentTransform.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DocumentTransform', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory DocumentTransform.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DocumentTransform.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DocumentTransform', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'document') - ..pc(2, _omitFieldNames ? '' : 'fieldTransforms', $pb.PbFieldType.PM, subBuilder: DocumentTransform_FieldTransform.create) - ..hasRequiredFields = false - ; + ..pc( + 2, _omitFieldNames ? '' : 'fieldTransforms', $pb.PbFieldType.PM, + subBuilder: DocumentTransform_FieldTransform.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DocumentTransform clone() => DocumentTransform()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DocumentTransform copyWith(void Function(DocumentTransform) updates) => super.copyWith((message) => updates(message as DocumentTransform)) as DocumentTransform; + DocumentTransform copyWith(void Function(DocumentTransform) updates) => + super.copyWith((message) => updates(message as DocumentTransform)) + as DocumentTransform; @$core.override $pb.BuilderInfo get info_ => _i; @@ -419,9 +476,11 @@ class DocumentTransform extends $pb.GeneratedMessage { static DocumentTransform create() => DocumentTransform._(); @$core.override DocumentTransform createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DocumentTransform getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DocumentTransform getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DocumentTransform? _defaultInstance; /// The name of the document to transform. @@ -438,7 +497,8 @@ class DocumentTransform extends $pb.GeneratedMessage { /// order. /// This must not be empty. @$pb.TagNumber(2) - $pb.PbList get fieldTransforms => $_getList(1); + $pb.PbList get fieldTransforms => + $_getList(1); } /// The result of applying a write. @@ -449,25 +509,38 @@ class WriteResult extends $pb.GeneratedMessage { }) { final result = create(); if (updateTime != null) result.updateTime = updateTime; - if (transformResults != null) result.transformResults.addAll(transformResults); + if (transformResults != null) + result.transformResults.addAll(transformResults); return result; } WriteResult._(); - factory WriteResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory WriteResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WriteResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM<$2.Timestamp>(1, _omitFieldNames ? '' : 'updateTime', subBuilder: $2.Timestamp.create) - ..pc<$0.Value>(2, _omitFieldNames ? '' : 'transformResults', $pb.PbFieldType.PM, subBuilder: $0.Value.create) - ..hasRequiredFields = false - ; + factory WriteResult.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory WriteResult.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WriteResult', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM<$2.Timestamp>(1, _omitFieldNames ? '' : 'updateTime', + subBuilder: $2.Timestamp.create) + ..pc<$0.Value>( + 2, _omitFieldNames ? '' : 'transformResults', $pb.PbFieldType.PM, + subBuilder: $0.Value.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') WriteResult clone() => WriteResult()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - WriteResult copyWith(void Function(WriteResult) updates) => super.copyWith((message) => updates(message as WriteResult)) as WriteResult; + WriteResult copyWith(void Function(WriteResult) updates) => + super.copyWith((message) => updates(message as WriteResult)) + as WriteResult; @$core.override $pb.BuilderInfo get info_ => _i; @@ -478,7 +551,8 @@ class WriteResult extends $pb.GeneratedMessage { WriteResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static WriteResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static WriteResult getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static WriteResult? _defaultInstance; /// The last update time of the document after applying the write. Not set @@ -521,26 +595,38 @@ class DocumentChange extends $pb.GeneratedMessage { final result = create(); if (document != null) result.document = document; if (targetIds != null) result.targetIds.addAll(targetIds); - if (removedTargetIds != null) result.removedTargetIds.addAll(removedTargetIds); + if (removedTargetIds != null) + result.removedTargetIds.addAll(removedTargetIds); return result; } DocumentChange._(); - factory DocumentChange.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DocumentChange.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DocumentChange', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) - ..aOM<$0.Document>(1, _omitFieldNames ? '' : 'document', subBuilder: $0.Document.create) + factory DocumentChange.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DocumentChange.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DocumentChange', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) + ..aOM<$0.Document>(1, _omitFieldNames ? '' : 'document', + subBuilder: $0.Document.create) ..p<$core.int>(5, _omitFieldNames ? '' : 'targetIds', $pb.PbFieldType.K3) - ..p<$core.int>(6, _omitFieldNames ? '' : 'removedTargetIds', $pb.PbFieldType.K3) - ..hasRequiredFields = false - ; + ..p<$core.int>( + 6, _omitFieldNames ? '' : 'removedTargetIds', $pb.PbFieldType.K3) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DocumentChange clone() => DocumentChange()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DocumentChange copyWith(void Function(DocumentChange) updates) => super.copyWith((message) => updates(message as DocumentChange)) as DocumentChange; + DocumentChange copyWith(void Function(DocumentChange) updates) => + super.copyWith((message) => updates(message as DocumentChange)) + as DocumentChange; @$core.override $pb.BuilderInfo get info_ => _i; @@ -549,9 +635,11 @@ class DocumentChange extends $pb.GeneratedMessage { static DocumentChange create() => DocumentChange._(); @$core.override DocumentChange createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DocumentChange getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DocumentChange getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DocumentChange? _defaultInstance; /// The new state of the [Document][google.firestore.v1.Document]. @@ -594,26 +682,38 @@ class DocumentDelete extends $pb.GeneratedMessage { final result = create(); if (document != null) result.document = document; if (readTime != null) result.readTime = readTime; - if (removedTargetIds != null) result.removedTargetIds.addAll(removedTargetIds); + if (removedTargetIds != null) + result.removedTargetIds.addAll(removedTargetIds); return result; } DocumentDelete._(); - factory DocumentDelete.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DocumentDelete.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DocumentDelete', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory DocumentDelete.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DocumentDelete.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DocumentDelete', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'document') - ..aOM<$2.Timestamp>(4, _omitFieldNames ? '' : 'readTime', subBuilder: $2.Timestamp.create) - ..p<$core.int>(6, _omitFieldNames ? '' : 'removedTargetIds', $pb.PbFieldType.K3) - ..hasRequiredFields = false - ; + ..aOM<$2.Timestamp>(4, _omitFieldNames ? '' : 'readTime', + subBuilder: $2.Timestamp.create) + ..p<$core.int>( + 6, _omitFieldNames ? '' : 'removedTargetIds', $pb.PbFieldType.K3) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DocumentDelete clone() => DocumentDelete()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DocumentDelete copyWith(void Function(DocumentDelete) updates) => super.copyWith((message) => updates(message as DocumentDelete)) as DocumentDelete; + DocumentDelete copyWith(void Function(DocumentDelete) updates) => + super.copyWith((message) => updates(message as DocumentDelete)) + as DocumentDelete; @$core.override $pb.BuilderInfo get info_ => _i; @@ -622,9 +722,11 @@ class DocumentDelete extends $pb.GeneratedMessage { static DocumentDelete create() => DocumentDelete._(); @$core.override DocumentDelete createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DocumentDelete getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DocumentDelete getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DocumentDelete? _defaultInstance; /// The resource name of the [Document][google.firestore.v1.Document] that was @@ -675,27 +777,39 @@ class DocumentRemove extends $pb.GeneratedMessage { }) { final result = create(); if (document != null) result.document = document; - if (removedTargetIds != null) result.removedTargetIds.addAll(removedTargetIds); + if (removedTargetIds != null) + result.removedTargetIds.addAll(removedTargetIds); if (readTime != null) result.readTime = readTime; return result; } DocumentRemove._(); - factory DocumentRemove.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DocumentRemove.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DocumentRemove', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory DocumentRemove.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DocumentRemove.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DocumentRemove', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'document') - ..p<$core.int>(2, _omitFieldNames ? '' : 'removedTargetIds', $pb.PbFieldType.K3) - ..aOM<$2.Timestamp>(4, _omitFieldNames ? '' : 'readTime', subBuilder: $2.Timestamp.create) - ..hasRequiredFields = false - ; + ..p<$core.int>( + 2, _omitFieldNames ? '' : 'removedTargetIds', $pb.PbFieldType.K3) + ..aOM<$2.Timestamp>(4, _omitFieldNames ? '' : 'readTime', + subBuilder: $2.Timestamp.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DocumentRemove clone() => DocumentRemove()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DocumentRemove copyWith(void Function(DocumentRemove) updates) => super.copyWith((message) => updates(message as DocumentRemove)) as DocumentRemove; + DocumentRemove copyWith(void Function(DocumentRemove) updates) => + super.copyWith((message) => updates(message as DocumentRemove)) + as DocumentRemove; @$core.override $pb.BuilderInfo get info_ => _i; @@ -704,9 +818,11 @@ class DocumentRemove extends $pb.GeneratedMessage { static DocumentRemove create() => DocumentRemove._(); @$core.override DocumentRemove createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DocumentRemove getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DocumentRemove getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DocumentRemove? _defaultInstance; /// The resource name of the [Document][google.firestore.v1.Document] that has @@ -755,20 +871,30 @@ class ExistenceFilter extends $pb.GeneratedMessage { ExistenceFilter._(); - factory ExistenceFilter.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ExistenceFilter.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExistenceFilter', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), createEmptyInstance: create) + factory ExistenceFilter.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExistenceFilter.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExistenceFilter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'targetId', $pb.PbFieldType.O3) ..a<$core.int>(2, _omitFieldNames ? '' : 'count', $pb.PbFieldType.O3) - ..aOM<$3.BloomFilter>(3, _omitFieldNames ? '' : 'unchangedNames', subBuilder: $3.BloomFilter.create) - ..hasRequiredFields = false - ; + ..aOM<$3.BloomFilter>(3, _omitFieldNames ? '' : 'unchangedNames', + subBuilder: $3.BloomFilter.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExistenceFilter clone() => ExistenceFilter()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ExistenceFilter copyWith(void Function(ExistenceFilter) updates) => super.copyWith((message) => updates(message as ExistenceFilter)) as ExistenceFilter; + ExistenceFilter copyWith(void Function(ExistenceFilter) updates) => + super.copyWith((message) => updates(message as ExistenceFilter)) + as ExistenceFilter; @$core.override $pb.BuilderInfo get info_ => _i; @@ -777,9 +903,11 @@ class ExistenceFilter extends $pb.GeneratedMessage { static ExistenceFilter create() => ExistenceFilter._(); @$core.override ExistenceFilter createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExistenceFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExistenceFilter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExistenceFilter? _defaultInstance; /// The target ID to which this filter applies. @@ -834,6 +962,7 @@ class ExistenceFilter extends $pb.GeneratedMessage { $3.BloomFilter ensureUnchangedNames() => $_ensure(2); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pbenum.dart index 312da79a..e24ef8a5 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/firestore/v1/write.pbenum.dart @@ -17,22 +17,31 @@ import 'package:protobuf/protobuf.dart' as $pb; /// A value that is calculated by the server. class DocumentTransform_FieldTransform_ServerValue extends $pb.ProtobufEnum { /// Unspecified. This value must not be used. - static const DocumentTransform_FieldTransform_ServerValue SERVER_VALUE_UNSPECIFIED = DocumentTransform_FieldTransform_ServerValue._(0, _omitEnumNames ? '' : 'SERVER_VALUE_UNSPECIFIED'); + static const DocumentTransform_FieldTransform_ServerValue + SERVER_VALUE_UNSPECIFIED = DocumentTransform_FieldTransform_ServerValue._( + 0, _omitEnumNames ? '' : 'SERVER_VALUE_UNSPECIFIED'); + /// The time at which the server processed the request, with millisecond /// precision. If used on multiple fields (same or different documents) in /// a transaction, all the fields will get the same server timestamp. - static const DocumentTransform_FieldTransform_ServerValue REQUEST_TIME = DocumentTransform_FieldTransform_ServerValue._(1, _omitEnumNames ? '' : 'REQUEST_TIME'); + static const DocumentTransform_FieldTransform_ServerValue REQUEST_TIME = + DocumentTransform_FieldTransform_ServerValue._( + 1, _omitEnumNames ? '' : 'REQUEST_TIME'); - static const $core.List values = [ + static const $core.List values = + [ SERVER_VALUE_UNSPECIFIED, REQUEST_TIME, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 1); - static DocumentTransform_FieldTransform_ServerValue? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List + _byValue = $pb.ProtobufEnum.$_initByValueList(values, 1); + static DocumentTransform_FieldTransform_ServerValue? valueOf( + $core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const DocumentTransform_FieldTransform_ServerValue._(super.value, super.name); } - -const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pb.dart index 12b9e616..a8bf1938 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pb.dart @@ -116,19 +116,30 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { Any._(); - factory Any.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Any.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Any', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.AnyMixin.toProto3JsonHelper, fromProto3Json: $mixin.AnyMixin.fromProto3JsonHelper) + factory Any.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Any.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Any', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.AnyMixin.toProto3JsonHelper, + fromProto3Json: $mixin.AnyMixin.fromProto3JsonHelper) ..aOS(1, _omitFieldNames ? '' : 'typeUrl') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Any clone() => Any()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Any copyWith(void Function(Any) updates) => super.copyWith((message) => updates(message as Any)) as Any; + Any copyWith(void Function(Any) updates) => + super.copyWith((message) => updates(message as Any)) as Any; @$core.override $pb.BuilderInfo get info_ => _i; @@ -139,7 +150,8 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { Any createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Any getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Any getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Any? _defaultInstance; /// A URL/resource name that uniquely identifies the type of the serialized @@ -188,19 +200,20 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { $core.bool hasValue() => $_has(1); @$pb.TagNumber(2) void clearValue() => $_clearField(2); + /// Creates a new [Any] encoding [message]. /// /// The [typeUrl] will be [typeUrlPrefix]/`fullName` where `fullName` is /// the fully qualified name of the type of [message]. static Any pack($pb.GeneratedMessage message, - {$core.String typeUrlPrefix = 'type.googleapis.com'}) { + {$core.String typeUrlPrefix = 'type.googleapis.com'}) { final result = create(); - $mixin.AnyMixin.packIntoAny(result, message, - typeUrlPrefix: typeUrlPrefix); + $mixin.AnyMixin.packIntoAny(result, message, typeUrlPrefix: typeUrlPrefix); return result; } } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pbenum.dart index a10b02ba..a829fd5b 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/any.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pb.dart index e632ea3a..5cba2308 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pb.dart @@ -90,19 +90,29 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { Duration._(); - factory Duration.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Duration.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Duration', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.DurationMixin.toProto3JsonHelper, fromProto3Json: $mixin.DurationMixin.fromProto3JsonHelper) + factory Duration.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Duration.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Duration', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.DurationMixin.toProto3JsonHelper, + fromProto3Json: $mixin.DurationMixin.fromProto3JsonHelper) ..aInt64(1, _omitFieldNames ? '' : 'seconds') ..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Duration clone() => Duration()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Duration copyWith(void Function(Duration) updates) => super.copyWith((message) => updates(message as Duration)) as Duration; + Duration copyWith(void Function(Duration) updates) => + super.copyWith((message) => updates(message as Duration)) as Duration; @$core.override $pb.BuilderInfo get info_ => _i; @@ -113,7 +123,8 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { Duration createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Duration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Duration getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Duration? _defaultInstance; /// Signed seconds of the span of time. Must be from -315,576,000,000 @@ -142,23 +153,24 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { $core.bool hasNanos() => $_has(1); @$pb.TagNumber(2) void clearNanos() => $_clearField(2); + /// Converts the [Duration] to [$core.Duration]. /// /// This is a lossy conversion, as [$core.Duration] is limited to [int] /// microseconds and also does not support nanosecond precision. - $core.Duration toDart() => - $core.Duration( - seconds: seconds.toInt(), - microseconds: nanos ~/ 1000, - ); + $core.Duration toDart() => $core.Duration( + seconds: seconds.toInt(), + microseconds: nanos ~/ 1000, + ); /// Creates a new instance from [$core.Duration]. static Duration fromDart($core.Duration duration) => Duration() ..seconds = $fixnum.Int64(duration.inSeconds) - ..nanos = (duration.inMicroseconds % $core.Duration.microsecondsPerSecond) * 1000; - + ..nanos = + (duration.inMicroseconds % $core.Duration.microsecondsPerSecond) * 1000; } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pbenum.dart index 7712c902..bc980256 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/duration.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pb.dart index 15bdcea6..0d803e08 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pb.dart @@ -28,17 +28,25 @@ class Empty extends $pb.GeneratedMessage { Empty._(); - factory Empty.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Empty.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); + factory Empty.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Empty.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Empty', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Empty', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Empty clone() => Empty()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty; + Empty copyWith(void Function(Empty) updates) => + super.copyWith((message) => updates(message as Empty)) as Empty; @$core.override $pb.BuilderInfo get info_ => _i; @@ -49,9 +57,10 @@ class Empty extends $pb.GeneratedMessage { Empty createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Empty getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Empty getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Empty? _defaultInstance; } - -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pbenum.dart index fba5dde7..0573bd5a 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/empty.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pb.dart index caf4194a..f5233154 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pb.dart @@ -41,18 +41,34 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { Struct._(); - factory Struct.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Struct.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Struct', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.StructMixin.toProto3JsonHelper, fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) - ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', entryClassName: 'Struct.FieldsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: Value.create, valueDefaultOrMaker: Value.getDefault, packageName: const $pb.PackageName('google.protobuf')) - ..hasRequiredFields = false - ; + factory Struct.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Struct.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Struct', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.StructMixin.toProto3JsonHelper, + fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) + ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', + entryClassName: 'Struct.FieldsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Value.create, + valueDefaultOrMaker: Value.getDefault, + packageName: const $pb.PackageName('google.protobuf')) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Struct clone() => Struct()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Struct copyWith(void Function(Struct) updates) => super.copyWith((message) => updates(message as Struct)) as Struct; + Struct copyWith(void Function(Struct) updates) => + super.copyWith((message) => updates(message as Struct)) as Struct; @$core.override $pb.BuilderInfo get info_ => _i; @@ -63,7 +79,8 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { Struct createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Struct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Struct getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Struct? _defaultInstance; /// Unordered map of dynamically typed values. @@ -72,12 +89,12 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { } enum Value_Kind { - nullValue, - numberValue, - stringValue, - boolValue, - structValue, - listValue, + nullValue, + numberValue, + stringValue, + boolValue, + structValue, + listValue, notSet } @@ -108,33 +125,49 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { Value._(); - factory Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); + factory Value.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Value.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { - 1 : Value_Kind.nullValue, - 2 : Value_Kind.numberValue, - 3 : Value_Kind.stringValue, - 4 : Value_Kind.boolValue, - 5 : Value_Kind.structValue, - 6 : Value_Kind.listValue, - 0 : Value_Kind.notSet + 1: Value_Kind.nullValue, + 2: Value_Kind.numberValue, + 3: Value_Kind.stringValue, + 4: Value_Kind.boolValue, + 5: Value_Kind.structValue, + 6: Value_Kind.listValue, + 0: Value_Kind.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) ..oo(0, [1, 2, 3, 4, 5, 6]) - ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, defaultOrMaker: NullValue.NULL_VALUE, valueOf: NullValue.valueOf, enumValues: NullValue.values) - ..a<$core.double>(2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) + ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: NullValue.NULL_VALUE, + valueOf: NullValue.valueOf, + enumValues: NullValue.values) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) ..aOS(3, _omitFieldNames ? '' : 'stringValue') ..aOB(4, _omitFieldNames ? '' : 'boolValue') - ..aOM(5, _omitFieldNames ? '' : 'structValue', subBuilder: Struct.create) - ..aOM(6, _omitFieldNames ? '' : 'listValue', subBuilder: ListValue.create) - ..hasRequiredFields = false - ; + ..aOM(5, _omitFieldNames ? '' : 'structValue', + subBuilder: Struct.create) + ..aOM(6, _omitFieldNames ? '' : 'listValue', + subBuilder: ListValue.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Value clone() => Value()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Value copyWith(void Function(Value) updates) => super.copyWith((message) => updates(message as Value)) as Value; + Value copyWith(void Function(Value) updates) => + super.copyWith((message) => updates(message as Value)) as Value; @$core.override $pb.BuilderInfo get info_ => _i; @@ -145,7 +178,8 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Value getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Value? _defaultInstance; Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; @@ -230,18 +264,29 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { ListValue._(); - factory ListValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory ListValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) - ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, subBuilder: Value.create) - ..hasRequiredFields = false - ; + factory ListValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ListValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListValue clone() => ListValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListValue copyWith(void Function(ListValue) updates) => super.copyWith((message) => updates(message as ListValue)) as ListValue; + ListValue copyWith(void Function(ListValue) updates) => + super.copyWith((message) => updates(message as ListValue)) as ListValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -252,7 +297,8 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { ListValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListValue getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListValue? _defaultInstance; /// Repeated field of dynamically typed values. @@ -260,6 +306,7 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { $pb.PbList get values => $_getList(0); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pbenum.dart index 5559256e..480d8150 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/struct.pbenum.dart @@ -20,17 +20,20 @@ import 'package:protobuf/protobuf.dart' as $pb; /// The JSON representation for `NullValue` is JSON `null`. class NullValue extends $pb.ProtobufEnum { /// Null value. - static const NullValue NULL_VALUE = NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); + static const NullValue NULL_VALUE = + NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); - static const $core.List values = [ + static const $core.List values = [ NULL_VALUE, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 0); - static NullValue? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 0); + static NullValue? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; const NullValue._(super.value, super.name); } - -const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pb.dart index dcaa04f1..5feef14d 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pb.dart @@ -121,19 +121,29 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { Timestamp._(); - factory Timestamp.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Timestamp.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Timestamp', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) + factory Timestamp.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Timestamp.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Timestamp', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, + fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) ..aInt64(1, _omitFieldNames ? '' : 'seconds') ..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Timestamp clone() => Timestamp()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Timestamp copyWith(void Function(Timestamp) updates) => super.copyWith((message) => updates(message as Timestamp)) as Timestamp; + Timestamp copyWith(void Function(Timestamp) updates) => + super.copyWith((message) => updates(message as Timestamp)) as Timestamp; @$core.override $pb.BuilderInfo get info_ => _i; @@ -144,7 +154,8 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { Timestamp createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Timestamp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Timestamp getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Timestamp? _defaultInstance; /// Represents seconds of UTC time since Unix epoch @@ -171,6 +182,7 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { $core.bool hasNanos() => $_has(1); @$pb.TagNumber(2) void clearNanos() => $_clearField(2); + /// Creates a new instance from [dateTime]. /// /// Time zone information will not be preserved. @@ -181,6 +193,7 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { } } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pbenum.dart index c0e73b68..f952d36b 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/timestamp.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pb.dart index ae5c7d5a..af8892f5 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pb.dart @@ -36,18 +36,29 @@ class DoubleValue extends $pb.GeneratedMessage with $mixin.DoubleValueMixin { DoubleValue._(); - factory DoubleValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory DoubleValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DoubleValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.DoubleValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.DoubleValueMixin.fromProto3JsonHelper) + factory DoubleValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DoubleValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DoubleValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.DoubleValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.DoubleValueMixin.fromProto3JsonHelper) ..a<$core.double>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OD) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DoubleValue clone() => DoubleValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DoubleValue copyWith(void Function(DoubleValue) updates) => super.copyWith((message) => updates(message as DoubleValue)) as DoubleValue; + DoubleValue copyWith(void Function(DoubleValue) updates) => + super.copyWith((message) => updates(message as DoubleValue)) + as DoubleValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -58,7 +69,8 @@ class DoubleValue extends $pb.GeneratedMessage with $mixin.DoubleValueMixin { DoubleValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static DoubleValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DoubleValue getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DoubleValue? _defaultInstance; /// The double value. @@ -89,18 +101,28 @@ class FloatValue extends $pb.GeneratedMessage with $mixin.FloatValueMixin { FloatValue._(); - factory FloatValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory FloatValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FloatValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.FloatValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.FloatValueMixin.fromProto3JsonHelper) + factory FloatValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory FloatValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FloatValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.FloatValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.FloatValueMixin.fromProto3JsonHelper) ..a<$core.double>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OF) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') FloatValue clone() => FloatValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - FloatValue copyWith(void Function(FloatValue) updates) => super.copyWith((message) => updates(message as FloatValue)) as FloatValue; + FloatValue copyWith(void Function(FloatValue) updates) => + super.copyWith((message) => updates(message as FloatValue)) as FloatValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -111,7 +133,8 @@ class FloatValue extends $pb.GeneratedMessage with $mixin.FloatValueMixin { FloatValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static FloatValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static FloatValue getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static FloatValue? _defaultInstance; /// The float value. @@ -142,18 +165,28 @@ class Int64Value extends $pb.GeneratedMessage with $mixin.Int64ValueMixin { Int64Value._(); - factory Int64Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Int64Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Int64Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.Int64ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.Int64ValueMixin.fromProto3JsonHelper) + factory Int64Value.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Int64Value.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Int64Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.Int64ValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.Int64ValueMixin.fromProto3JsonHelper) ..aInt64(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Int64Value clone() => Int64Value()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Int64Value copyWith(void Function(Int64Value) updates) => super.copyWith((message) => updates(message as Int64Value)) as Int64Value; + Int64Value copyWith(void Function(Int64Value) updates) => + super.copyWith((message) => updates(message as Int64Value)) as Int64Value; @$core.override $pb.BuilderInfo get info_ => _i; @@ -164,7 +197,8 @@ class Int64Value extends $pb.GeneratedMessage with $mixin.Int64ValueMixin { Int64Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Int64Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Int64Value getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Int64Value? _defaultInstance; /// The int64 value. @@ -195,18 +229,30 @@ class UInt64Value extends $pb.GeneratedMessage with $mixin.UInt64ValueMixin { UInt64Value._(); - factory UInt64Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory UInt64Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UInt64Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.UInt64ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.UInt64ValueMixin.fromProto3JsonHelper) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false - ; + factory UInt64Value.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UInt64Value.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UInt64Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.UInt64ValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.UInt64ValueMixin.fromProto3JsonHelper) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UInt64Value clone() => UInt64Value()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UInt64Value copyWith(void Function(UInt64Value) updates) => super.copyWith((message) => updates(message as UInt64Value)) as UInt64Value; + UInt64Value copyWith(void Function(UInt64Value) updates) => + super.copyWith((message) => updates(message as UInt64Value)) + as UInt64Value; @$core.override $pb.BuilderInfo get info_ => _i; @@ -217,7 +263,8 @@ class UInt64Value extends $pb.GeneratedMessage with $mixin.UInt64ValueMixin { UInt64Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UInt64Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UInt64Value getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UInt64Value? _defaultInstance; /// The uint64 value. @@ -248,18 +295,28 @@ class Int32Value extends $pb.GeneratedMessage with $mixin.Int32ValueMixin { Int32Value._(); - factory Int32Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Int32Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Int32Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.Int32ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.Int32ValueMixin.fromProto3JsonHelper) + factory Int32Value.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Int32Value.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Int32Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.Int32ValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.Int32ValueMixin.fromProto3JsonHelper) ..a<$core.int>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Int32Value clone() => Int32Value()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)) as Int32Value; + Int32Value copyWith(void Function(Int32Value) updates) => + super.copyWith((message) => updates(message as Int32Value)) as Int32Value; @$core.override $pb.BuilderInfo get info_ => _i; @@ -270,7 +327,8 @@ class Int32Value extends $pb.GeneratedMessage with $mixin.Int32ValueMixin { Int32Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Int32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Int32Value getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Int32Value? _defaultInstance; /// The int32 value. @@ -301,18 +359,29 @@ class UInt32Value extends $pb.GeneratedMessage with $mixin.UInt32ValueMixin { UInt32Value._(); - factory UInt32Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory UInt32Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UInt32Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.UInt32ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.UInt32ValueMixin.fromProto3JsonHelper) + factory UInt32Value.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UInt32Value.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UInt32Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.UInt32ValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.UInt32ValueMixin.fromProto3JsonHelper) ..a<$core.int>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UInt32Value clone() => UInt32Value()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UInt32Value copyWith(void Function(UInt32Value) updates) => super.copyWith((message) => updates(message as UInt32Value)) as UInt32Value; + UInt32Value copyWith(void Function(UInt32Value) updates) => + super.copyWith((message) => updates(message as UInt32Value)) + as UInt32Value; @$core.override $pb.BuilderInfo get info_ => _i; @@ -323,7 +392,8 @@ class UInt32Value extends $pb.GeneratedMessage with $mixin.UInt32ValueMixin { UInt32Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UInt32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UInt32Value getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UInt32Value? _defaultInstance; /// The uint32 value. @@ -354,18 +424,28 @@ class BoolValue extends $pb.GeneratedMessage with $mixin.BoolValueMixin { BoolValue._(); - factory BoolValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BoolValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BoolValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.BoolValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.BoolValueMixin.fromProto3JsonHelper) + factory BoolValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BoolValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BoolValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.BoolValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.BoolValueMixin.fromProto3JsonHelper) ..aOB(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BoolValue clone() => BoolValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BoolValue copyWith(void Function(BoolValue) updates) => super.copyWith((message) => updates(message as BoolValue)) as BoolValue; + BoolValue copyWith(void Function(BoolValue) updates) => + super.copyWith((message) => updates(message as BoolValue)) as BoolValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -376,7 +456,8 @@ class BoolValue extends $pb.GeneratedMessage with $mixin.BoolValueMixin { BoolValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BoolValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BoolValue getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BoolValue? _defaultInstance; /// The bool value. @@ -407,18 +488,29 @@ class StringValue extends $pb.GeneratedMessage with $mixin.StringValueMixin { StringValue._(); - factory StringValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory StringValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StringValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.StringValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.StringValueMixin.fromProto3JsonHelper) + factory StringValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory StringValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StringValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.StringValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.StringValueMixin.fromProto3JsonHelper) ..aOS(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') StringValue clone() => StringValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StringValue copyWith(void Function(StringValue) updates) => super.copyWith((message) => updates(message as StringValue)) as StringValue; + StringValue copyWith(void Function(StringValue) updates) => + super.copyWith((message) => updates(message as StringValue)) + as StringValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -429,7 +521,8 @@ class StringValue extends $pb.GeneratedMessage with $mixin.StringValueMixin { StringValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static StringValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StringValue getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StringValue? _defaultInstance; /// The string value. @@ -460,18 +553,29 @@ class BytesValue extends $pb.GeneratedMessage with $mixin.BytesValueMixin { BytesValue._(); - factory BytesValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory BytesValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BytesValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.BytesValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.BytesValueMixin.fromProto3JsonHelper) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + factory BytesValue.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory BytesValue.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BytesValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.BytesValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.BytesValueMixin.fromProto3JsonHelper) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BytesValue clone() => BytesValue()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BytesValue copyWith(void Function(BytesValue) updates) => super.copyWith((message) => updates(message as BytesValue)) as BytesValue; + BytesValue copyWith(void Function(BytesValue) updates) => + super.copyWith((message) => updates(message as BytesValue)) as BytesValue; @$core.override $pb.BuilderInfo get info_ => _i; @@ -482,7 +586,8 @@ class BytesValue extends $pb.GeneratedMessage with $mixin.BytesValueMixin { BytesValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BytesValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BytesValue getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BytesValue? _defaultInstance; /// The bytes value. @@ -496,6 +601,7 @@ class BytesValue extends $pb.GeneratedMessage with $mixin.BytesValueMixin { void clearValue() => $_clearField(1); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pbenum.dart index 84463da1..33121d00 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/protobuf/wrappers.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pb.dart index c55b16c4..0210940b 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pb.dart @@ -40,20 +40,28 @@ class Status extends $pb.GeneratedMessage { Status._(); - factory Status.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory Status.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Status', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create) + factory Status.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Status.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Status', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) ..aOS(2, _omitFieldNames ? '' : 'message') - ..pc<$0.Any>(3, _omitFieldNames ? '' : 'details', $pb.PbFieldType.PM, subBuilder: $0.Any.create) - ..hasRequiredFields = false - ; + ..pc<$0.Any>(3, _omitFieldNames ? '' : 'details', $pb.PbFieldType.PM, + subBuilder: $0.Any.create) + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Status clone() => Status()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Status copyWith(void Function(Status) updates) => super.copyWith((message) => updates(message as Status)) as Status; + Status copyWith(void Function(Status) updates) => + super.copyWith((message) => updates(message as Status)) as Status; @$core.override $pb.BuilderInfo get info_ => _i; @@ -64,7 +72,8 @@ class Status extends $pb.GeneratedMessage { Status createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Status getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Status getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Status? _defaultInstance; /// The status code, which should be an enum value of @@ -97,6 +106,7 @@ class Status extends $pb.GeneratedMessage { $pb.PbList<$0.Any> get details => $_getList(2); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pbenum.dart index bcf301c2..646a13c5 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/rpc/status.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names - diff --git a/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pb.dart b/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pb.dart index e6fcdd86..d84b6e29 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pb.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pb.dart @@ -34,19 +34,26 @@ class LatLng extends $pb.GeneratedMessage { LatLng._(); - factory LatLng.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory LatLng.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LatLng', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.type'), createEmptyInstance: create) + factory LatLng.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory LatLng.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LatLng', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.type'), + createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'latitude', $pb.PbFieldType.OD) ..a<$core.double>(2, _omitFieldNames ? '' : 'longitude', $pb.PbFieldType.OD) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') LatLng clone() => LatLng()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - LatLng copyWith(void Function(LatLng) updates) => super.copyWith((message) => updates(message as LatLng)) as LatLng; + LatLng copyWith(void Function(LatLng) updates) => + super.copyWith((message) => updates(message as LatLng)) as LatLng; @$core.override $pb.BuilderInfo get info_ => _i; @@ -57,7 +64,8 @@ class LatLng extends $pb.GeneratedMessage { LatLng createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static LatLng getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static LatLng getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static LatLng? _defaultInstance; /// The latitude in degrees. It must be in the range [-90.0, +90.0]. @@ -81,6 +89,7 @@ class LatLng extends $pb.GeneratedMessage { void clearLongitude() => $_clearField(2); } - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pbenum.dart b/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pbenum.dart index 923557d9..c0c6f02f 100644 --- a/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pbenum.dart +++ b/pkgs/googleapis_firestore_v1/lib/google/type/latlng.pbenum.dart @@ -9,4 +9,3 @@ // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names -