diff --git a/packages/firebase_data_connect/firebase_data_connect/example/pubspec.yaml b/packages/firebase_data_connect/firebase_data_connect/example/pubspec.yaml index 637a411ad07f..e9f237c6e5a4 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/pubspec.yaml +++ b/packages/firebase_data_connect/firebase_data_connect/example/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: cupertino_icons: ^1.0.6 flutter_rating_bar: ^4.0.1 - protobuf: ^3.1.0 + protobuf: ^6.0.0 firebase_app_check: ^0.4.5 dev_dependencies: diff --git a/packages/firebase_data_connect/firebase_data_connect/generate_proto.sh b/packages/firebase_data_connect/firebase_data_connect/generate_proto.sh index 5b3fc45dcaed..45ed083aeb80 100755 --- a/packages/firebase_data_connect/firebase_data_connect/generate_proto.sh +++ b/packages/firebase_data_connect/firebase_data_connect/generate_proto.sh @@ -1,8 +1,8 @@ #!/bin/bash -# Uses dart protoc_plugin version 21.1.2. There are compilation issues with newer plugin versions. -# https://github.com/google/protobuf.dart/releases/tag/protoc_plugin-v21.1.2 -# Run `pub global activate protoc_plugin 21.1.2` +# Uses dart protoc_plugin version 25.0.0. There are compilation issues with newer plugin versions. +# https://github.com/google/protobuf.dart/releases/tag/protoc_plugin-v25.0.0 +# Run `dart pub global activate protoc_plugin 25.0.0` rm -rf lib/src/generated mkdir lib/src/generated diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pb.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pb.dart index 1f38718bd4c9..4d28580df84e 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pb.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pb.dart @@ -1,21 +1,24 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: connector_service.proto -// -// @dart = 2.12 +// Generated from connector_service.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +import 'package:protobuf/well_known_types/google/protobuf/struct.pb.dart' as $1; -import 'google/protobuf/struct.pb.dart' as $1; -import 'graphql_error.pb.dart' as $3; -import 'graphql_response_extensions.pb.dart' as $4; +import 'graphql_error.pb.dart' as $2; +import 'graphql_response_extensions.pb.dart' as $3; + +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; /// The ExecuteQuery request to Firebase Data Connect. class ExecuteQueryRequest extends $pb.GeneratedMessage { @@ -24,25 +27,21 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { $core.String? operationName, $1.Struct? variables, }) { - final $result = create(); - if (name != null) { - $result.name = name; - } - if (operationName != null) { - $result.operationName = operationName; - } - if (variables != null) { - $result.variables = variables; - } - return $result; + final result = create(); + if (name != null) result.name = name; + if (operationName != null) result.operationName = operationName; + if (variables != null) result.variables = variables; + return result; } - ExecuteQueryRequest._() : super(); - factory ExecuteQueryRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ExecuteQueryRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + ExecuteQueryRequest._(); + + factory ExecuteQueryRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExecuteQueryRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteQueryRequest', @@ -55,24 +54,20 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { subBuilder: $1.Struct.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ExecuteQueryRequest clone() => ExecuteQueryRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ExecuteQueryRequest clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExecuteQueryRequest copyWith(void Function(ExecuteQueryRequest) updates) => super.copyWith((message) => updates(message as ExecuteQueryRequest)) as ExecuteQueryRequest; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteQueryRequest create() => ExecuteQueryRequest._(); + @$core.override ExecuteQueryRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ExecuteQueryRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -86,14 +81,11 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); - } - + set name($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) - void clearName() => clearField(1); + void clearName() => $_clearField(1); /// The name of the GraphQL operation name. /// Required because all Connector operations must be named. @@ -103,27 +95,21 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get operationName => $_getSZ(1); @$pb.TagNumber(2) - set operationName($core.String v) { - $_setString(1, v); - } - + set operationName($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasOperationName() => $_has(1); @$pb.TagNumber(2) - void clearOperationName() => clearField(2); + void clearOperationName() => $_clearField(2); /// Values for GraphQL variables provided in this request. @$pb.TagNumber(3) $1.Struct get variables => $_getN(2); @$pb.TagNumber(3) - set variables($1.Struct v) { - setField(3, v); - } - + set variables($1.Struct value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasVariables() => $_has(2); @$pb.TagNumber(3) - void clearVariables() => clearField(3); + void clearVariables() => $_clearField(3); @$pb.TagNumber(3) $1.Struct ensureVariables() => $_ensure(2); } @@ -135,25 +121,21 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { $core.String? operationName, $1.Struct? variables, }) { - final $result = create(); - if (name != null) { - $result.name = name; - } - if (operationName != null) { - $result.operationName = operationName; - } - if (variables != null) { - $result.variables = variables; - } - return $result; + final result = create(); + if (name != null) result.name = name; + if (operationName != null) result.operationName = operationName; + if (variables != null) result.variables = variables; + return result; } - ExecuteMutationRequest._() : super(); - factory ExecuteMutationRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ExecuteMutationRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + ExecuteMutationRequest._(); + + factory ExecuteMutationRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExecuteMutationRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteMutationRequest', @@ -166,26 +148,21 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { subBuilder: $1.Struct.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ExecuteMutationRequest clone() => - ExecuteMutationRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ExecuteMutationRequest clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExecuteMutationRequest copyWith( void Function(ExecuteMutationRequest) updates) => super.copyWith((message) => updates(message as ExecuteMutationRequest)) as ExecuteMutationRequest; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteMutationRequest create() => ExecuteMutationRequest._(); + @$core.override ExecuteMutationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ExecuteMutationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -199,14 +176,11 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); - } - + set name($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) - void clearName() => clearField(1); + void clearName() => $_clearField(1); /// The name of the GraphQL operation name. /// Required because all Connector operations must be named. @@ -216,27 +190,21 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get operationName => $_getSZ(1); @$pb.TagNumber(2) - set operationName($core.String v) { - $_setString(1, v); - } - + set operationName($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasOperationName() => $_has(1); @$pb.TagNumber(2) - void clearOperationName() => clearField(2); + void clearOperationName() => $_clearField(2); /// Values for GraphQL variables provided in this request. @$pb.TagNumber(3) $1.Struct get variables => $_getN(2); @$pb.TagNumber(3) - set variables($1.Struct v) { - setField(3, v); - } - + set variables($1.Struct value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasVariables() => $_has(2); @$pb.TagNumber(3) - void clearVariables() => clearField(3); + void clearVariables() => $_clearField(3); @$pb.TagNumber(3) $1.Struct ensureVariables() => $_ensure(2); } @@ -245,28 +213,24 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { class ExecuteQueryResponse extends $pb.GeneratedMessage { factory ExecuteQueryResponse({ $1.Struct? data, - $core.Iterable<$3.GraphqlError>? errors, - $4.GraphqlResponseExtensions? extensions, + $core.Iterable<$2.GraphqlError>? errors, + $3.GraphqlResponseExtensions? extensions, }) { - final $result = create(); - if (data != null) { - $result.data = data; - } - if (errors != null) { - $result.errors.addAll(errors); - } - if (extensions != null) { - $result.extensions = extensions; - } - return $result; + final result = create(); + if (data != null) result.data = data; + if (errors != null) result.errors.addAll(errors); + if (extensions != null) result.extensions = extensions; + return result; } - ExecuteQueryResponse._() : super(); - factory ExecuteQueryResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ExecuteQueryResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + ExecuteQueryResponse._(); + + factory ExecuteQueryResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExecuteQueryResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteQueryResponse', @@ -275,32 +239,26 @@ class ExecuteQueryResponse extends $pb.GeneratedMessage { createEmptyInstance: create) ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) - ..pc<$3.GraphqlError>( - 2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, - subBuilder: $3.GraphqlError.create) - ..aOM<$4.GraphqlResponseExtensions>(3, _omitFieldNames ? '' : 'extensions', - subBuilder: $4.GraphqlResponseExtensions.create) + ..pPM<$2.GraphqlError>(2, _omitFieldNames ? '' : 'errors', + subBuilder: $2.GraphqlError.create) + ..aOM<$3.GraphqlResponseExtensions>(3, _omitFieldNames ? '' : 'extensions', + subBuilder: $3.GraphqlResponseExtensions.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ExecuteQueryResponse clone() => - ExecuteQueryResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ExecuteQueryResponse clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExecuteQueryResponse copyWith(void Function(ExecuteQueryResponse) updates) => super.copyWith((message) => updates(message as ExecuteQueryResponse)) as ExecuteQueryResponse; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteQueryResponse create() => ExecuteQueryResponse._(); + @$core.override ExecuteQueryResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ExecuteQueryResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -310,63 +268,53 @@ class ExecuteQueryResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) $1.Struct get data => $_getN(0); @$pb.TagNumber(1) - set data($1.Struct v) { - setField(1, v); - } - + set data($1.Struct value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) - void clearData() => clearField(1); + void clearData() => $_clearField(1); @$pb.TagNumber(1) $1.Struct ensureData() => $_ensure(0); /// Errors of this response. @$pb.TagNumber(2) - $core.List<$3.GraphqlError> get errors => $_getList(1); + $pb.PbList<$2.GraphqlError> get errors => $_getList(1); /// Additional response information. @$pb.TagNumber(3) - $4.GraphqlResponseExtensions get extensions => $_getN(2); + $3.GraphqlResponseExtensions get extensions => $_getN(2); @$pb.TagNumber(3) - set extensions($4.GraphqlResponseExtensions v) { - setField(3, v); - } - + set extensions($3.GraphqlResponseExtensions value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasExtensions() => $_has(2); @$pb.TagNumber(3) - void clearExtensions() => clearField(3); + void clearExtensions() => $_clearField(3); @$pb.TagNumber(3) - $4.GraphqlResponseExtensions ensureExtensions() => $_ensure(2); + $3.GraphqlResponseExtensions ensureExtensions() => $_ensure(2); } /// The ExecuteMutation response from Firebase Data Connect. class ExecuteMutationResponse extends $pb.GeneratedMessage { factory ExecuteMutationResponse({ $1.Struct? data, - $core.Iterable<$3.GraphqlError>? errors, - $4.GraphqlResponseExtensions? extensions, + $core.Iterable<$2.GraphqlError>? errors, + $3.GraphqlResponseExtensions? extensions, }) { - final $result = create(); - if (data != null) { - $result.data = data; - } - if (errors != null) { - $result.errors.addAll(errors); - } - if (extensions != null) { - $result.extensions = extensions; - } - return $result; + final result = create(); + if (data != null) result.data = data; + if (errors != null) result.errors.addAll(errors); + if (extensions != null) result.extensions = extensions; + return result; } - ExecuteMutationResponse._() : super(); - factory ExecuteMutationResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ExecuteMutationResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + ExecuteMutationResponse._(); + + factory ExecuteMutationResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ExecuteMutationResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteMutationResponse', @@ -375,33 +323,27 @@ class ExecuteMutationResponse extends $pb.GeneratedMessage { createEmptyInstance: create) ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) - ..pc<$3.GraphqlError>( - 2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, - subBuilder: $3.GraphqlError.create) - ..aOM<$4.GraphqlResponseExtensions>(3, _omitFieldNames ? '' : 'extensions', - subBuilder: $4.GraphqlResponseExtensions.create) + ..pPM<$2.GraphqlError>(2, _omitFieldNames ? '' : 'errors', + subBuilder: $2.GraphqlError.create) + ..aOM<$3.GraphqlResponseExtensions>(3, _omitFieldNames ? '' : 'extensions', + subBuilder: $3.GraphqlResponseExtensions.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ExecuteMutationResponse clone() => - ExecuteMutationResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ExecuteMutationResponse clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ExecuteMutationResponse copyWith( void Function(ExecuteMutationResponse) updates) => super.copyWith((message) => updates(message as ExecuteMutationResponse)) as ExecuteMutationResponse; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteMutationResponse create() => ExecuteMutationResponse._(); + @$core.override ExecuteMutationResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ExecuteMutationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -411,37 +353,32 @@ class ExecuteMutationResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) $1.Struct get data => $_getN(0); @$pb.TagNumber(1) - set data($1.Struct v) { - setField(1, v); - } - + set data($1.Struct value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) - void clearData() => clearField(1); + void clearData() => $_clearField(1); @$pb.TagNumber(1) $1.Struct ensureData() => $_ensure(0); /// Errors of this response. @$pb.TagNumber(2) - $core.List<$3.GraphqlError> get errors => $_getList(1); + $pb.PbList<$2.GraphqlError> get errors => $_getList(1); /// Additional response information. @$pb.TagNumber(3) - $4.GraphqlResponseExtensions get extensions => $_getN(2); + $3.GraphqlResponseExtensions get extensions => $_getN(2); @$pb.TagNumber(3) - set extensions($4.GraphqlResponseExtensions v) { - setField(3, v); - } - + set extensions($3.GraphqlResponseExtensions value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasExtensions() => $_has(2); @$pb.TagNumber(3) - void clearExtensions() => clearField(3); + void clearExtensions() => $_clearField(3); @$pb.TagNumber(3) - $4.GraphqlResponseExtensions ensureExtensions() => $_ensure(2); + $3.GraphqlResponseExtensions ensureExtensions() => $_ensure(2); } -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = +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/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbenum.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbenum.dart index aabd1a01d514..ba0b4a0552aa 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbenum.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbenum.dart @@ -1,10 +1,11 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: connector_service.proto -// -// @dart = 2.12 +// Generated from connector_service.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbgrpc.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbgrpc.dart index 8b1732a117ae..1cdb7b81c448 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbgrpc.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbgrpc.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: connector_service.proto -// -// @dart = 2.12 +// Generated from connector_service.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports import 'dart:async' as $async; import 'dart:core' as $core; @@ -19,37 +20,57 @@ import 'connector_service.pb.dart' as $0; export 'connector_service.pb.dart'; +/// Firebase Data Connect provides means to deploy a set of predefined GraphQL +/// operations (queries and mutations) as a Connector. +/// +/// Firebase developers can build mobile and web apps that uses Connectors +/// to access Data Sources directly. Connectors allow operations without +/// admin credentials and help Firebase customers control the API exposure. +/// +/// Note: `ConnectorService` doesn't check IAM permissions and instead developers +/// must define auth policies on each pre-defined operation to secure this +/// connector. The auth policies typically define rules on the Firebase Auth +/// token. @$pb.GrpcServiceName('google.firebase.dataconnect.v1.ConnectorService') class ConnectorServiceClient extends $grpc.Client { - static final _$executeQuery = - $grpc.ClientMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( - '/google.firebase.dataconnect.v1.ConnectorService/ExecuteQuery', - ($0.ExecuteQueryRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.ExecuteQueryResponse.fromBuffer(value)); - static final _$executeMutation = - $grpc.ClientMethod<$0.ExecuteMutationRequest, $0.ExecuteMutationResponse>( - '/google.firebase.dataconnect.v1.ConnectorService/ExecuteMutation', - ($0.ExecuteMutationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.ExecuteMutationResponse.fromBuffer(value)); + /// The hostname for this service. + static const $core.String defaultHost = ''; - ConnectorServiceClient($grpc.ClientChannel channel, - {$grpc.CallOptions? options, - $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, interceptors: interceptors); + /// OAuth scopes needed for the client. + static const $core.List<$core.String> oauthScopes = [ + '', + ]; + ConnectorServiceClient(super.channel, {super.options, super.interceptors}); + + /// Execute a predefined query in a Connector. $grpc.ResponseFuture<$0.ExecuteQueryResponse> executeQuery( - $0.ExecuteQueryRequest request, - {$grpc.CallOptions? options}) { + $0.ExecuteQueryRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$executeQuery, request, options: options); } + /// Execute a predefined mutation in a Connector. $grpc.ResponseFuture<$0.ExecuteMutationResponse> executeMutation( - $0.ExecuteMutationRequest request, - {$grpc.CallOptions? options}) { + $0.ExecuteMutationRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$executeMutation, request, options: options); } + + // method descriptors + + static final _$executeQuery = + $grpc.ClientMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( + '/google.firebase.dataconnect.v1.ConnectorService/ExecuteQuery', + ($0.ExecuteQueryRequest value) => value.writeToBuffer(), + $0.ExecuteQueryResponse.fromBuffer); + static final _$executeMutation = + $grpc.ClientMethod<$0.ExecuteMutationRequest, $0.ExecuteMutationResponse>( + '/google.firebase.dataconnect.v1.ConnectorService/ExecuteMutation', + ($0.ExecuteMutationRequest value) => value.writeToBuffer(), + $0.ExecuteMutationResponse.fromBuffer); } @$pb.GrpcServiceName('google.firebase.dataconnect.v1.ConnectorService') @@ -78,19 +99,20 @@ abstract class ConnectorServiceBase extends $grpc.Service { } $async.Future<$0.ExecuteQueryResponse> executeQuery_Pre( - $grpc.ServiceCall call, - $async.Future<$0.ExecuteQueryRequest> request) async { - return executeQuery(call, await request); + $grpc.ServiceCall $call, + $async.Future<$0.ExecuteQueryRequest> $request) async { + return executeQuery($call, await $request); } + $async.Future<$0.ExecuteQueryResponse> executeQuery( + $grpc.ServiceCall call, $0.ExecuteQueryRequest request); + $async.Future<$0.ExecuteMutationResponse> executeMutation_Pre( - $grpc.ServiceCall call, - $async.Future<$0.ExecuteMutationRequest> request) async { - return executeMutation(call, await request); + $grpc.ServiceCall $call, + $async.Future<$0.ExecuteMutationRequest> $request) async { + return executeMutation($call, await $request); } - $async.Future<$0.ExecuteQueryResponse> executeQuery( - $grpc.ServiceCall call, $0.ExecuteQueryRequest request); $async.Future<$0.ExecuteMutationResponse> executeMutation( $grpc.ServiceCall call, $0.ExecuteMutationRequest request); } diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbjson.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbjson.dart index 03a497345922..7a5831a8c296 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbjson.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbjson.dart @@ -1,13 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: connector_service.proto -// -// @dart = 2.12 +// Generated from connector_service.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pb.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pb.dart index 6c32fb50221c..1d2be314c558 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pb.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pb.dart @@ -1,14 +1,15 @@ -// ignore_for_file: implementation_imports +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: google/protobuf/duration.proto -// -// @dart = 2.12 +// Generated from google/protobuf/duration.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; @@ -16,113 +17,109 @@ import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; -/// A Duration represents a signed, fixed-length span of time represented -/// as a count of seconds and fractions of seconds at nanosecond -/// resolution. It is independent of any calendar and concepts like "day" -/// or "month". It is related to Timestamp in that the difference between -/// two Timestamp values is a Duration and it can be added or subtracted -/// from a Timestamp. Range is approximately +-10,000 years. +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + +/// A Duration represents a signed, fixed-length span of time represented +/// as a count of seconds and fractions of seconds at nanosecond +/// resolution. It is independent of any calendar and concepts like "day" +/// or "month". It is related to Timestamp in that the difference between +/// two Timestamp values is a Duration and it can be added or subtracted +/// from a Timestamp. Range is approximately +-10,000 years. /// -/// # Examples +/// # Examples /// -/// Example 1: Compute Duration from two Timestamps in pseudo code. +/// Example 1: Compute Duration from two Timestamps in pseudo code. /// -/// Timestamp start = ...; -/// Timestamp end = ...; -/// Duration duration = ...; +/// Timestamp start = ...; +/// Timestamp end = ...; +/// Duration duration = ...; /// -/// duration.seconds = end.seconds - start.seconds; -/// duration.nanos = end.nanos - start.nanos; +/// duration.seconds = end.seconds - start.seconds; +/// duration.nanos = end.nanos - start.nanos; /// -/// if (duration.seconds < 0 && duration.nanos > 0) { -/// duration.seconds += 1; -/// duration.nanos -= 1000000000; -/// } else if (duration.seconds > 0 && duration.nanos < 0) { -/// duration.seconds -= 1; -/// duration.nanos += 1000000000; -/// } +/// if (duration.seconds < 0 && duration.nanos > 0) { +/// duration.seconds += 1; +/// duration.nanos -= 1000000000; +/// } else if (duration.seconds > 0 && duration.nanos < 0) { +/// duration.seconds -= 1; +/// duration.nanos += 1000000000; +/// } /// -/// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +/// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. /// -/// Timestamp start = ...; -/// Duration duration = ...; -/// Timestamp end = ...; +/// Timestamp start = ...; +/// Duration duration = ...; +/// Timestamp end = ...; /// -/// end.seconds = start.seconds + duration.seconds; -/// end.nanos = start.nanos + duration.nanos; +/// end.seconds = start.seconds + duration.seconds; +/// end.nanos = start.nanos + duration.nanos; /// -/// if (end.nanos < 0) { -/// end.seconds -= 1; -/// end.nanos += 1000000000; -/// } else if (end.nanos >= 1000000000) { -/// end.seconds += 1; -/// end.nanos -= 1000000000; -/// } +/// if (end.nanos < 0) { +/// end.seconds -= 1; +/// end.nanos += 1000000000; +/// } else if (end.nanos >= 1000000000) { +/// end.seconds += 1; +/// end.nanos -= 1000000000; +/// } /// -/// Example 3: Compute Duration from datetime.timedelta in Python. +/// Example 3: Compute Duration from datetime.timedelta in Python. /// -/// td = datetime.timedelta(days=3, minutes=10) -/// duration = Duration() -/// duration.FromTimedelta(td) +/// td = datetime.timedelta(days=3, minutes=10) +/// duration = Duration() +/// duration.FromTimedelta(td) /// -/// # JSON Mapping +/// # JSON Mapping /// -/// In JSON format, the Duration type is encoded as a string rather than an -/// object, where the string ends in the suffix "s" (indicating seconds) and -/// is preceded by the number of seconds, with nanoseconds expressed as -/// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -/// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -/// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -/// microsecond should be expressed in JSON format as "3.000001s". +/// In JSON format, the Duration type is encoded as a string rather than an +/// object, where the string ends in the suffix "s" (indicating seconds) and +/// is preceded by the number of seconds, with nanoseconds expressed as +/// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +/// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +/// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +/// microsecond should be expressed in JSON format as "3.000001s". class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { factory Duration({ $fixnum.Int64? seconds, $core.int? nanos, }) { - final $result = create(); - if (seconds != null) { - $result.seconds = seconds; - } - if (nanos != null) { - $result.nanos = nanos; - } - return $result; + final result = create(); + if (seconds != null) result.seconds = seconds; + if (nanos != null) result.nanos = nanos; + return result; } - Duration._() : super(); - factory Duration.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Duration.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + 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) + wellKnownType: $mixin.WellKnownType.duration) ..aInt64(1, _omitFieldNames ? '' : 'seconds') - ..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3) + ..aI(2, _omitFieldNames ? '' : 'nanos') ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Duration clone() => Duration()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Duration clone() => deepCopy(); + @$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; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Duration create() => Duration._(); + @$core.override Duration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Duration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -134,14 +131,11 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { @$pb.TagNumber(1) $fixnum.Int64 get seconds => $_getI64(0); @$pb.TagNumber(1) - set seconds($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set seconds($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasSeconds() => $_has(0); @$pb.TagNumber(1) - void clearSeconds() => clearField(1); + void clearSeconds() => $_clearField(1); /// Signed fractions of a second at nanosecond resolution of the span /// of time. Durations less than one second are represented with a 0 @@ -152,16 +146,29 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { @$pb.TagNumber(2) $core.int get nanos => $_getIZ(1); @$pb.TagNumber(2) - set nanos($core.int v) { - $_setSignedInt32(1, v); - } - + set nanos($core.int value) => $_setSignedInt32(1, value); @$pb.TagNumber(2) $core.bool hasNanos() => $_has(1); @$pb.TagNumber(2) - void clearNanos() => clearField(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, + ); + + /// 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; } -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = +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/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbenum.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbenum.dart index 1a2c58d81056..6d88d372152e 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbenum.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbenum.dart @@ -1,10 +1,11 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: google/protobuf/duration.proto -// -// @dart = 2.12 +// Generated from google/protobuf/duration.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbjson.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbjson.dart index 5847acb2d458..8a9047b960dc 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbjson.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/duration.pbjson.dart @@ -1,13 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: google/protobuf/duration.proto -// -// @dart = 2.12 +// Generated from google/protobuf/duration.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pb.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pb.dart index 42164fbc928f..df9ca0ac936d 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pb.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pb.dart @@ -1,57 +1,62 @@ -// ignore_for_file: implementation_imports +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: google/protobuf/struct.proto -// -// @dart = 2.12 +// Generated from google/protobuf/struct.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; +import 'package:protobuf/well_known_types/google/protobuf/struct.pbenum.dart'; -import 'struct.pbenum.dart'; - -export 'struct.pbenum.dart'; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; +export 'package:protobuf/well_known_types/google/protobuf/struct.pbenum.dart'; -/// `Struct` represents a structured data value, consisting of fields -/// which map to dynamically typed values. In some languages, `Struct` -/// might be supported by a native representation. For example, in -/// scripting languages like JS a struct is represented as an -/// object. The details of that representation are described together -/// with the proto support for the language. +/// Represents a JSON object. +/// +/// An unordered key-value map, intending to perfectly capture the semantics of a +/// JSON object. This enables parsing any arbitrary JSON payload as a message +/// field in ProtoJSON format. +/// +/// This follows RFC 8259 guidelines for interoperable JSON: notably this type +/// cannot represent large Int64 values or `NaN`/`Infinity` numbers, +/// since the JSON format generally does not support those values in its number +/// type. /// -/// The JSON representation for `Struct` is JSON object. +/// If you do not intend to parse arbitrary JSON into your message, a custom +/// typed message should be preferred instead of using this type. class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { factory Struct({ - $core.Map<$core.String, Value>? fields, + $core.Iterable<$core.MapEntry<$core.String, Value>>? fields, }) { - final $result = create(); - if (fields != null) { - $result.fields.addAll(fields); - } - return $result; + final result = create(); + if (fields != null) result.fields.addEntries(fields); + return result; } - Struct._() : super(); - factory Struct.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Struct.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + 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) + wellKnownType: $mixin.WellKnownType.struct) ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', entryClassName: 'Struct.FieldsEntry', keyFieldType: $pb.PbFieldType.OS, @@ -61,22 +66,19 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { packageName: const $pb.PackageName('google.protobuf')) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Struct clone() => Struct()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Struct clone() => deepCopy(); + @$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; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Struct create() => Struct._(); + @$core.override Struct createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Struct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -84,7 +86,7 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { /// Unordered map of dynamically typed values. @$pb.TagNumber(1) - $core.Map<$core.String, Value> get fields => $_getMap(0); + $pb.PbMap<$core.String, Value> get fields => $_getMap(0); } enum Value_Kind { @@ -97,12 +99,12 @@ enum Value_Kind { notSet } -/// `Value` represents a dynamically typed value which can be either -/// null, a number, a string, a boolean, a recursive struct value, or a -/// list of values. A producer of value is expected to set one of these -/// variants. Absence of any variant indicates an error. +/// Represents a JSON value. /// -/// The JSON representation for `Value` is JSON value. +/// `Value` represents a dynamically typed value which can be either +/// null, a number, a string, a boolean, a recursive struct value, or a +/// list of values. A producer of value is expected to set one of these +/// variants. Absence of any variant is an invalid state. class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { factory Value({ NullValue? nullValue, @@ -112,34 +114,24 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { Struct? structValue, ListValue? listValue, }) { - final $result = create(); - if (nullValue != null) { - $result.nullValue = nullValue; - } - if (numberValue != null) { - $result.numberValue = numberValue; - } - if (stringValue != null) { - $result.stringValue = stringValue; - } - if (boolValue != null) { - $result.boolValue = boolValue; - } - if (structValue != null) { - $result.structValue = structValue; - } - if (listValue != null) { - $result.listValue = listValue; - } - return $result; + final result = create(); + if (nullValue != null) result.nullValue = nullValue; + if (numberValue != null) result.numberValue = numberValue; + if (stringValue != null) result.stringValue = stringValue; + if (boolValue != null) result.boolValue = boolValue; + if (structValue != null) result.structValue = structValue; + if (listValue != null) result.listValue = listValue; + return result; } - Value._() : super(); - factory Value.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Value.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + 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); static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { 1: Value_Kind.nullValue, @@ -155,15 +147,11 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, - toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, - fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) + wellKnownType: $mixin.WellKnownType.value) ..oo(0, [1, 2, 3, 4, 5, 6]) - ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, - defaultOrMaker: NullValue.NULL_VALUE, - valueOf: NullValue.valueOf, + ..aE(1, _omitFieldNames ? '' : 'nullValue', enumValues: NullValue.values) - ..a<$core.double>( - 2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) + ..aD(2, _omitFieldNames ? '' : 'numberValue') ..aOS(3, _omitFieldNames ? '' : 'stringValue') ..aOB(4, _omitFieldNames ? '' : 'boolValue') ..aOM(5, _omitFieldNames ? '' : 'structValue', @@ -172,161 +160,148 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { subBuilder: ListValue.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Value clone() => Value()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Value clone() => deepCopy(); + @$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; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Value create() => Value._(); + @$core.override Value createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Value? _defaultInstance; + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; - void clearKind() => clearField($_whichOneof(0)); + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + void clearKind() => $_clearField($_whichOneof(0)); - /// Represents a null value. + /// Represents a JSON `null`. @$pb.TagNumber(1) NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) - set nullValue(NullValue v) { - setField(1, v); - } - + set nullValue(NullValue value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasNullValue() => $_has(0); @$pb.TagNumber(1) - void clearNullValue() => clearField(1); + void clearNullValue() => $_clearField(1); - /// Represents a double value. + /// Represents a JSON number. Must not be `NaN`, `Infinity` or + /// `-Infinity`, since those are not supported in JSON. This also cannot + /// represent large Int64 values, since JSON format generally does not + /// support them in its number type. @$pb.TagNumber(2) $core.double get numberValue => $_getN(1); @$pb.TagNumber(2) - set numberValue($core.double v) { - $_setDouble(1, v); - } - + set numberValue($core.double value) => $_setDouble(1, value); @$pb.TagNumber(2) $core.bool hasNumberValue() => $_has(1); @$pb.TagNumber(2) - void clearNumberValue() => clearField(2); + void clearNumberValue() => $_clearField(2); - /// Represents a string value. + /// Represents a JSON string. @$pb.TagNumber(3) $core.String get stringValue => $_getSZ(2); @$pb.TagNumber(3) - set stringValue($core.String v) { - $_setString(2, v); - } - + set stringValue($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasStringValue() => $_has(2); @$pb.TagNumber(3) - void clearStringValue() => clearField(3); + void clearStringValue() => $_clearField(3); - /// Represents a boolean value. + /// Represents a JSON boolean (`true` or `false` literal in JSON). @$pb.TagNumber(4) $core.bool get boolValue => $_getBF(3); @$pb.TagNumber(4) - set boolValue($core.bool v) { - $_setBool(3, v); - } - + set boolValue($core.bool value) => $_setBool(3, value); @$pb.TagNumber(4) $core.bool hasBoolValue() => $_has(3); @$pb.TagNumber(4) - void clearBoolValue() => clearField(4); + void clearBoolValue() => $_clearField(4); - /// Represents a structured value. + /// Represents a JSON object. @$pb.TagNumber(5) Struct get structValue => $_getN(4); @$pb.TagNumber(5) - set structValue(Struct v) { - setField(5, v); - } - + set structValue(Struct value) => $_setField(5, value); @$pb.TagNumber(5) $core.bool hasStructValue() => $_has(4); @$pb.TagNumber(5) - void clearStructValue() => clearField(5); + void clearStructValue() => $_clearField(5); @$pb.TagNumber(5) Struct ensureStructValue() => $_ensure(4); - /// Represents a repeated `Value`. + /// Represents a JSON array. @$pb.TagNumber(6) ListValue get listValue => $_getN(5); @$pb.TagNumber(6) - set listValue(ListValue v) { - setField(6, v); - } - + set listValue(ListValue value) => $_setField(6, value); @$pb.TagNumber(6) $core.bool hasListValue() => $_has(5); @$pb.TagNumber(6) - void clearListValue() => clearField(6); + void clearListValue() => $_clearField(6); @$pb.TagNumber(6) ListValue ensureListValue() => $_ensure(5); } -/// `ListValue` is a wrapper around a repeated field of values. -/// -/// The JSON representation for `ListValue` is JSON array. +/// Represents a JSON array. class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { factory ListValue({ $core.Iterable? values, }) { - final $result = create(); - if (values != null) { - $result.values.addAll(values); - } - return $result; + final result = create(); + if (values != null) result.values.addAll(values); + return result; } - ListValue._() : super(); - factory ListValue.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ListValue.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + 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) + wellKnownType: $mixin.WellKnownType.listValue) + ..pPM(1, _omitFieldNames ? '' : 'values', subBuilder: Value.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ListValue clone() => ListValue()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ListValue clone() => deepCopy(); + @$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; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListValue create() => ListValue._(); + @$core.override ListValue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -334,9 +309,10 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { /// Repeated field of dynamically typed values. @$pb.TagNumber(1) - $core.List get values => $_getList(0); + $pb.PbList get values => $_getList(0); } -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = +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/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbenum.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbenum.dart index 7f9bf0cbf322..c891bbec734f 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbenum.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbenum.dart @@ -1,23 +1,30 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: google/protobuf/struct.proto -// -// @dart = 2.12 +// Generated from google/protobuf/struct.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -/// `NullValue` is a singleton enumeration to represent the null value for the -/// `Value` type union. +/// Represents a JSON `null`. +/// +/// `NullValue` is a sentinel, using an enum with only one value to represent +/// the null value for the `Value` type union. /// -/// The JSON representation for `NullValue` is JSON `null`. +/// A field of type `NullValue` with any value other than `0` is considered +/// invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set +/// as a JSON `null` regardless of the integer value, and so will round trip to +/// a `0` value. class NullValue extends $pb.ProtobufEnum { + /// Null value. static const NullValue NULL_VALUE = NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); @@ -25,11 +32,13 @@ class NullValue extends $pb.ProtobufEnum { NULL_VALUE, ]; - static final $core.Map<$core.int, NullValue> _byValue = - $pb.ProtobufEnum.initByValue(values); - static NullValue? valueOf($core.int value) => _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._($core.int v, $core.String n) : super(v, n); + const NullValue._(super.value, super.name); } -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbjson.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbjson.dart index c0693f570058..a8d906a5dfb7 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbjson.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbjson.dart @@ -1,13 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: google/protobuf/struct.proto -// -// @dart = 2.12 +// Generated from google/protobuf/struct.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pb.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pb.dart index 2def4cc62994..dde3df1d7472 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pb.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pb.dart @@ -1,60 +1,56 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: graphql_error.proto -// -// @dart = 2.12 +// Generated from graphql_error.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +import 'package:protobuf/well_known_types/google/protobuf/struct.pb.dart' as $0; -import 'google/protobuf/struct.pb.dart' as $1; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; -/// GraphqlError conforms to the GraphQL error spec. -/// https://spec.graphql.org/draft/#sec-Errors +/// GraphqlError conforms to the GraphQL error spec. +/// https://spec.graphql.org/draft/#sec-Errors /// -/// Firebase Data Connect API surfaces `GraphqlError` in various APIs: -/// - Upon compile error, `UpdateSchema` and `UpdateConnector` return -/// Code.Invalid_Argument with a list of `GraphqlError` in error details. -/// - Upon query compile error, `ExecuteGraphql` and `ExecuteGraphqlRead` return -/// Code.OK with a list of `GraphqlError` in response body. -/// - Upon query execution error, `ExecuteGraphql`, `ExecuteGraphqlRead`, -/// `ExecuteMutation` and `ExecuteQuery` all return Code.OK with a list of -/// `GraphqlError` in response body. +/// Firebase Data Connect API surfaces `GraphqlError` in various APIs: +/// - Upon compile error, `UpdateSchema` and `UpdateConnector` return +/// Code.Invalid_Argument with a list of `GraphqlError` in error details. +/// - Upon query compile error, `ExecuteGraphql` and `ExecuteGraphqlRead` return +/// Code.OK with a list of `GraphqlError` in response body. +/// - Upon query execution error, `ExecuteGraphql`, `ExecuteGraphqlRead`, +/// `ExecuteMutation` and `ExecuteQuery` all return Code.OK with a list of +/// `GraphqlError` in response body. class GraphqlError extends $pb.GeneratedMessage { factory GraphqlError({ $core.String? message, $core.Iterable? locations, - $1.ListValue? path, + $0.ListValue? path, GraphqlErrorExtensions? extensions, }) { - final $result = create(); - if (message != null) { - $result.message = message; - } - if (locations != null) { - $result.locations.addAll(locations); - } - if (path != null) { - $result.path = path; - } - if (extensions != null) { - $result.extensions = extensions; - } - return $result; + final result = create(); + if (message != null) result.message = message; + if (locations != null) result.locations.addAll(locations); + if (path != null) result.path = path; + if (extensions != null) result.extensions = extensions; + return result; } - GraphqlError._() : super(); - factory GraphqlError.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory GraphqlError.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + GraphqlError._(); + + factory GraphqlError.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory GraphqlError.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GraphqlError', @@ -62,33 +58,28 @@ class GraphqlError extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'google.firebase.dataconnect.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') - ..pc( - 2, _omitFieldNames ? '' : 'locations', $pb.PbFieldType.PM, + ..pPM(2, _omitFieldNames ? '' : 'locations', subBuilder: SourceLocation.create) - ..aOM<$1.ListValue>(3, _omitFieldNames ? '' : 'path', - subBuilder: $1.ListValue.create) + ..aOM<$0.ListValue>(3, _omitFieldNames ? '' : 'path', + subBuilder: $0.ListValue.create) ..aOM(4, _omitFieldNames ? '' : 'extensions', subBuilder: GraphqlErrorExtensions.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GraphqlError clone() => GraphqlError()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + GraphqlError clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GraphqlError copyWith(void Function(GraphqlError) updates) => super.copyWith((message) => updates(message as GraphqlError)) as GraphqlError; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlError create() => GraphqlError._(); + @$core.override GraphqlError createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static GraphqlError getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -100,60 +91,51 @@ class GraphqlError extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.String get message => $_getSZ(0); @$pb.TagNumber(1) - set message($core.String v) { - $_setString(0, v); - } - + set message($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) - void clearMessage() => clearField(1); + void clearMessage() => $_clearField(1); - /// The source locations where the error occurred. - /// Locations should help developers and toolings identify the source of error - /// quickly. + /// The source locations where the error occurred. + /// Locations should help developers and toolings identify the source of error + /// quickly. /// - /// Included in admin endpoints (`ExecuteGraphql`, `ExecuteGraphqlRead`, - /// `UpdateSchema` and `UpdateConnector`) to reference the provided GraphQL - /// GQL document. + /// Included in admin endpoints (`ExecuteGraphql`, `ExecuteGraphqlRead`, + /// `UpdateSchema` and `UpdateConnector`) to reference the provided GraphQL + /// GQL document. /// - /// Omitted in `ExecuteMutation` and `ExecuteQuery` since the caller shouldn't - /// have access access the underlying GQL source. + /// Omitted in `ExecuteMutation` and `ExecuteQuery` since the caller shouldn't + /// have access access the underlying GQL source. @$pb.TagNumber(2) - $core.List get locations => $_getList(1); + $pb.PbList get locations => $_getList(1); - /// The result field which could not be populated due to error. + /// The result field which could not be populated due to error. /// - /// Clients can use path to identify whether a null result is intentional or - /// caused by a runtime error. - /// It should be a list of string or index from the root of GraphQL query - /// document. + /// Clients can use path to identify whether a null result is intentional or + /// caused by a runtime error. + /// It should be a list of string or index from the root of GraphQL query + /// document. @$pb.TagNumber(3) - $1.ListValue get path => $_getN(2); + $0.ListValue get path => $_getN(2); @$pb.TagNumber(3) - set path($1.ListValue v) { - setField(3, v); - } - + set path($0.ListValue value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasPath() => $_has(2); @$pb.TagNumber(3) - void clearPath() => clearField(3); + void clearPath() => $_clearField(3); @$pb.TagNumber(3) - $1.ListValue ensurePath() => $_ensure(2); + $0.ListValue ensurePath() => $_ensure(2); /// Additional error information. @$pb.TagNumber(4) GraphqlErrorExtensions get extensions => $_getN(3); @$pb.TagNumber(4) - set extensions(GraphqlErrorExtensions v) { - setField(4, v); - } - + set extensions(GraphqlErrorExtensions value) => $_setField(4, value); @$pb.TagNumber(4) $core.bool hasExtensions() => $_has(3); @$pb.TagNumber(4) - void clearExtensions() => clearField(4); + void clearExtensions() => $_clearField(4); @$pb.TagNumber(4) GraphqlErrorExtensions ensureExtensions() => $_ensure(3); } @@ -164,50 +146,44 @@ class SourceLocation extends $pb.GeneratedMessage { $core.int? line, $core.int? column, }) { - final $result = create(); - if (line != null) { - $result.line = line; - } - if (column != null) { - $result.column = column; - } - return $result; + final result = create(); + if (line != null) result.line = line; + if (column != null) result.column = column; + return result; } - SourceLocation._() : super(); - factory SourceLocation.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SourceLocation.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + SourceLocation._(); + + factory SourceLocation.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory SourceLocation.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'SourceLocation', package: const $pb.PackageName( _omitMessageNames ? '' : 'google.firebase.dataconnect.v1'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'column', $pb.PbFieldType.O3) + ..aI(1, _omitFieldNames ? '' : 'line') + ..aI(2, _omitFieldNames ? '' : 'column') ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SourceLocation clone() => SourceLocation()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + SourceLocation clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SourceLocation copyWith(void Function(SourceLocation) updates) => super.copyWith((message) => updates(message as SourceLocation)) as SourceLocation; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SourceLocation create() => SourceLocation._(); + @$core.override SourceLocation createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SourceLocation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -217,27 +193,21 @@ class SourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get line => $_getIZ(0); @$pb.TagNumber(1) - set line($core.int v) { - $_setSignedInt32(0, v); - } - + set line($core.int value) => $_setSignedInt32(0, value); @$pb.TagNumber(1) $core.bool hasLine() => $_has(0); @$pb.TagNumber(1) - void clearLine() => clearField(1); + void clearLine() => $_clearField(1); /// Column number starting at 1. @$pb.TagNumber(2) $core.int get column => $_getIZ(1); @$pb.TagNumber(2) - set column($core.int v) { - $_setSignedInt32(1, v); - } - + set column($core.int value) => $_setSignedInt32(1, value); @$pb.TagNumber(2) $core.bool hasColumn() => $_has(1); @$pb.TagNumber(2) - void clearColumn() => clearField(2); + void clearColumn() => $_clearField(2); } /// GraphqlErrorExtensions contains additional information of `GraphqlError`. @@ -247,19 +217,19 @@ class GraphqlErrorExtensions extends $pb.GeneratedMessage { factory GraphqlErrorExtensions({ $core.String? file, }) { - final $result = create(); - if (file != null) { - $result.file = file; - } - return $result; + final result = create(); + if (file != null) result.file = file; + return result; } - GraphqlErrorExtensions._() : super(); - factory GraphqlErrorExtensions.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory GraphqlErrorExtensions.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + GraphqlErrorExtensions._(); + + factory GraphqlErrorExtensions.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory GraphqlErrorExtensions.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GraphqlErrorExtensions', @@ -269,26 +239,21 @@ class GraphqlErrorExtensions extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'file') ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GraphqlErrorExtensions clone() => - GraphqlErrorExtensions()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + GraphqlErrorExtensions clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GraphqlErrorExtensions copyWith( void Function(GraphqlErrorExtensions) updates) => super.copyWith((message) => updates(message as GraphqlErrorExtensions)) as GraphqlErrorExtensions; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlErrorExtensions create() => GraphqlErrorExtensions._(); + @$core.override GraphqlErrorExtensions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static GraphqlErrorExtensions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -300,16 +265,14 @@ class GraphqlErrorExtensions extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.String get file => $_getSZ(0); @$pb.TagNumber(1) - set file($core.String v) { - $_setString(0, v); - } - + set file($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasFile() => $_has(0); @$pb.TagNumber(1) - void clearFile() => clearField(1); + void clearFile() => $_clearField(1); } -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = +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/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbenum.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbenum.dart index 53454c94a217..e1844d72101e 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbenum.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbenum.dart @@ -1,10 +1,11 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: graphql_error.proto -// -// @dart = 2.12 +// Generated from graphql_error.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbjson.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbjson.dart index 9a90ffc79685..17491fc74806 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbjson.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbjson.dart @@ -1,13 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: graphql_error.proto -// -// @dart = 2.12 +// Generated from graphql_error.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pb.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pb.dart index c86ba89dbd75..c88cc3328bf8 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pb.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pb.dart @@ -1,55 +1,52 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: graphql_response_extensions.proto -// -// @dart = 2.12 +// Generated from graphql_response_extensions.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +import 'package:protobuf/well_known_types/google/protobuf/duration.pb.dart' + as $1; +import 'package:protobuf/well_known_types/google/protobuf/struct.pb.dart' as $0; -import 'google/protobuf/duration.pb.dart' as $2; -import 'google/protobuf/struct.pb.dart' as $1; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; /// Data Connect specific properties for a path under response.data. /// (-- Design doc: http://go/fdc-caching-wire-protocol --) class GraphqlResponseExtensions_DataConnectProperties extends $pb.GeneratedMessage { factory GraphqlResponseExtensions_DataConnectProperties({ - $1.ListValue? path, + $0.ListValue? path, $core.String? entityId, $core.Iterable<$core.String>? entityIds, - $2.Duration? maxAge, + $1.Duration? maxAge, }) { - final $result = create(); - if (path != null) { - $result.path = path; - } - if (entityId != null) { - $result.entityId = entityId; - } - if (entityIds != null) { - $result.entityIds.addAll(entityIds); - } - if (maxAge != null) { - $result.maxAge = maxAge; - } - return $result; + final result = create(); + if (path != null) result.path = path; + if (entityId != null) result.entityId = entityId; + if (entityIds != null) result.entityIds.addAll(entityIds); + if (maxAge != null) result.maxAge = maxAge; + return result; } - GraphqlResponseExtensions_DataConnectProperties._() : super(); + + GraphqlResponseExtensions_DataConnectProperties._(); + factory GraphqlResponseExtensions_DataConnectProperties.fromBuffer( - $core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); factory GraphqlResponseExtensions_DataConnectProperties.fromJson( - $core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + $core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames @@ -58,22 +55,17 @@ class GraphqlResponseExtensions_DataConnectProperties package: const $pb.PackageName( _omitMessageNames ? '' : 'google.firebase.dataconnect.v1'), createEmptyInstance: create) - ..aOM<$1.ListValue>(1, _omitFieldNames ? '' : 'path', - subBuilder: $1.ListValue.create) + ..aOM<$0.ListValue>(1, _omitFieldNames ? '' : 'path', + subBuilder: $0.ListValue.create) ..aOS(2, _omitFieldNames ? '' : 'entityId') ..pPS(3, _omitFieldNames ? '' : 'entityIds') - ..aOM<$2.Duration>(4, _omitFieldNames ? '' : 'maxAge', - subBuilder: $2.Duration.create) + ..aOM<$1.Duration>(4, _omitFieldNames ? '' : 'maxAge', + subBuilder: $1.Duration.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GraphqlResponseExtensions_DataConnectProperties clone() => - GraphqlResponseExtensions_DataConnectProperties()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + GraphqlResponseExtensions_DataConnectProperties clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GraphqlResponseExtensions_DataConnectProperties copyWith( void Function(GraphqlResponseExtensions_DataConnectProperties) updates) => @@ -81,16 +73,15 @@ class GraphqlResponseExtensions_DataConnectProperties message as GraphqlResponseExtensions_DataConnectProperties)) as GraphqlResponseExtensions_DataConnectProperties; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlResponseExtensions_DataConnectProperties create() => GraphqlResponseExtensions_DataConnectProperties._(); + @$core.override GraphqlResponseExtensions_DataConnectProperties createEmptyInstance() => create(); - static $pb.PbList - createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static GraphqlResponseExtensions_DataConnectProperties getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< @@ -103,53 +94,44 @@ class GraphqlResponseExtensions_DataConnectProperties /// (-- To simplify client logic, the server should never set this to null. /// i.e. Use `[]` if the properties below apply to everything in data. --) @$pb.TagNumber(1) - $1.ListValue get path => $_getN(0); + $0.ListValue get path => $_getN(0); @$pb.TagNumber(1) - set path($1.ListValue v) { - setField(1, v); - } - + set path($0.ListValue value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasPath() => $_has(0); @$pb.TagNumber(1) - void clearPath() => clearField(1); + void clearPath() => $_clearField(1); @$pb.TagNumber(1) - $1.ListValue ensurePath() => $_ensure(0); + $0.ListValue ensurePath() => $_ensure(0); /// A single Entity ID. Set if the path points to a single entity. @$pb.TagNumber(2) $core.String get entityId => $_getSZ(1); @$pb.TagNumber(2) - set entityId($core.String v) { - $_setString(1, v); - } - + set entityId($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasEntityId() => $_has(1); @$pb.TagNumber(2) - void clearEntityId() => clearField(2); + void clearEntityId() => $_clearField(2); /// A list of Entity IDs. Set if the path points to an array of entities. An /// ID is present for each element of the array at the corresponding index. @$pb.TagNumber(3) - $core.List<$core.String> get entityIds => $_getList(2); + $pb.PbList<$core.String> get entityIds => $_getList(2); /// The server-suggested duration before data under path is considered stale. /// (-- Right now, this field is never set. For future plans, see /// http://go/fdc-sdk-caching-config#heading=h.rmvncy2rao3g --) @$pb.TagNumber(4) - $2.Duration get maxAge => $_getN(3); + $1.Duration get maxAge => $_getN(3); @$pb.TagNumber(4) - set maxAge($2.Duration v) { - setField(4, v); - } - + set maxAge($1.Duration value) => $_setField(4, value); @$pb.TagNumber(4) $core.bool hasMaxAge() => $_has(3); @$pb.TagNumber(4) - void clearMaxAge() => clearField(4); + void clearMaxAge() => $_clearField(4); @$pb.TagNumber(4) - $2.Duration ensureMaxAge() => $_ensure(3); + $1.Duration ensureMaxAge() => $_ensure(3); } /// GraphqlResponseExtensions contains additional information of @@ -159,50 +141,45 @@ class GraphqlResponseExtensions extends $pb.GeneratedMessage { $core.Iterable? dataConnect, }) { - final $result = create(); - if (dataConnect != null) { - $result.dataConnect.addAll(dataConnect); - } - return $result; + final result = create(); + if (dataConnect != null) result.dataConnect.addAll(dataConnect); + return result; } - GraphqlResponseExtensions._() : super(); - factory GraphqlResponseExtensions.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory GraphqlResponseExtensions.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); + + GraphqlResponseExtensions._(); + + factory GraphqlResponseExtensions.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory GraphqlResponseExtensions.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GraphqlResponseExtensions', package: const $pb.PackageName( _omitMessageNames ? '' : 'google.firebase.dataconnect.v1'), createEmptyInstance: create) - ..pc( - 1, _omitFieldNames ? '' : 'dataConnect', $pb.PbFieldType.PM, + ..pPM( + 1, _omitFieldNames ? '' : 'dataConnect', subBuilder: GraphqlResponseExtensions_DataConnectProperties.create) ..hasRequiredFields = false; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GraphqlResponseExtensions clone() => - GraphqlResponseExtensions()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + GraphqlResponseExtensions clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GraphqlResponseExtensions copyWith( void Function(GraphqlResponseExtensions) updates) => super.copyWith((message) => updates(message as GraphqlResponseExtensions)) as GraphqlResponseExtensions; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlResponseExtensions create() => GraphqlResponseExtensions._(); + @$core.override GraphqlResponseExtensions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static GraphqlResponseExtensions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -213,10 +190,11 @@ class GraphqlResponseExtensions extends $pb.GeneratedMessage { /// extensions in the wild unless we're implementing a common 3P pattern in /// extensions such as versioning and telemetry. --) @$pb.TagNumber(1) - $core.List get dataConnect => + $pb.PbList get dataConnect => $_getList(0); } -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = +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/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbenum.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbenum.dart index 924da2c849bb..bf48b00f8ce5 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbenum.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbenum.dart @@ -1,10 +1,11 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: graphql_response_extensions.proto -// -// @dart = 2.12 +// Generated from graphql_response_extensions.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbjson.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbjson.dart index a1022d1267e2..29d276f6acc3 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbjson.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_response_extensions.pbjson.dart @@ -1,13 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: graphql_response_extensions.proto -// -// @dart = 2.12 +// Generated from graphql_response_extensions.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// 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, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; diff --git a/packages/firebase_data_connect/firebase_data_connect/pubspec.yaml b/packages/firebase_data_connect/firebase_data_connect/pubspec.yaml index bdc841a51a73..113504314f2b 100644 --- a/packages/firebase_data_connect/firebase_data_connect/pubspec.yaml +++ b/packages/firebase_data_connect/firebase_data_connect/pubspec.yaml @@ -20,12 +20,12 @@ dependencies: fixnum: ^1.1.1 flutter: sdk: flutter - grpc: ^4.0.1 + grpc: ^5.1.0 http: ^1.2.1 intl: ^0.20.2 path: ^1.9.0 path_provider: ^2.0.0 - protobuf: ^3.1.0 + protobuf: ^6.0.0 sqlite3: ^3.1.0 web_socket_channel: ^3.0.1