From 66a49d337d940be471e41c261acec58bf7d9ff6d Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Fri, 20 Sep 2024 11:50:55 +0100 Subject: [PATCH 1/5] Updated to v1beta --- .../src/generated/connector_service.pb.dart | 259 ++++++------------ .../generated/connector_service.pbenum.dart | 5 +- .../generated/connector_service.pbgrpc.dart | 80 ++---- .../generated/connector_service.pbjson.dart | 87 +----- .../generated/google/protobuf/struct.pb.dart | 216 ++++++--------- .../google/protobuf/struct.pbenum.dart | 13 +- .../google/protobuf/struct.pbjson.dart | 66 +---- .../lib/src/generated/graphql_error.pb.dart | 179 +++++------- .../src/generated/graphql_error.pbenum.dart | 5 +- .../src/generated/graphql_error.pbjson.dart | 47 +--- .../protos/connector_service.proto | 2 +- .../protos/firebase/graphql_error.proto | 2 +- 12 files changed, 301 insertions(+), 660 deletions(-) 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 b062eb1bf50d..b1e782e10907 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: connector_service.proto @@ -40,45 +36,35 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ExecuteQueryRequest', - package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), - createEmptyInstance: create) + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteQueryRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..aOS(2, _omitFieldNames ? '' : 'operationName') - ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', - 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') + ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', 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') - ExecuteQueryRequest copyWith(void Function(ExecuteQueryRequest) updates) => - super.copyWith((message) => updates(message as ExecuteQueryRequest)) - as ExecuteQueryRequest; + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ExecuteQueryRequest copyWith(void Function(ExecuteQueryRequest) updates) => super.copyWith((message) => updates(message as ExecuteQueryRequest)) as ExecuteQueryRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteQueryRequest create() => ExecuteQueryRequest._(); ExecuteQueryRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteQueryRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteQueryRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ExecuteQueryRequest? _defaultInstance; /// The resource name of the connector to find the predefined query, in @@ -89,10 +75,7 @@ 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -106,10 +89,7 @@ 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 v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasOperationName() => $_has(1); @$pb.TagNumber(2) @@ -119,10 +99,7 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.Struct get variables => $_getN(2); @$pb.TagNumber(3) - set variables($1.Struct v) { - setField(3, v); - } - + set variables($1.Struct v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasVariables() => $_has(2); @$pb.TagNumber(3) @@ -151,47 +128,35 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ExecuteMutationRequest', - package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), - createEmptyInstance: create) + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteMutationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..aOS(2, _omitFieldNames ? '' : 'operationName') - ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', - 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') - ExecuteMutationRequest copyWith( - void Function(ExecuteMutationRequest) updates) => - super.copyWith((message) => updates(message as ExecuteMutationRequest)) - as ExecuteMutationRequest; + ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', 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') + ExecuteMutationRequest copyWith(void Function(ExecuteMutationRequest) updates) => super.copyWith((message) => updates(message as ExecuteMutationRequest)) as ExecuteMutationRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteMutationRequest create() => ExecuteMutationRequest._(); ExecuteMutationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteMutationRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteMutationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ExecuteMutationRequest? _defaultInstance; /// The resource name of the connector to find the predefined mutation, in @@ -202,10 +167,7 @@ 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -219,10 +181,7 @@ 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 v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasOperationName() => $_has(1); @$pb.TagNumber(2) @@ -232,10 +191,7 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.Struct get variables => $_getN(2); @$pb.TagNumber(3) - set variables($1.Struct v) { - setField(3, v); - } - + set variables($1.Struct v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasVariables() => $_has(2); @$pb.TagNumber(3) @@ -260,57 +216,41 @@ class ExecuteQueryResponse extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ExecuteQueryResponse', - package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), - createEmptyInstance: create) - ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', - subBuilder: $1.Struct.create) - ..pc<$2.GraphqlError>( - 2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, - subBuilder: $2.GraphqlError.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') - ExecuteQueryResponse copyWith(void Function(ExecuteQueryResponse) updates) => - super.copyWith((message) => updates(message as ExecuteQueryResponse)) - as ExecuteQueryResponse; + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteQueryResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) + ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) + ..pc<$2.GraphqlError>(2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, subBuilder: $2.GraphqlError.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') + ExecuteQueryResponse copyWith(void Function(ExecuteQueryResponse) updates) => super.copyWith((message) => updates(message as ExecuteQueryResponse)) as ExecuteQueryResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteQueryResponse create() => ExecuteQueryResponse._(); ExecuteQueryResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteQueryResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteQueryResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ExecuteQueryResponse? _defaultInstance; /// The result of executing the requested operation. @$pb.TagNumber(1) $1.Struct get data => $_getN(0); @$pb.TagNumber(1) - set data($1.Struct v) { - setField(1, v); - } - + set data($1.Struct v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -339,58 +279,41 @@ class ExecuteMutationResponse extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ExecuteMutationResponse', - package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), - createEmptyInstance: create) - ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', - subBuilder: $1.Struct.create) - ..pc<$2.GraphqlError>( - 2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, - subBuilder: $2.GraphqlError.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') - ExecuteMutationResponse copyWith( - void Function(ExecuteMutationResponse) updates) => - super.copyWith((message) => updates(message as ExecuteMutationResponse)) - as ExecuteMutationResponse; + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteMutationResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) + ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) + ..pc<$2.GraphqlError>(2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, subBuilder: $2.GraphqlError.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') + ExecuteMutationResponse copyWith(void Function(ExecuteMutationResponse) updates) => super.copyWith((message) => updates(message as ExecuteMutationResponse)) as ExecuteMutationResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteMutationResponse create() => ExecuteMutationResponse._(); ExecuteMutationResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteMutationResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteMutationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ExecuteMutationResponse? _defaultInstance; /// The result of executing the requested operation. @$pb.TagNumber(1) $1.Struct get data => $_getN(0); @$pb.TagNumber(1) - set data($1.Struct v) { - setField(1, v); - } - + set data($1.Struct v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -403,6 +326,6 @@ class ExecuteMutationResponse extends $pb.GeneratedMessage { $core.List<$2.GraphqlError> get errors => $_getList(1); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 5512511ce026..f1f336062f51 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: connector_service.proto @@ -12,3 +8,4 @@ // 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 + 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 ee3296bb26f1..13272352d5b6 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: connector_service.proto @@ -23,77 +19,61 @@ import 'connector_service.pb.dart' as $0; export 'connector_service.pb.dart'; -@$pb.GrpcServiceName('google.firebase.dataconnect.v1alpha.ConnectorService') +@$pb.GrpcServiceName('google.firebase.dataconnect.v1beta.ConnectorService') class ConnectorServiceClient extends $grpc.Client { + static final _$executeQuery = $grpc.ClientMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( + '/google.firebase.dataconnect.v1beta.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.v1beta.ConnectorService/ExecuteMutation', + ($0.ExecuteMutationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.ExecuteMutationResponse.fromBuffer(value)); + ConnectorServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, interceptors: interceptors); - static final _$executeQuery = - $grpc.ClientMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( - '/google.firebase.dataconnect.v1alpha.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.v1alpha.ConnectorService/ExecuteMutation', - ($0.ExecuteMutationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.ExecuteMutationResponse.fromBuffer(value)); + : super(channel, options: options, + interceptors: interceptors); - $grpc.ResponseFuture<$0.ExecuteQueryResponse> executeQuery( - $0.ExecuteQueryRequest request, - {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.ExecuteQueryResponse> executeQuery($0.ExecuteQueryRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$executeQuery, request, options: options); } - $grpc.ResponseFuture<$0.ExecuteMutationResponse> executeMutation( - $0.ExecuteMutationRequest request, - {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.ExecuteMutationResponse> executeMutation($0.ExecuteMutationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$executeMutation, request, options: options); } } -@$pb.GrpcServiceName('google.firebase.dataconnect.v1alpha.ConnectorService') +@$pb.GrpcServiceName('google.firebase.dataconnect.v1beta.ConnectorService') abstract class ConnectorServiceBase extends $grpc.Service { + $core.String get $name => 'google.firebase.dataconnect.v1beta.ConnectorService'; + ConnectorServiceBase() { - $addMethod( - $grpc.ServiceMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( - 'ExecuteQuery', - executeQuery_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.ExecuteQueryRequest.fromBuffer(value), - ($0.ExecuteQueryResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ExecuteMutationRequest, - $0.ExecuteMutationResponse>( + $addMethod($grpc.ServiceMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( + 'ExecuteQuery', + executeQuery_Pre, + false, + false, + ($core.List<$core.int> value) => $0.ExecuteQueryRequest.fromBuffer(value), + ($0.ExecuteQueryResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.ExecuteMutationRequest, $0.ExecuteMutationResponse>( 'ExecuteMutation', executeMutation_Pre, false, false, - ($core.List<$core.int> value) => - $0.ExecuteMutationRequest.fromBuffer(value), + ($core.List<$core.int> value) => $0.ExecuteMutationRequest.fromBuffer(value), ($0.ExecuteMutationResponse value) => value.writeToBuffer())); } - $core.String get $name => - 'google.firebase.dataconnect.v1alpha.ConnectorService'; - $async.Future<$0.ExecuteQueryResponse> executeQuery_Pre( - $grpc.ServiceCall call, - $async.Future<$0.ExecuteQueryRequest> request) async { + $async.Future<$0.ExecuteQueryResponse> executeQuery_Pre($grpc.ServiceCall call, $async.Future<$0.ExecuteQueryRequest> request) async { return executeQuery(call, await request); } - $async.Future<$0.ExecuteMutationResponse> executeMutation_Pre( - $grpc.ServiceCall call, - $async.Future<$0.ExecuteMutationRequest> request) async { + $async.Future<$0.ExecuteMutationResponse> executeMutation_Pre($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); + $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 7b44f9f9de90..2f53f3b5f04f 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: connector_service.proto @@ -22,23 +18,8 @@ const ExecuteQueryRequest$json = { '1': 'ExecuteQueryRequest', '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, - { - '1': 'operation_name', - '3': 2, - '4': 1, - '5': 9, - '8': {}, - '10': 'operationName' - }, - { - '1': 'variables', - '3': 3, - '4': 1, - '5': 11, - '6': '.google.protobuf.Struct', - '8': {}, - '10': 'variables' - }, + {'1': 'operation_name', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'operationName'}, + {'1': 'variables', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '8': {}, '10': 'variables'}, ], }; @@ -53,23 +34,8 @@ const ExecuteMutationRequest$json = { '1': 'ExecuteMutationRequest', '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, - { - '1': 'operation_name', - '3': 2, - '4': 1, - '5': 9, - '8': {}, - '10': 'operationName' - }, - { - '1': 'variables', - '3': 3, - '4': 1, - '5': 11, - '6': '.google.protobuf.Struct', - '8': {}, - '10': 'variables' - }, + {'1': 'operation_name', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'operationName'}, + {'1': 'variables', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '8': {}, '10': 'variables'}, ], }; @@ -83,56 +49,29 @@ final $typed_data.Uint8List executeMutationRequestDescriptor = $convert.base64De const ExecuteQueryResponse$json = { '1': 'ExecuteQueryResponse', '2': [ - { - '1': 'data', - '3': 1, - '4': 1, - '5': 11, - '6': '.google.protobuf.Struct', - '10': 'data' - }, - { - '1': 'errors', - '3': 2, - '4': 3, - '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.GraphqlError', - '10': 'errors' - }, + {'1': 'data', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'data'}, + {'1': 'errors', '3': 2, '4': 3, '5': 11, '6': '.google.firebase.dataconnect.v1beta.GraphqlError', '10': 'errors'}, ], }; /// Descriptor for `ExecuteQueryResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List executeQueryResponseDescriptor = $convert.base64Decode( 'ChRFeGVjdXRlUXVlcnlSZXNwb25zZRIrCgRkYXRhGAEgASgLMhcuZ29vZ2xlLnByb3RvYnVmLl' - 'N0cnVjdFIEZGF0YRJJCgZlcnJvcnMYAiADKAsyMS5nb29nbGUuZmlyZWJhc2UuZGF0YWNvbm5l' - 'Y3QudjFhbHBoYS5HcmFwaHFsRXJyb3JSBmVycm9ycw=='); + 'N0cnVjdFIEZGF0YRJICgZlcnJvcnMYAiADKAsyMC5nb29nbGUuZmlyZWJhc2UuZGF0YWNvbm5l' + 'Y3QudjFiZXRhLkdyYXBocWxFcnJvclIGZXJyb3Jz'); @$core.Deprecated('Use executeMutationResponseDescriptor instead') const ExecuteMutationResponse$json = { '1': 'ExecuteMutationResponse', '2': [ - { - '1': 'data', - '3': 1, - '4': 1, - '5': 11, - '6': '.google.protobuf.Struct', - '10': 'data' - }, - { - '1': 'errors', - '3': 2, - '4': 3, - '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.GraphqlError', - '10': 'errors' - }, + {'1': 'data', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'data'}, + {'1': 'errors', '3': 2, '4': 3, '5': 11, '6': '.google.firebase.dataconnect.v1beta.GraphqlError', '10': 'errors'}, ], }; /// Descriptor for `ExecuteMutationResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List executeMutationResponseDescriptor = $convert.base64Decode( 'ChdFeGVjdXRlTXV0YXRpb25SZXNwb25zZRIrCgRkYXRhGAEgASgLMhcuZ29vZ2xlLnByb3RvYn' - 'VmLlN0cnVjdFIEZGF0YRJJCgZlcnJvcnMYAiADKAsyMS5nb29nbGUuZmlyZWJhc2UuZGF0YWNv' - 'bm5lY3QudjFhbHBoYS5HcmFwaHFsRXJyb3JSBmVycm9ycw=='); + 'VmLlN0cnVjdFIEZGF0YRJICgZlcnJvcnMYAiADKAsyMC5nb29nbGUuZmlyZWJhc2UuZGF0YWNv' + 'bm5lY3QudjFiZXRhLkdyYXBocWxFcnJvclIGZXJyb3Jz'); + 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 02ef0302a21b..847ddda129fb 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: google/protobuf/struct.proto @@ -41,38 +37,24 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Struct', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.StructMixin.toProto3JsonHelper, - fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) - ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', - entryClassName: 'Struct.FieldsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Value.create, - valueDefaultOrMaker: Value.getDefault, - packageName: const $pb.PackageName('google.protobuf')) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Struct', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.StructMixin.toProto3JsonHelper, fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) + ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', entryClassName: 'Struct.FieldsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: Value.create, valueDefaultOrMaker: Value.getDefault, packageName: const $pb.PackageName('google.protobuf')) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + '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') - Struct copyWith(void Function(Struct) updates) => - super.copyWith((message) => updates(message as Struct)) as Struct; + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Struct copyWith(void Function(Struct) updates) => super.copyWith((message) => updates(message as Struct)) as Struct; $pb.BuilderInfo get info_ => _i; @@ -81,8 +63,7 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { Struct createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Struct getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Struct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Struct? _defaultInstance; /// Unordered map of dynamically typed values. @@ -91,12 +72,12 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { } enum Value_Kind { - nullValue, - numberValue, - stringValue, - boolValue, - structValue, - listValue, + nullValue, + numberValue, + stringValue, + boolValue, + structValue, + listValue, notSet } @@ -137,53 +118,39 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { 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); + 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); static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { - 1: Value_Kind.nullValue, - 2: Value_Kind.numberValue, - 3: Value_Kind.stringValue, - 4: Value_Kind.boolValue, - 5: Value_Kind.structValue, - 6: Value_Kind.listValue, - 0: Value_Kind.notSet + 1 : Value_Kind.nullValue, + 2 : Value_Kind.numberValue, + 3 : Value_Kind.stringValue, + 4 : Value_Kind.boolValue, + 5 : Value_Kind.structValue, + 6 : Value_Kind.listValue, + 0 : Value_Kind.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Value', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, - fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) ..oo(0, [1, 2, 3, 4, 5, 6]) - ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, - defaultOrMaker: NullValue.NULL_VALUE, - valueOf: NullValue.valueOf, - enumValues: NullValue.values) - ..a<$core.double>( - 2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) + ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, defaultOrMaker: NullValue.NULL_VALUE, valueOf: NullValue.valueOf, enumValues: NullValue.values) + ..a<$core.double>(2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) ..aOS(3, _omitFieldNames ? '' : 'stringValue') ..aOB(4, _omitFieldNames ? '' : 'boolValue') - ..aOM(5, _omitFieldNames ? '' : 'structValue', - subBuilder: Struct.create) - ..aOM(6, _omitFieldNames ? '' : 'listValue', - subBuilder: ListValue.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..aOM(5, _omitFieldNames ? '' : 'structValue', subBuilder: Struct.create) + ..aOM(6, _omitFieldNames ? '' : 'listValue', 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') - Value copyWith(void Function(Value) updates) => - super.copyWith((message) => updates(message as Value)) as Value; + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Value copyWith(void Function(Value) updates) => super.copyWith((message) => updates(message as Value)) as Value; $pb.BuilderInfo get info_ => _i; @@ -192,8 +159,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Value getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Value? _defaultInstance; Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; @@ -203,10 +169,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(1) NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) - set nullValue(NullValue v) { - setField(1, v); - } - + set nullValue(NullValue v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasNullValue() => $_has(0); @$pb.TagNumber(1) @@ -216,10 +179,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(2) $core.double get numberValue => $_getN(1); @$pb.TagNumber(2) - set numberValue($core.double v) { - $_setDouble(1, v); - } - + set numberValue($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasNumberValue() => $_has(1); @$pb.TagNumber(2) @@ -229,10 +189,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(3) $core.String get stringValue => $_getSZ(2); @$pb.TagNumber(3) - set stringValue($core.String v) { - $_setString(2, v); - } - + set stringValue($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasStringValue() => $_has(2); @$pb.TagNumber(3) @@ -242,10 +199,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(4) $core.bool get boolValue => $_getBF(3); @$pb.TagNumber(4) - set boolValue($core.bool v) { - $_setBool(3, v); - } - + set boolValue($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasBoolValue() => $_has(3); @$pb.TagNumber(4) @@ -255,10 +209,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(5) Struct get structValue => $_getN(4); @$pb.TagNumber(5) - set structValue(Struct v) { - setField(5, v); - } - + set structValue(Struct v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasStructValue() => $_has(4); @$pb.TagNumber(5) @@ -270,10 +221,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(6) ListValue get listValue => $_getN(5); @$pb.TagNumber(6) - set listValue(ListValue v) { - setField(6, v); - } - + set listValue(ListValue v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasListValue() => $_has(5); @$pb.TagNumber(6) @@ -296,33 +244,24 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ListValue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, - fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) - ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, - subBuilder: Value.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, subBuilder: Value.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + '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') - ListValue copyWith(void Function(ListValue) updates) => - super.copyWith((message) => updates(message as ListValue)) as ListValue; + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListValue copyWith(void Function(ListValue) updates) => super.copyWith((message) => updates(message as ListValue)) as ListValue; $pb.BuilderInfo get info_ => _i; @@ -331,8 +270,7 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { ListValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListValue getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListValue? _defaultInstance; /// Repeated field of dynamically typed values. @@ -340,6 +278,6 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { $core.List get values => $_getList(0); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 d34c2a616ab3..bf7c57195525 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: google/protobuf/struct.proto @@ -22,18 +18,17 @@ import 'package:protobuf/protobuf.dart' as $pb; /// /// The JSON representation for `NullValue` is JSON `null`. class NullValue extends $pb.ProtobufEnum { - static const NullValue NULL_VALUE = - NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); + static const NullValue NULL_VALUE = NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); - static const $core.List values = [ + static const $core.List values = [ NULL_VALUE, ]; - static final $core.Map<$core.int, NullValue> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, NullValue> _byValue = $pb.ProtobufEnum.initByValue(values); static NullValue? valueOf($core.int value) => _byValue[value]; const NullValue._($core.int v, $core.String n) : super(v, n); } + const _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 744bfdffbcb6..ffa25fa6d680 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: google/protobuf/struct.proto @@ -26,21 +22,14 @@ const NullValue$json = { }; /// Descriptor for `NullValue`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List nullValueDescriptor = - $convert.base64Decode('CglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAA'); +final $typed_data.Uint8List nullValueDescriptor = $convert.base64Decode( + 'CglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAA'); @$core.Deprecated('Use structDescriptor instead') const Struct$json = { '1': 'Struct', '2': [ - { - '1': 'fields', - '3': 1, - '4': 3, - '5': 11, - '6': '.google.protobuf.Struct.FieldsEntry', - '10': 'fields' - }, + {'1': 'fields', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Struct.FieldsEntry', '10': 'fields'}, ], '3': [Struct_FieldsEntry$json], }; @@ -50,14 +39,7 @@ const Struct_FieldsEntry$json = { '1': 'FieldsEntry', '2': [ {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - { - '1': 'value', - '3': 2, - '4': 1, - '5': 11, - '6': '.google.protobuf.Value', - '10': 'value' - }, + {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Value', '10': 'value'}, ], '7': {'7': true}, }; @@ -72,36 +54,12 @@ final $typed_data.Uint8List structDescriptor = $convert.base64Decode( const Value$json = { '1': 'Value', '2': [ - { - '1': 'null_value', - '3': 1, - '4': 1, - '5': 14, - '6': '.google.protobuf.NullValue', - '9': 0, - '10': 'nullValue' - }, + {'1': 'null_value', '3': 1, '4': 1, '5': 14, '6': '.google.protobuf.NullValue', '9': 0, '10': 'nullValue'}, {'1': 'number_value', '3': 2, '4': 1, '5': 1, '9': 0, '10': 'numberValue'}, {'1': 'string_value', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'stringValue'}, {'1': 'bool_value', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, - { - '1': 'struct_value', - '3': 5, - '4': 1, - '5': 11, - '6': '.google.protobuf.Struct', - '9': 0, - '10': 'structValue' - }, - { - '1': 'list_value', - '3': 6, - '4': 1, - '5': 11, - '6': '.google.protobuf.ListValue', - '9': 0, - '10': 'listValue' - }, + {'1': 'struct_value', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '9': 0, '10': 'structValue'}, + {'1': 'list_value', '3': 6, '4': 1, '5': 11, '6': '.google.protobuf.ListValue', '9': 0, '10': 'listValue'}, ], '8': [ {'1': 'kind'}, @@ -121,14 +79,7 @@ final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( const ListValue$json = { '1': 'ListValue', '2': [ - { - '1': 'values', - '3': 1, - '4': 3, - '5': 11, - '6': '.google.protobuf.Value', - '10': 'values' - }, + {'1': 'values', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Value', '10': 'values'}, ], }; @@ -136,3 +87,4 @@ const ListValue$json = { final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode( 'CglMaXN0VmFsdWUSLgoGdmFsdWVzGAEgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgZ2YW' 'x1ZXM='); + 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 0493787e5821..a8e0b96a7f2f 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: graphql_error.proto @@ -53,49 +49,36 @@ class GraphqlError extends $pb.GeneratedMessage { 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); + 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); - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'GraphqlError', - package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), - createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GraphqlError', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') - ..pc( - 2, _omitFieldNames ? '' : 'locations', $pb.PbFieldType.PM, - subBuilder: SourceLocation.create) - ..aOM<$1.ListValue>(3, _omitFieldNames ? '' : 'path', - subBuilder: $1.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') + ..pc(2, _omitFieldNames ? '' : 'locations', $pb.PbFieldType.PM, subBuilder: SourceLocation.create) + ..aOM<$1.ListValue>(3, _omitFieldNames ? '' : 'path', subBuilder: $1.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') - GraphqlError copyWith(void Function(GraphqlError) updates) => - super.copyWith((message) => updates(message as GraphqlError)) - as GraphqlError; + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GraphqlError copyWith(void Function(GraphqlError) updates) => super.copyWith((message) => updates(message as GraphqlError)) as GraphqlError; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlError create() => GraphqlError._(); GraphqlError createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static GraphqlError getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static GraphqlError getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GraphqlError? _defaultInstance; /// The detailed error message. @@ -104,10 +87,7 @@ 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) @@ -135,10 +115,7 @@ class GraphqlError extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.ListValue get path => $_getN(2); @$pb.TagNumber(3) - set path($1.ListValue v) { - setField(3, v); - } - + set path($1.ListValue v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasPath() => $_has(2); @$pb.TagNumber(3) @@ -150,10 +127,7 @@ class GraphqlError extends $pb.GeneratedMessage { @$pb.TagNumber(4) GraphqlErrorExtensions get extensions => $_getN(3); @$pb.TagNumber(4) - set extensions(GraphqlErrorExtensions v) { - setField(4, v); - } - + set extensions(GraphqlErrorExtensions v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasExtensions() => $_has(3); @$pb.TagNumber(4) @@ -178,53 +152,41 @@ class SourceLocation extends $pb.GeneratedMessage { 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); + 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); - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'SourceLocation', - package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), - createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SourceLocation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) ..a<$core.int>(2, _omitFieldNames ? '' : 'column', $pb.PbFieldType.O3) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$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') - SourceLocation copyWith(void Function(SourceLocation) updates) => - super.copyWith((message) => updates(message as SourceLocation)) - as SourceLocation; + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SourceLocation copyWith(void Function(SourceLocation) updates) => super.copyWith((message) => updates(message as SourceLocation)) as SourceLocation; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SourceLocation create() => SourceLocation._(); SourceLocation createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SourceLocation getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SourceLocation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SourceLocation? _defaultInstance; /// Line number starting at 1. @$pb.TagNumber(1) $core.int get line => $_getIZ(0); @$pb.TagNumber(1) - set line($core.int v) { - $_setSignedInt32(0, v); - } - + set line($core.int v) { $_setSignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasLine() => $_has(0); @$pb.TagNumber(1) @@ -234,10 +196,7 @@ class SourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get column => $_getIZ(1); @$pb.TagNumber(2) - set column($core.int v) { - $_setSignedInt32(1, v); - } - + set column($core.int v) { $_setSignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasColumn() => $_has(1); @$pb.TagNumber(2) @@ -258,44 +217,33 @@ class GraphqlErrorExtensions extends $pb.GeneratedMessage { 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); + 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); - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'GraphqlErrorExtensions', - package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), - createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GraphqlErrorExtensions', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..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') - GraphqlErrorExtensions copyWith( - void Function(GraphqlErrorExtensions) updates) => - super.copyWith((message) => updates(message as GraphqlErrorExtensions)) - as GraphqlErrorExtensions; + ..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') + GraphqlErrorExtensions copyWith(void Function(GraphqlErrorExtensions) updates) => super.copyWith((message) => updates(message as GraphqlErrorExtensions)) as GraphqlErrorExtensions; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlErrorExtensions create() => GraphqlErrorExtensions._(); GraphqlErrorExtensions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static GraphqlErrorExtensions getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static GraphqlErrorExtensions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GraphqlErrorExtensions? _defaultInstance; /// The source file name where the error occurred. @@ -304,16 +252,13 @@ 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasFile() => $_has(0); @$pb.TagNumber(1) void clearFile() => clearField(1); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 25b956e9db18..a5f5593bbf79 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: graphql_error.proto @@ -12,3 +8,4 @@ // 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 + 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 5712719cf719..89890d137729 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,7 +1,3 @@ -// Copyright 2024, the Chromium project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - // // Generated code. Do not modify. // source: graphql_error.proto @@ -22,40 +18,19 @@ const GraphqlError$json = { '1': 'GraphqlError', '2': [ {'1': 'message', '3': 1, '4': 1, '5': 9, '10': 'message'}, - { - '1': 'locations', - '3': 2, - '4': 3, - '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.SourceLocation', - '10': 'locations' - }, - { - '1': 'path', - '3': 3, - '4': 1, - '5': 11, - '6': '.google.protobuf.ListValue', - '10': 'path' - }, - { - '1': 'extensions', - '3': 4, - '4': 1, - '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.GraphqlErrorExtensions', - '10': 'extensions' - }, + {'1': 'locations', '3': 2, '4': 3, '5': 11, '6': '.google.firebase.dataconnect.v1beta.SourceLocation', '10': 'locations'}, + {'1': 'path', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.ListValue', '10': 'path'}, + {'1': 'extensions', '3': 4, '4': 1, '5': 11, '6': '.google.firebase.dataconnect.v1beta.GraphqlErrorExtensions', '10': 'extensions'}, ], }; /// Descriptor for `GraphqlError`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List graphqlErrorDescriptor = $convert.base64Decode( - 'CgxHcmFwaHFsRXJyb3ISGAoHbWVzc2FnZRgBIAEoCVIHbWVzc2FnZRJRCglsb2NhdGlvbnMYAi' - 'ADKAsyMy5nb29nbGUuZmlyZWJhc2UuZGF0YWNvbm5lY3QudjFhbHBoYS5Tb3VyY2VMb2NhdGlv' - 'blIJbG9jYXRpb25zEi4KBHBhdGgYAyABKAsyGi5nb29nbGUucHJvdG9idWYuTGlzdFZhbHVlUg' - 'RwYXRoElsKCmV4dGVuc2lvbnMYBCABKAsyOy5nb29nbGUuZmlyZWJhc2UuZGF0YWNvbm5lY3Qu' - 'djFhbHBoYS5HcmFwaHFsRXJyb3JFeHRlbnNpb25zUgpleHRlbnNpb25z'); + 'CgxHcmFwaHFsRXJyb3ISGAoHbWVzc2FnZRgBIAEoCVIHbWVzc2FnZRJQCglsb2NhdGlvbnMYAi' + 'ADKAsyMi5nb29nbGUuZmlyZWJhc2UuZGF0YWNvbm5lY3QudjFiZXRhLlNvdXJjZUxvY2F0aW9u' + 'Uglsb2NhdGlvbnMSLgoEcGF0aBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5MaXN0VmFsdWVSBH' + 'BhdGgSWgoKZXh0ZW5zaW9ucxgEIAEoCzI6Lmdvb2dsZS5maXJlYmFzZS5kYXRhY29ubmVjdC52' + 'MWJldGEuR3JhcGhxbEVycm9yRXh0ZW5zaW9uc1IKZXh0ZW5zaW9ucw=='); @$core.Deprecated('Use sourceLocationDescriptor instead') const SourceLocation$json = { @@ -80,6 +55,6 @@ const GraphqlErrorExtensions$json = { }; /// Descriptor for `GraphqlErrorExtensions`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List graphqlErrorExtensionsDescriptor = - $convert.base64Decode( - 'ChZHcmFwaHFsRXJyb3JFeHRlbnNpb25zEhIKBGZpbGUYASABKAlSBGZpbGU='); +final $typed_data.Uint8List graphqlErrorExtensionsDescriptor = $convert.base64Decode( + 'ChZHcmFwaHFsRXJyb3JFeHRlbnNpb25zEhIKBGZpbGUYASABKAlSBGZpbGU='); + diff --git a/packages/firebase_data_connect/firebase_data_connect/protos/connector_service.proto b/packages/firebase_data_connect/firebase_data_connect/protos/connector_service.proto index 466815682df2..dc4938905263 100644 --- a/packages/firebase_data_connect/firebase_data_connect/protos/connector_service.proto +++ b/packages/firebase_data_connect/firebase_data_connect/protos/connector_service.proto @@ -18,7 +18,7 @@ syntax = "proto3"; -package google.firebase.dataconnect.v1alpha; +package google.firebase.dataconnect.v1beta; import "google/api/field_behavior.proto"; import "graphql_error.proto"; diff --git a/packages/firebase_data_connect/firebase_data_connect/protos/firebase/graphql_error.proto b/packages/firebase_data_connect/firebase_data_connect/protos/firebase/graphql_error.proto index 86710653cf86..2eec4a4d2552 100644 --- a/packages/firebase_data_connect/firebase_data_connect/protos/firebase/graphql_error.proto +++ b/packages/firebase_data_connect/firebase_data_connect/protos/firebase/graphql_error.proto @@ -18,7 +18,7 @@ syntax = "proto3"; -package google.firebase.dataconnect.v1alpha; +package google.firebase.dataconnect.v1beta; import "google/protobuf/struct.proto"; From 248457986d44b4cd8b73e798405520dea0f997d2 Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Fri, 20 Sep 2024 12:10:58 +0100 Subject: [PATCH 2/5] Upgraded to v1beta --- .../firebase_data_connect/example/.firebaserc | 2 +- .../dataconnect/connector/mutations.gql | 20 ++ .../lib/generated/add_director_to_movie.dart | 290 +++++++++++++---- .../example/lib/generated/add_person.dart | 175 ++++++++--- .../example/lib/generated/create_movie.dart | 297 ++++++++++++++---- .../example/lib/generated/delete_movie.dart | 175 ++++++++--- .../example/lib/generated/list_movies.dart | 225 ++++++++++--- .../list_movies_by_partial_title.dart | 264 ++++++++++++---- .../example/lib/generated/list_persons.dart | 147 +++++++-- .../example/lib/generated/movies.dart | 24 +- .../example/lib/generated/seed_movies.dart | 88 ++++++ .../lib/src/network/rest_transport.dart | 2 +- .../test/src/network/rest_transport_test.dart | 4 +- 13 files changed, 1365 insertions(+), 348 deletions(-) create mode 100644 packages/firebase_data_connect/firebase_data_connect/example/lib/generated/seed_movies.dart diff --git a/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc b/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc index cad24fca0101..4f437a595212 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc +++ b/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc @@ -6,7 +6,7 @@ "etags": {}, "dataconnectEmulatorConfig": { "postgres": { - "localConnectionString": "postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable" + "localConnectionString": "postgresql://postgres:secretpassword@localhost:5432/postgres?sslmode=disable" } } } \ No newline at end of file diff --git a/packages/firebase_data_connect/firebase_data_connect/example/dataconnect/connector/mutations.gql b/packages/firebase_data_connect/firebase_data_connect/example/dataconnect/connector/mutations.gql index a869f6fea236..c16f9d0dc8e4 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/dataconnect/connector/mutations.gql +++ b/packages/firebase_data_connect/firebase_data_connect/example/dataconnect/connector/mutations.gql @@ -6,6 +6,26 @@ mutation addDirectorToMovie($personId: Person_Key, $movieId: UUID) @auth(level: PUBLIC) { directedBy_insert(data: { directedby: $personId, movieId: $movieId }) } +mutation seedMovies @auth(level: PUBLIC) { + the_matrix: movie_insert( + data: { + title: "The Matrix" + releaseYear: 1999 + genre: "Sci-Fi" + rating: 5.0 + description: "When a beautiful stranger leads computer hacker Neo to a forbidding underworld, he discovers the shocking truth--the life he knows is the elaborate deception of an evil cyber-intelligence." + } + ) + jurassic_park: movie_insert( + data: { + title: "Jurassic Park" + releaseYear: 1993 + genre: "Adventure" + rating: 5.0 + description: "An industrialist invites some experts to visit his theme park of cloned dinosaurs. After a power failure, the creatures run loose, putting everyone's lives, including his grandchildren's, in danger." + } + ) +} mutation createMovie( $title: String! $releaseYear: Int! diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart index 0929d0a602b9..85ac837cd7e8 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart @@ -1,132 +1,292 @@ part of movies; + + + + + + class AddDirectorToMovie { String name = "addDirectorToMovie"; AddDirectorToMovie({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => - AddDirectorToMovieResponse.fromJson( - jsonDecode(json) as Map); - Serializer varsSerializer = - (AddDirectorToMovieVariables vars) => jsonEncode(vars.toJson()); + Deserializer dataDeserializer = (String json) => AddDirectorToMovieResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = (AddDirectorToMovieVariables vars) => jsonEncode(vars.toJson()); MutationRef ref( - {AddDirectorToMovieVariablesPersonId? personId, - String? movieId, - AddDirectorToMovieVariables? addDirectorToMovieVariables}) { - AddDirectorToMovieVariables vars1 = AddDirectorToMovieVariables( - personId: personId, - movieId: movieId, - ); - AddDirectorToMovieVariables vars = addDirectorToMovieVariables ?? vars1; - return dataConnect.mutation( - this.name, dataDeserializer, varsSerializer, vars); - } + {AddDirectorToMovieVariablesPersonId? personId,String? movieId,}) { + AddDirectorToMovieVariables vars=AddDirectorToMovieVariables(personId: personId,movieId: movieId,); + return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + } FirebaseDataConnect dataConnect; } -class AddDirectorToMovieDirectedByInsert { - late String directedbyId; - late String movieId; + + + +class AddDirectorToMovieDirectedByInsert { + + + + + late String directedbyId; + + + + + + late String movieId; + + + + AddDirectorToMovieDirectedByInsert.fromJson(Map json): + directedbyId = + json['directedbyId'], + + + movieId = + json['movieId'] + + { + + + + + + } - AddDirectorToMovieDirectedByInsert.fromJson(Map json) - : directedbyId = json['directedbyId'], - movieId = json['movieId'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['directedbyId'] = directedbyId; - - json['movieId'] = movieId; - + + + json['directedbyId'] = + + directedbyId + +; + + + + json['movieId'] = + + movieId + +; + + return json; } AddDirectorToMovieDirectedByInsert({ + required this.directedbyId, + required this.movieId, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + + + } + } + + + + + + class AddDirectorToMovieResponse { - late AddDirectorToMovieDirectedByInsert directedBy_insert; + + + + + late AddDirectorToMovieDirectedByInsert directedBy_insert; + + + + AddDirectorToMovieResponse.fromJson(Map json): + directedBy_insert = + AddDirectorToMovieDirectedByInsert.fromJson(json['directedBy_insert']) + + + { + + + + } - AddDirectorToMovieResponse.fromJson(Map json) - : directedBy_insert = AddDirectorToMovieDirectedByInsert.fromJson( - json['directedBy_insert']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['directedBy_insert'] = directedBy_insert.toJson(); - + + + json['directedBy_insert'] = + + directedBy_insert.toJson() + +; + + return json; } AddDirectorToMovieResponse({ + required this.directedBy_insert, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class AddDirectorToMovieVariablesPersonId { - late String id; + + + + + late String id; + + + + AddDirectorToMovieVariablesPersonId.fromJson(Map json): + id = + json['id'] + + { + + + + } - AddDirectorToMovieVariablesPersonId.fromJson(Map json) - : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - + + + json['id'] = + + id + +; + + return json; } AddDirectorToMovieVariablesPersonId({ + required this.id, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } -class AddDirectorToMovieVariables { - late AddDirectorToMovieVariablesPersonId? personId; - late String? movieId; - AddDirectorToMovieVariables.fromJson(Map json) - : personId = - AddDirectorToMovieVariablesPersonId.fromJson(json['personId']), - movieId = json['movieId'] {} - // TODO(mtewani): Fix up to create a map on the fly - Map toJson() { - Map json = {}; + - if (personId != null) { - json['personId'] = personId!.toJson(); - } - if (movieId != null) { - json['movieId'] = movieId; +class AddDirectorToMovieVariables { + + + + + late AddDirectorToMovieVariablesPersonId? personId; + + + + + + late String? movieId; + + + + AddDirectorToMovieVariables.fromJson(Map json): + personId = + AddDirectorToMovieVariablesPersonId.fromJson(json['personId']) + , + + + movieId = + json['movieId'] + + { + + + + + } + + // TODO(mtewani): Fix up to create a map on the fly + Map toJson() { + Map json = {}; + + + if (personId != null) { + json['personId'] = + + personId!.toJson() + +; + } + + + + if (movieId != null) { + json['movieId'] = + + movieId + +; + } + + return json; } AddDirectorToMovieVariables({ - AddDirectorToMovieVariablesPersonId? this.personId, - String? this.movieId, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + this.personId, + + this.movieId, + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + + + } + } + + + + + + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart index 9d418952fcd1..ed2fae00f6e1 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart @@ -1,89 +1,188 @@ part of movies; + + + + + + class AddPerson { String name = "addPerson"; AddPerson({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => - AddPersonResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = - (AddPersonVariables vars) => jsonEncode(vars.toJson()); + Deserializer dataDeserializer = (String json) => AddPersonResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = (AddPersonVariables vars) => jsonEncode(vars.toJson()); MutationRef ref( - {String? name, AddPersonVariables? addPersonVariables}) { - AddPersonVariables vars1 = AddPersonVariables( - name: name, - ); - AddPersonVariables vars = addPersonVariables ?? vars1; - return dataConnect.mutation( - this.name, dataDeserializer, varsSerializer, vars); - } + {String? name,}) { + AddPersonVariables vars=AddPersonVariables(name: name,); + return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + } FirebaseDataConnect dataConnect; } + + + + class AddPersonPersonInsert { - late String id; + + + + + late String id; + + + + AddPersonPersonInsert.fromJson(Map json): + id = + json['id'] + + { + + + + } - AddPersonPersonInsert.fromJson(Map json) : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - + + + json['id'] = + + id + +; + + return json; } AddPersonPersonInsert({ + required this.id, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class AddPersonResponse { - late AddPersonPersonInsert person_insert; + + + + + late AddPersonPersonInsert person_insert; + + + + AddPersonResponse.fromJson(Map json): + person_insert = + AddPersonPersonInsert.fromJson(json['person_insert']) + + + { + + + + } - AddPersonResponse.fromJson(Map json) - : person_insert = AddPersonPersonInsert.fromJson(json['person_insert']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['person_insert'] = person_insert.toJson(); - + + + json['person_insert'] = + + person_insert.toJson() + +; + + return json; } AddPersonResponse({ + required this.person_insert, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class AddPersonVariables { - late String? name; + + + + + late String? name; + + + + AddPersonVariables.fromJson(Map json): + name = + json['name'] + + { + + + + } - AddPersonVariables.fromJson(Map json) - : name = json['name'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - if (name != null) { - json['name'] = name; - } - + + + if (name != null) { + json['name'] = + + name + +; + } + + return json; } AddPersonVariables({ - String? this.name, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + this.name, + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart index 6d1e020cce3b..639846c508d9 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart @@ -1,125 +1,286 @@ part of movies; + + + + + + class CreateMovie { String name = "createMovie"; CreateMovie({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => - CreateMovieResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = - (CreateMovieVariables vars) => jsonEncode(vars.toJson()); + Deserializer dataDeserializer = (String json) => CreateMovieResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = (CreateMovieVariables vars) => jsonEncode(vars.toJson()); MutationRef ref( - {required String title, - required int releaseYear, - required String genre, - double? rating, - String? description, - CreateMovieVariables? createMovieVariables}) { - CreateMovieVariables vars1 = CreateMovieVariables( - title: title, - releaseYear: releaseYear, - genre: genre, - rating: rating, - description: description, - ); - CreateMovieVariables vars = createMovieVariables ?? vars1; - return dataConnect.mutation( - this.name, dataDeserializer, varsSerializer, vars); - } + {required String title,required int releaseYear,required String genre,double? rating,String? description,}) { + CreateMovieVariables vars=CreateMovieVariables(title: title,releaseYear: releaseYear,genre: genre,rating: rating,description: description,); + return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + } FirebaseDataConnect dataConnect; } + + + + class CreateMovieMovieInsert { - late String id; + + + + + late String id; + + + + CreateMovieMovieInsert.fromJson(Map json): + id = + json['id'] + + { + + + + } - CreateMovieMovieInsert.fromJson(Map json) - : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - + + + json['id'] = + + id + +; + + return json; } CreateMovieMovieInsert({ + required this.id, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class CreateMovieResponse { - late CreateMovieMovieInsert movie_insert; + + + + + late CreateMovieMovieInsert movie_insert; + + + + CreateMovieResponse.fromJson(Map json): + movie_insert = + CreateMovieMovieInsert.fromJson(json['movie_insert']) + + + { + + + + } - CreateMovieResponse.fromJson(Map json) - : movie_insert = CreateMovieMovieInsert.fromJson(json['movie_insert']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['movie_insert'] = movie_insert.toJson(); - + + + json['movie_insert'] = + + movie_insert.toJson() + +; + + return json; } CreateMovieResponse({ + required this.movie_insert, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } -class CreateMovieVariables { - late String title; - late int releaseYear; - late String genre; - late double? rating; + - late String? description; - CreateMovieVariables.fromJson(Map json) - : title = json['title'], - releaseYear = json['releaseYear'], - genre = json['genre'], - rating = json['rating'], - description = json['description'] {} +class CreateMovieVariables { + + + + + late String title; + + + + + + late int releaseYear; + + + + + + late String genre; + + + + + + late double? rating; + + + + + + late String? description; + + + + CreateMovieVariables.fromJson(Map json): + title = + json['title'], + + + releaseYear = + json['releaseYear'], + + + genre = + json['genre'], + + + rating = + json['rating'], + + + description = + json['description'] + + { + + + + + + + + + + + + } + // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['title'] = title; - - json['releaseYear'] = releaseYear; - - json['genre'] = genre; - - if (rating != null) { - json['rating'] = rating; - } - - if (description != null) { - json['description'] = description; - } - + + + json['title'] = + + title + +; + + + + json['releaseYear'] = + + releaseYear + +; + + + + json['genre'] = + + genre + +; + + + + if (rating != null) { + json['rating'] = + + rating + +; + } + + + + if (description != null) { + json['description'] = + + description + +; + } + + return json; } CreateMovieVariables({ + required this.title, + required this.releaseYear, + required this.genre, - double? this.rating, - String? this.description, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + this.rating, + + this.description, + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + + + + + + + + + } + } + + + + + + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart index 5aeb6cdd1938..680a64a06b5a 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart @@ -1,89 +1,188 @@ part of movies; + + + + + + class DeleteMovie { String name = "deleteMovie"; DeleteMovie({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => - DeleteMovieResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = - (DeleteMovieVariables vars) => jsonEncode(vars.toJson()); + Deserializer dataDeserializer = (String json) => DeleteMovieResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = (DeleteMovieVariables vars) => jsonEncode(vars.toJson()); MutationRef ref( - {required String id, DeleteMovieVariables? deleteMovieVariables}) { - DeleteMovieVariables vars1 = DeleteMovieVariables( - id: id, - ); - DeleteMovieVariables vars = deleteMovieVariables ?? vars1; - return dataConnect.mutation( - this.name, dataDeserializer, varsSerializer, vars); - } + {required String id,}) { + DeleteMovieVariables vars=DeleteMovieVariables(id: id,); + return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + } FirebaseDataConnect dataConnect; } + + + + class DeleteMovieMovieDelete { - late String id; + + + + + late String id; + + + + DeleteMovieMovieDelete.fromJson(Map json): + id = + json['id'] + + { + + + + } - DeleteMovieMovieDelete.fromJson(Map json) - : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - + + + json['id'] = + + id + +; + + return json; } DeleteMovieMovieDelete({ + required this.id, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class DeleteMovieResponse { - late DeleteMovieMovieDelete? movie_delete; + + + + + late DeleteMovieMovieDelete? movie_delete; + + + + DeleteMovieResponse.fromJson(Map json): + movie_delete = + DeleteMovieMovieDelete.fromJson(json['movie_delete']) + + + { + + + + } - DeleteMovieResponse.fromJson(Map json) - : movie_delete = DeleteMovieMovieDelete.fromJson(json['movie_delete']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - if (movie_delete != null) { - json['movie_delete'] = movie_delete!.toJson(); - } - + + + if (movie_delete != null) { + json['movie_delete'] = + + movie_delete!.toJson() + +; + } + + return json; } DeleteMovieResponse({ - DeleteMovieMovieDelete? movie_delete, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + this.movie_delete, + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class DeleteMovieVariables { - late String id; + + + + + late String id; + + + + DeleteMovieVariables.fromJson(Map json): + id = + json['id'] + + { + + + + } - DeleteMovieVariables.fromJson(Map json) : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - + + + json['id'] = + + id + +; + + return json; } DeleteMovieVariables({ + required this.id, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart index 58e13493a23e..379222318f3a 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart @@ -1,97 +1,238 @@ part of movies; + + + + + + class ListMovies { String name = "ListMovies"; ListMovies({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => - ListMoviesResponse.fromJson(jsonDecode(json) as Map); - - QueryRef ref() { + Deserializer dataDeserializer = (String json) => ListMoviesResponse.fromJson(jsonDecode(json) as Map); + + QueryRef ref( + ) { + return dataConnect.query(this.name, dataDeserializer, null, null); } - FirebaseDataConnect dataConnect; } -class ListMoviesMovies { - late String id; - late String title; + - late List directed_by; - ListMoviesMovies.fromJson(Map json) - : id = json['id'], - title = json['title'], - directed_by = (json['directed_by'] as List) - .map((e) => ListMoviesMoviesDirectedBy.fromJson(e)) - .toList() {} +class ListMoviesMovies { + + + + + late String id; + + + + + + late String title; + + + + + + late List directed_by; + + + + ListMoviesMovies.fromJson(Map json): + id = + json['id'], + + + title = + json['title'], + + + directed_by = + (json['directed_by'] as List) + .map((e) => ListMoviesMoviesDirectedBy.fromJson(e)) + .toList() + + + { + + + + + + + + } + // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - - json['title'] = title; - - json['directed_by'] = directed_by.map((e) => e.toJson()).toList(); - + + + json['id'] = + + id + +; + + + + json['title'] = + + title + +; + + + + json['directed_by'] = + + directed_by.map((e) => e.toJson()).toList() + +; + + return json; } ListMoviesMovies({ + required this.id, + required this.title, + required this.directed_by, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + + + + + } + } + + + + + + class ListMoviesMoviesDirectedBy { - late String name; + + + + + late String name; + + + + ListMoviesMoviesDirectedBy.fromJson(Map json): + name = + json['name'] + + { + + + + } - ListMoviesMoviesDirectedBy.fromJson(Map json) - : name = json['name'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['name'] = name; - + + + json['name'] = + + name + +; + + return json; } ListMoviesMoviesDirectedBy({ + required this.name, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class ListMoviesResponse { - late List movies; + + + + + late List movies; + + + + ListMoviesResponse.fromJson(Map json): + movies = + (json['movies'] as List) + .map((e) => ListMoviesMovies.fromJson(e)) + .toList() + + + { + + + + } - ListMoviesResponse.fromJson(Map json) - : movies = (json['movies'] as List) - .map((e) => ListMoviesMovies.fromJson(e)) - .toList() {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['movies'] = movies.map((e) => e.toJson()).toList(); - + + + json['movies'] = + + movies.map((e) => e.toJson()).toList() + +; + + return json; } ListMoviesResponse({ + required this.movies, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart index f06a7f68d304..55e98a30d3df 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart @@ -1,114 +1,262 @@ part of movies; + + + + + + class ListMoviesByPartialTitle { String name = "ListMoviesByPartialTitle"; ListMoviesByPartialTitle({required this.dataConnect}); - Deserializer dataDeserializer = - (String json) => ListMoviesByPartialTitleResponse.fromJson( - jsonDecode(json) as Map); - Serializer varsSerializer = - (ListMoviesByPartialTitleVariables vars) => jsonEncode(vars.toJson()); - QueryRef - ref( - {required String input, - ListMoviesByPartialTitleVariables? - listMoviesByPartialTitleVariables}) { - ListMoviesByPartialTitleVariables vars1 = ListMoviesByPartialTitleVariables( - input: input, - ); - ListMoviesByPartialTitleVariables vars = - listMoviesByPartialTitleVariables ?? vars1; + Deserializer dataDeserializer = (String json) => ListMoviesByPartialTitleResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = (ListMoviesByPartialTitleVariables vars) => jsonEncode(vars.toJson()); + QueryRef ref( + {required String input,}) { + ListMoviesByPartialTitleVariables vars=ListMoviesByPartialTitleVariables(input: input,); + return dataConnect.query(this.name, dataDeserializer, varsSerializer, vars); } - FirebaseDataConnect dataConnect; } -class ListMoviesByPartialTitleMovies { - late String id; - late String title; + - late String genre; - late double? rating; +class ListMoviesByPartialTitleMovies { + + + + + late String id; + + + + + + late String title; + + + + + + late String genre; + + + + + + late double? rating; + + + + ListMoviesByPartialTitleMovies.fromJson(Map json): + id = + json['id'], + + + title = + json['title'], + + + genre = + json['genre'], + + + rating = + json['rating'] + + { + + + + + + + + + + } - ListMoviesByPartialTitleMovies.fromJson(Map json) - : id = json['id'], - title = json['title'], - genre = json['genre'], - rating = json['rating'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - - json['title'] = title; - - json['genre'] = genre; - - if (rating != null) { - json['rating'] = rating; - } - + + + json['id'] = + + id + +; + + + + json['title'] = + + title + +; + + + + json['genre'] = + + genre + +; + + + + if (rating != null) { + json['rating'] = + + rating + +; + } + + return json; } ListMoviesByPartialTitleMovies({ + required this.id, + required this.title, + required this.genre, - double? rating, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + this.rating, + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + + + + + + + } + } + + + + + + class ListMoviesByPartialTitleResponse { - late List movies; + + + + + late List movies; + + + + ListMoviesByPartialTitleResponse.fromJson(Map json): + movies = + (json['movies'] as List) + .map((e) => ListMoviesByPartialTitleMovies.fromJson(e)) + .toList() + + + { + + + + } - ListMoviesByPartialTitleResponse.fromJson(Map json) - : movies = (json['movies'] as List) - .map((e) => ListMoviesByPartialTitleMovies.fromJson(e)) - .toList() {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['movies'] = movies.map((e) => e.toJson()).toList(); - + + + json['movies'] = + + movies.map((e) => e.toJson()).toList() + +; + + return json; } ListMoviesByPartialTitleResponse({ + required this.movies, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + class ListMoviesByPartialTitleVariables { - late String input; + + + + + late String input; + + + + ListMoviesByPartialTitleVariables.fromJson(Map json): + input = + json['input'] + + { + + + + } - ListMoviesByPartialTitleVariables.fromJson(Map json) - : input = json['input'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['input'] = input; - + + + json['input'] = + + input + +; + + return json; } ListMoviesByPartialTitleVariables({ + required this.input, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart index 8a4d7e4cb0a6..a30fc82c5acb 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart @@ -1,67 +1,158 @@ part of movies; + + + + + + class ListPersons { String name = "ListPersons"; ListPersons({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => - ListPersonsResponse.fromJson(jsonDecode(json) as Map); - - QueryRef ref() { + Deserializer dataDeserializer = (String json) => ListPersonsResponse.fromJson(jsonDecode(json) as Map); + + QueryRef ref( + ) { + return dataConnect.query(this.name, dataDeserializer, null, null); } - FirebaseDataConnect dataConnect; } -class ListPersonsPeople { - late String id; - late String name; + + + +class ListPersonsPeople { + + + + + late String id; + + + + + + late String name; + + + + ListPersonsPeople.fromJson(Map json): + id = + json['id'], + + + name = + json['name'] + + { + + + + + + } - ListPersonsPeople.fromJson(Map json) - : id = json['id'], - name = json['name'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['id'] = id; - - json['name'] = name; - + + + json['id'] = + + id + +; + + + + json['name'] = + + name + +; + + return json; } ListPersonsPeople({ + required this.id, + required this.name, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + + + } + } + + + + + + class ListPersonsResponse { - late List people; + + + + + late List people; + + + + ListPersonsResponse.fromJson(Map json): + people = + (json['people'] as List) + .map((e) => ListPersonsPeople.fromJson(e)) + .toList() + + + { + + + + } - ListPersonsResponse.fromJson(Map json) - : people = (json['people'] as List) - .map((e) => ListPersonsPeople.fromJson(e)) - .toList() {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - json['people'] = people.map((e) => e.toJson()).toList(); - + + + json['people'] = + + people.map((e) => e.toJson()).toList() + +; + + return json; } ListPersonsResponse({ + required this.people, - }) { - // TODO(mtewani): Only show this if there are optional fields. + + }) { // TODO(mtewani): Only show this if there are optional fields. + + + } + } + + + + + + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart index 9c0f15b0ac39..21d1b89a536c 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart @@ -1,5 +1,4 @@ library movies; - import 'package:firebase_data_connect/firebase_data_connect.dart'; import 'dart:convert'; @@ -7,6 +6,8 @@ part 'add_person.dart'; part 'add_director_to_movie.dart'; +part 'seed_movies.dart'; + part 'create_movie.dart'; part 'delete_movie.dart'; @@ -17,34 +18,42 @@ part 'list_movies_by_partial_title.dart'; part 'list_persons.dart'; + + class MoviesConnector { + AddPerson get addPerson { return AddPerson(dataConnect: dataConnect); } - + AddDirectorToMovie get addDirectorToMovie { return AddDirectorToMovie(dataConnect: dataConnect); } - + + SeedMovies get seedMovies { + return SeedMovies(dataConnect: dataConnect); + } + CreateMovie get createMovie { return CreateMovie(dataConnect: dataConnect); } - + DeleteMovie get deleteMovie { return DeleteMovie(dataConnect: dataConnect); } - + ListMovies get listMovies { return ListMovies(dataConnect: dataConnect); } - + ListMoviesByPartialTitle get listMoviesByPartialTitle { return ListMoviesByPartialTitle(dataConnect: dataConnect); } - + ListPersons get listPersons { return ListPersons(dataConnect: dataConnect); } + static ConnectorConfig connectorConfig = ConnectorConfig( 'us-west2', @@ -61,3 +70,4 @@ class MoviesConnector { FirebaseDataConnect dataConnect; } + diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/seed_movies.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/seed_movies.dart new file mode 100644 index 000000000000..c5a5f4b8e13d --- /dev/null +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/seed_movies.dart @@ -0,0 +1,88 @@ +part of movies; + +class SeedMovies { + String name = "seedMovies"; + SeedMovies({required this.dataConnect}); + + Deserializer dataDeserializer = (String json) => + SeedMoviesResponse.fromJson(jsonDecode(json) as Map); + + MutationRef ref() { + return dataConnect.mutation( + this.name, dataDeserializer, emptySerializer, null); + } + + FirebaseDataConnect dataConnect; +} + +class SeedMoviesTheMatrix { + late String id; + + SeedMoviesTheMatrix.fromJson(Map json) : id = json['id'] {} + + // TODO(mtewani): Fix up to create a map on the fly + Map toJson() { + Map json = {}; + + json['id'] = id; + + return json; + } + + SeedMoviesTheMatrix({ + required this.id, + }) { + // TODO(mtewani): Only show this if there are optional fields. + } +} + +class SeedMoviesJurassicPark { + late String id; + + SeedMoviesJurassicPark.fromJson(Map json) + : id = json['id'] {} + + // TODO(mtewani): Fix up to create a map on the fly + Map toJson() { + Map json = {}; + + json['id'] = id; + + return json; + } + + SeedMoviesJurassicPark({ + required this.id, + }) { + // TODO(mtewani): Only show this if there are optional fields. + } +} + +class SeedMoviesResponse { + late SeedMoviesTheMatrix the_matrix; + + late SeedMoviesJurassicPark jurassic_park; + + SeedMoviesResponse.fromJson(Map json) + : the_matrix = SeedMoviesTheMatrix.fromJson(json['the_matrix']), + jurassic_park = + SeedMoviesJurassicPark.fromJson(json['jurassic_park']) {} + + // TODO(mtewani): Fix up to create a map on the fly + Map toJson() { + Map json = {}; + + json['the_matrix'] = the_matrix.toJson(); + + json['jurassic_park'] = jurassic_park.toJson(); + + return json; + } + + SeedMoviesResponse({ + required this.the_matrix, + required this.jurassic_park, + }) { + // TODO(mtewani): Only show this if there are optional fields. + } +} diff --git a/packages/firebase_data_connect/firebase_data_connect/lib/src/network/rest_transport.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/network/rest_transport.dart index 1d1bffcf7446..af0fb10447a9 100644 --- a/packages/firebase_data_connect/firebase_data_connect/lib/src/network/rest_transport.dart +++ b/packages/firebase_data_connect/firebase_data_connect/lib/src/network/rest_transport.dart @@ -20,7 +20,7 @@ class RestTransport implements DataConnectTransport { String service = options.serviceId; String connector = options.connector; url = - '$protocol://$host:$port/v1alpha/projects/$project/locations/$location/services/$service/connectors/$connector'; + '$protocol://$host:$port/v1beta/projects/$project/locations/$location/services/$service/connectors/$connector'; } @override diff --git a/packages/firebase_data_connect/firebase_data_connect/test/src/network/rest_transport_test.dart b/packages/firebase_data_connect/firebase_data_connect/test/src/network/rest_transport_test.dart index 76aaf7aba059..9abb26ff7eeb 100644 --- a/packages/firebase_data_connect/firebase_data_connect/test/src/network/rest_transport_test.dart +++ b/packages/firebase_data_connect/firebase_data_connect/test/src/network/rest_transport_test.dart @@ -51,7 +51,7 @@ void main() { test('should correctly initialize URL with secure protocol', () { expect( transport.url, - 'https://testhost:443/v1alpha/projects/testProject/locations/testLocation/services/testService/connectors/testConnector', + 'https://testhost:443/v1beta/projects/testProject/locations/testLocation/services/testService/connectors/testConnector', ); }); @@ -70,7 +70,7 @@ void main() { expect( insecureTransport.url, - 'http://testhost:443/v1alpha/projects/testProject/locations/testLocation/services/testService/connectors/testConnector', + 'http://testhost:443/v1beta/projects/testProject/locations/testLocation/services/testService/connectors/testConnector', ); }); From 5e2db009437bdaa6b5e3b1ed76438d1dbba1d57e Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Fri, 20 Sep 2024 12:11:52 +0100 Subject: [PATCH 3/5] Removed .firebaserc --- .../firebase_data_connect/example/.firebaserc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc b/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc index 4f437a595212..cad24fca0101 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc +++ b/packages/firebase_data_connect/firebase_data_connect/example/.firebaserc @@ -6,7 +6,7 @@ "etags": {}, "dataconnectEmulatorConfig": { "postgres": { - "localConnectionString": "postgresql://postgres:secretpassword@localhost:5432/postgres?sslmode=disable" + "localConnectionString": "postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable" } } } \ No newline at end of file From 8f7ad0814f1bd72c02ad064896d535102ee482bc Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Fri, 20 Sep 2024 12:12:33 +0100 Subject: [PATCH 4/5] Fixed formatting --- .../lib/generated/add_director_to_movie.dart | 292 ++++------------- .../example/lib/generated/add_person.dart | 178 +++-------- .../example/lib/generated/create_movie.dart | 299 ++++-------------- .../example/lib/generated/delete_movie.dart | 178 +++-------- .../example/lib/generated/list_movies.dart | 225 +++---------- .../list_movies_by_partial_title.dart | 260 ++++----------- .../example/lib/generated/list_persons.dart | 147 ++------- .../example/lib/generated/movies.dart | 20 +- 8 files changed, 348 insertions(+), 1251 deletions(-) diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart index 85ac837cd7e8..380b4492b1a1 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_director_to_movie.dart @@ -1,292 +1,132 @@ part of movies; - - - - - - class AddDirectorToMovie { String name = "addDirectorToMovie"; AddDirectorToMovie({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => AddDirectorToMovieResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = (AddDirectorToMovieVariables vars) => jsonEncode(vars.toJson()); - MutationRef ref( - {AddDirectorToMovieVariablesPersonId? personId,String? movieId,}) { - AddDirectorToMovieVariables vars=AddDirectorToMovieVariables(personId: personId,movieId: movieId,); - - return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + Deserializer dataDeserializer = (String json) => + AddDirectorToMovieResponse.fromJson( + jsonDecode(json) as Map); + Serializer varsSerializer = + (AddDirectorToMovieVariables vars) => jsonEncode(vars.toJson()); + MutationRef ref({ + AddDirectorToMovieVariablesPersonId? personId, + String? movieId, + }) { + AddDirectorToMovieVariables vars = AddDirectorToMovieVariables( + personId: personId, + movieId: movieId, + ); + + return dataConnect.mutation( + this.name, dataDeserializer, varsSerializer, vars); } + FirebaseDataConnect dataConnect; } - - - - class AddDirectorToMovieDirectedByInsert { - - - - - late String directedbyId; - - - - - - late String movieId; - - - - AddDirectorToMovieDirectedByInsert.fromJson(Map json): - directedbyId = - json['directedbyId'], - - - movieId = - json['movieId'] - - { - - - - - - } + late String directedbyId; + + late String movieId; + AddDirectorToMovieDirectedByInsert.fromJson(Map json) + : directedbyId = json['directedbyId'], + movieId = json['movieId'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['directedbyId'] = - - directedbyId - -; - - - - json['movieId'] = - - movieId - -; - - + + json['directedbyId'] = directedbyId; + + json['movieId'] = movieId; + return json; } AddDirectorToMovieDirectedByInsert({ - required this.directedbyId, - required this.movieId, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class AddDirectorToMovieResponse { - - - - - late AddDirectorToMovieDirectedByInsert directedBy_insert; - - - - AddDirectorToMovieResponse.fromJson(Map json): - directedBy_insert = - AddDirectorToMovieDirectedByInsert.fromJson(json['directedBy_insert']) - - - { - - - - } + late AddDirectorToMovieDirectedByInsert directedBy_insert; + AddDirectorToMovieResponse.fromJson(Map json) + : directedBy_insert = AddDirectorToMovieDirectedByInsert.fromJson( + json['directedBy_insert']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['directedBy_insert'] = - - directedBy_insert.toJson() - -; - - + + json['directedBy_insert'] = directedBy_insert.toJson(); + return json; } AddDirectorToMovieResponse({ - required this.directedBy_insert, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class AddDirectorToMovieVariablesPersonId { - - - - - late String id; - - - - AddDirectorToMovieVariablesPersonId.fromJson(Map json): - id = - json['id'] - - { - - - - } + late String id; + AddDirectorToMovieVariablesPersonId.fromJson(Map json) + : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - + + json['id'] = id; + return json; } AddDirectorToMovieVariablesPersonId({ - required this.id, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } +class AddDirectorToMovieVariables { + late AddDirectorToMovieVariablesPersonId? personId; + late String? movieId; + AddDirectorToMovieVariables.fromJson(Map json) + : personId = + AddDirectorToMovieVariablesPersonId.fromJson(json['personId']), + movieId = json['movieId'] {} - - + // TODO(mtewani): Fix up to create a map on the fly + Map toJson() { + Map json = {}; -class AddDirectorToMovieVariables { - - - - - late AddDirectorToMovieVariablesPersonId? personId; - - - - - - late String? movieId; - - - - AddDirectorToMovieVariables.fromJson(Map json): - personId = - AddDirectorToMovieVariablesPersonId.fromJson(json['personId']) - , - - - movieId = - json['movieId'] - - { - - - - - + if (personId != null) { + json['personId'] = personId!.toJson(); } + if (movieId != null) { + json['movieId'] = movieId; + } - // TODO(mtewani): Fix up to create a map on the fly - Map toJson() { - Map json = {}; - - - if (personId != null) { - json['personId'] = - - personId!.toJson() - -; - } - - - - if (movieId != null) { - json['movieId'] = - - movieId - -; - } - - return json; } AddDirectorToMovieVariables({ - - this.personId, - - this.movieId, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - - - + this.personId, + this.movieId, + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart index ed2fae00f6e1..1627b3691fc7 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/add_person.dart @@ -1,188 +1,90 @@ part of movies; - - - - - - class AddPerson { String name = "addPerson"; AddPerson({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => AddPersonResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = (AddPersonVariables vars) => jsonEncode(vars.toJson()); - MutationRef ref( - {String? name,}) { - AddPersonVariables vars=AddPersonVariables(name: name,); - - return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + Deserializer dataDeserializer = (String json) => + AddPersonResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = + (AddPersonVariables vars) => jsonEncode(vars.toJson()); + MutationRef ref({ + String? name, + }) { + AddPersonVariables vars = AddPersonVariables( + name: name, + ); + + return dataConnect.mutation( + this.name, dataDeserializer, varsSerializer, vars); } + FirebaseDataConnect dataConnect; } - - - - class AddPersonPersonInsert { - - - - - late String id; - - - - AddPersonPersonInsert.fromJson(Map json): - id = - json['id'] - - { - - - - } + late String id; + AddPersonPersonInsert.fromJson(Map json) : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - + + json['id'] = id; + return json; } AddPersonPersonInsert({ - required this.id, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class AddPersonResponse { - - - - - late AddPersonPersonInsert person_insert; - - - - AddPersonResponse.fromJson(Map json): - person_insert = - AddPersonPersonInsert.fromJson(json['person_insert']) - - - { - - - - } + late AddPersonPersonInsert person_insert; + AddPersonResponse.fromJson(Map json) + : person_insert = AddPersonPersonInsert.fromJson(json['person_insert']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['person_insert'] = - - person_insert.toJson() - -; - - + + json['person_insert'] = person_insert.toJson(); + return json; } AddPersonResponse({ - required this.person_insert, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class AddPersonVariables { - - - - - late String? name; - - - - AddPersonVariables.fromJson(Map json): - name = - json['name'] - - { - - - - } + late String? name; + AddPersonVariables.fromJson(Map json) + : name = json['name'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - if (name != null) { - json['name'] = - - name - -; - } - - + + if (name != null) { + json['name'] = name; + } + return json; } AddPersonVariables({ - - this.name, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + this.name, + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart index 639846c508d9..a5c3db631aa7 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/create_movie.dart @@ -1,286 +1,125 @@ part of movies; - - - - - - class CreateMovie { String name = "createMovie"; CreateMovie({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => CreateMovieResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = (CreateMovieVariables vars) => jsonEncode(vars.toJson()); - MutationRef ref( - {required String title,required int releaseYear,required String genre,double? rating,String? description,}) { - CreateMovieVariables vars=CreateMovieVariables(title: title,releaseYear: releaseYear,genre: genre,rating: rating,description: description,); - - return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + Deserializer dataDeserializer = (String json) => + CreateMovieResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = + (CreateMovieVariables vars) => jsonEncode(vars.toJson()); + MutationRef ref({ + required String title, + required int releaseYear, + required String genre, + double? rating, + String? description, + }) { + CreateMovieVariables vars = CreateMovieVariables( + title: title, + releaseYear: releaseYear, + genre: genre, + rating: rating, + description: description, + ); + + return dataConnect.mutation( + this.name, dataDeserializer, varsSerializer, vars); } + FirebaseDataConnect dataConnect; } - - - - class CreateMovieMovieInsert { - - - - - late String id; - - - - CreateMovieMovieInsert.fromJson(Map json): - id = - json['id'] - - { - - - - } + late String id; + CreateMovieMovieInsert.fromJson(Map json) + : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - + + json['id'] = id; + return json; } CreateMovieMovieInsert({ - required this.id, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class CreateMovieResponse { - - - - - late CreateMovieMovieInsert movie_insert; - - - - CreateMovieResponse.fromJson(Map json): - movie_insert = - CreateMovieMovieInsert.fromJson(json['movie_insert']) - - - { - - - - } + late CreateMovieMovieInsert movie_insert; + CreateMovieResponse.fromJson(Map json) + : movie_insert = CreateMovieMovieInsert.fromJson(json['movie_insert']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['movie_insert'] = - - movie_insert.toJson() - -; - - + + json['movie_insert'] = movie_insert.toJson(); + return json; } CreateMovieResponse({ - required this.movie_insert, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } +class CreateMovieVariables { + late String title; + late int releaseYear; + late String genre; - - + late double? rating; -class CreateMovieVariables { - - - - - late String title; - - - - - - late int releaseYear; - - - - - - late String genre; - - - - - - late double? rating; - - - - - - late String? description; - - - - CreateMovieVariables.fromJson(Map json): - title = - json['title'], - - - releaseYear = - json['releaseYear'], - - - genre = - json['genre'], - - - rating = - json['rating'], - - - description = - json['description'] - - { - - - - - - - - - - - - } + late String? description; + CreateMovieVariables.fromJson(Map json) + : title = json['title'], + releaseYear = json['releaseYear'], + genre = json['genre'], + rating = json['rating'], + description = json['description'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['title'] = - - title - -; - - - - json['releaseYear'] = - - releaseYear - -; - - - - json['genre'] = - - genre - -; - - - - if (rating != null) { - json['rating'] = - - rating - -; - } - - - - if (description != null) { - json['description'] = - - description - -; - } - - + + json['title'] = title; + + json['releaseYear'] = releaseYear; + + json['genre'] = genre; + + if (rating != null) { + json['rating'] = rating; + } + + if (description != null) { + json['description'] = description; + } + return json; } CreateMovieVariables({ - required this.title, - required this.releaseYear, - required this.genre, - - this.rating, - - this.description, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - - - - - - - - - + this.rating, + this.description, + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart index 680a64a06b5a..e56a96f32cee 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/delete_movie.dart @@ -1,188 +1,90 @@ part of movies; - - - - - - class DeleteMovie { String name = "deleteMovie"; DeleteMovie({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => DeleteMovieResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = (DeleteMovieVariables vars) => jsonEncode(vars.toJson()); - MutationRef ref( - {required String id,}) { - DeleteMovieVariables vars=DeleteMovieVariables(id: id,); - - return dataConnect.mutation(this.name, dataDeserializer, varsSerializer, vars); + Deserializer dataDeserializer = (String json) => + DeleteMovieResponse.fromJson(jsonDecode(json) as Map); + Serializer varsSerializer = + (DeleteMovieVariables vars) => jsonEncode(vars.toJson()); + MutationRef ref({ + required String id, + }) { + DeleteMovieVariables vars = DeleteMovieVariables( + id: id, + ); + + return dataConnect.mutation( + this.name, dataDeserializer, varsSerializer, vars); } + FirebaseDataConnect dataConnect; } - - - - class DeleteMovieMovieDelete { - - - - - late String id; - - - - DeleteMovieMovieDelete.fromJson(Map json): - id = - json['id'] - - { - - - - } + late String id; + DeleteMovieMovieDelete.fromJson(Map json) + : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - + + json['id'] = id; + return json; } DeleteMovieMovieDelete({ - required this.id, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class DeleteMovieResponse { - - - - - late DeleteMovieMovieDelete? movie_delete; - - - - DeleteMovieResponse.fromJson(Map json): - movie_delete = - DeleteMovieMovieDelete.fromJson(json['movie_delete']) - - - { - - - - } + late DeleteMovieMovieDelete? movie_delete; + DeleteMovieResponse.fromJson(Map json) + : movie_delete = DeleteMovieMovieDelete.fromJson(json['movie_delete']) {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - if (movie_delete != null) { - json['movie_delete'] = - - movie_delete!.toJson() - -; - } - - + + if (movie_delete != null) { + json['movie_delete'] = movie_delete!.toJson(); + } + return json; } DeleteMovieResponse({ - - this.movie_delete, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + this.movie_delete, + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class DeleteMovieVariables { - - - - - late String id; - - - - DeleteMovieVariables.fromJson(Map json): - id = - json['id'] - - { - - - - } + late String id; + DeleteMovieVariables.fromJson(Map json) : id = json['id'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - + + json['id'] = id; + return json; } DeleteMovieVariables({ - required this.id, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart index 379222318f3a..58e13493a23e 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies.dart @@ -1,238 +1,97 @@ part of movies; - - - - - - class ListMovies { String name = "ListMovies"; ListMovies({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => ListMoviesResponse.fromJson(jsonDecode(json) as Map); - - QueryRef ref( - ) { - + Deserializer dataDeserializer = (String json) => + ListMoviesResponse.fromJson(jsonDecode(json) as Map); + + QueryRef ref() { return dataConnect.query(this.name, dataDeserializer, null, null); } + FirebaseDataConnect dataConnect; } +class ListMoviesMovies { + late String id; - + late String title; + late List directed_by; -class ListMoviesMovies { - - - - - late String id; - - - - - - late String title; - - - - - - late List directed_by; - - - - ListMoviesMovies.fromJson(Map json): - id = - json['id'], - - - title = - json['title'], - - - directed_by = - (json['directed_by'] as List) - .map((e) => ListMoviesMoviesDirectedBy.fromJson(e)) - .toList() - - - { - - - - - - - - } - + ListMoviesMovies.fromJson(Map json) + : id = json['id'], + title = json['title'], + directed_by = (json['directed_by'] as List) + .map((e) => ListMoviesMoviesDirectedBy.fromJson(e)) + .toList() {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - - - json['title'] = - - title - -; - - - - json['directed_by'] = - - directed_by.map((e) => e.toJson()).toList() - -; - - + + json['id'] = id; + + json['title'] = title; + + json['directed_by'] = directed_by.map((e) => e.toJson()).toList(); + return json; } ListMoviesMovies({ - required this.id, - required this.title, - required this.directed_by, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - - - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class ListMoviesMoviesDirectedBy { - - - - - late String name; - - - - ListMoviesMoviesDirectedBy.fromJson(Map json): - name = - json['name'] - - { - - - - } + late String name; + ListMoviesMoviesDirectedBy.fromJson(Map json) + : name = json['name'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['name'] = - - name - -; - - + + json['name'] = name; + return json; } ListMoviesMoviesDirectedBy({ - required this.name, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class ListMoviesResponse { - - - - - late List movies; - - - - ListMoviesResponse.fromJson(Map json): - movies = - (json['movies'] as List) - .map((e) => ListMoviesMovies.fromJson(e)) - .toList() - - - { - - - - } + late List movies; + ListMoviesResponse.fromJson(Map json) + : movies = (json['movies'] as List) + .map((e) => ListMoviesMovies.fromJson(e)) + .toList() {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['movies'] = - - movies.map((e) => e.toJson()).toList() - -; - - + + json['movies'] = movies.map((e) => e.toJson()).toList(); + return json; } ListMoviesResponse({ - required this.movies, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart index 55e98a30d3df..3304930622ba 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_movies_by_partial_title.dart @@ -1,262 +1,112 @@ part of movies; - - - - - - class ListMoviesByPartialTitle { String name = "ListMoviesByPartialTitle"; ListMoviesByPartialTitle({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => ListMoviesByPartialTitleResponse.fromJson(jsonDecode(json) as Map); - Serializer varsSerializer = (ListMoviesByPartialTitleVariables vars) => jsonEncode(vars.toJson()); - QueryRef ref( - {required String input,}) { - ListMoviesByPartialTitleVariables vars=ListMoviesByPartialTitleVariables(input: input,); + Deserializer dataDeserializer = + (String json) => ListMoviesByPartialTitleResponse.fromJson( + jsonDecode(json) as Map); + Serializer varsSerializer = + (ListMoviesByPartialTitleVariables vars) => jsonEncode(vars.toJson()); + QueryRef + ref({ + required String input, + }) { + ListMoviesByPartialTitleVariables vars = ListMoviesByPartialTitleVariables( + input: input, + ); return dataConnect.query(this.name, dataDeserializer, varsSerializer, vars); } + FirebaseDataConnect dataConnect; } +class ListMoviesByPartialTitleMovies { + late String id; - + late String title; + late String genre; -class ListMoviesByPartialTitleMovies { - - - - - late String id; - - - - - - late String title; - - - - - - late String genre; - - - - - - late double? rating; - - - - ListMoviesByPartialTitleMovies.fromJson(Map json): - id = - json['id'], - - - title = - json['title'], - - - genre = - json['genre'], - - - rating = - json['rating'] - - { - - - - - - - - - - } + late double? rating; + ListMoviesByPartialTitleMovies.fromJson(Map json) + : id = json['id'], + title = json['title'], + genre = json['genre'], + rating = json['rating'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - - - json['title'] = - - title - -; - - - - json['genre'] = - - genre - -; - - - - if (rating != null) { - json['rating'] = - - rating - -; - } - - + + json['id'] = id; + + json['title'] = title; + + json['genre'] = genre; + + if (rating != null) { + json['rating'] = rating; + } + return json; } ListMoviesByPartialTitleMovies({ - required this.id, - required this.title, - required this.genre, - - this.rating, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - - - - - - - + this.rating, + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class ListMoviesByPartialTitleResponse { - - - - - late List movies; - - - - ListMoviesByPartialTitleResponse.fromJson(Map json): - movies = - (json['movies'] as List) - .map((e) => ListMoviesByPartialTitleMovies.fromJson(e)) - .toList() - - - { - - - - } + late List movies; + ListMoviesByPartialTitleResponse.fromJson(Map json) + : movies = (json['movies'] as List) + .map((e) => ListMoviesByPartialTitleMovies.fromJson(e)) + .toList() {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['movies'] = - - movies.map((e) => e.toJson()).toList() - -; - - + + json['movies'] = movies.map((e) => e.toJson()).toList(); + return json; } ListMoviesByPartialTitleResponse({ - required this.movies, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class ListMoviesByPartialTitleVariables { - - - - - late String input; - - - - ListMoviesByPartialTitleVariables.fromJson(Map json): - input = - json['input'] - - { - - - - } + late String input; + ListMoviesByPartialTitleVariables.fromJson(Map json) + : input = json['input'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['input'] = - - input - -; - - + + json['input'] = input; + return json; } ListMoviesByPartialTitleVariables({ - required this.input, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart index a30fc82c5acb..8a4d7e4cb0a6 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/list_persons.dart @@ -1,158 +1,67 @@ part of movies; - - - - - - class ListPersons { String name = "ListPersons"; ListPersons({required this.dataConnect}); - Deserializer dataDeserializer = (String json) => ListPersonsResponse.fromJson(jsonDecode(json) as Map); - - QueryRef ref( - ) { - + Deserializer dataDeserializer = (String json) => + ListPersonsResponse.fromJson(jsonDecode(json) as Map); + + QueryRef ref() { return dataConnect.query(this.name, dataDeserializer, null, null); } + FirebaseDataConnect dataConnect; } - - - - class ListPersonsPeople { - - - - - late String id; - - - - - - late String name; - - - - ListPersonsPeople.fromJson(Map json): - id = - json['id'], - - - name = - json['name'] - - { - - - - - - } + late String id; + + late String name; + ListPersonsPeople.fromJson(Map json) + : id = json['id'], + name = json['name'] {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['id'] = - - id - -; - - - - json['name'] = - - name - -; - - + + json['id'] = id; + + json['name'] = name; + return json; } ListPersonsPeople({ - required this.id, - required this.name, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - class ListPersonsResponse { - - - - - late List people; - - - - ListPersonsResponse.fromJson(Map json): - people = - (json['people'] as List) - .map((e) => ListPersonsPeople.fromJson(e)) - .toList() - - - { - - - - } + late List people; + ListPersonsResponse.fromJson(Map json) + : people = (json['people'] as List) + .map((e) => ListPersonsPeople.fromJson(e)) + .toList() {} // TODO(mtewani): Fix up to create a map on the fly Map toJson() { Map json = {}; - - - json['people'] = - - people.map((e) => e.toJson()).toList() - -; - - + + json['people'] = people.map((e) => e.toJson()).toList(); + return json; } ListPersonsResponse({ - required this.people, - - }) { // TODO(mtewani): Only show this if there are optional fields. - - - + }) { + // TODO(mtewani): Only show this if there are optional fields. } - } - - - - - - diff --git a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart index 21d1b89a536c..1c40ee434bb3 100644 --- a/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart +++ b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart @@ -1,4 +1,5 @@ library movies; + import 'package:firebase_data_connect/firebase_data_connect.dart'; import 'dart:convert'; @@ -18,42 +19,38 @@ part 'list_movies_by_partial_title.dart'; part 'list_persons.dart'; - - class MoviesConnector { - AddPerson get addPerson { return AddPerson(dataConnect: dataConnect); } - + AddDirectorToMovie get addDirectorToMovie { return AddDirectorToMovie(dataConnect: dataConnect); } - + SeedMovies get seedMovies { return SeedMovies(dataConnect: dataConnect); } - + CreateMovie get createMovie { return CreateMovie(dataConnect: dataConnect); } - + DeleteMovie get deleteMovie { return DeleteMovie(dataConnect: dataConnect); } - + ListMovies get listMovies { return ListMovies(dataConnect: dataConnect); } - + ListMoviesByPartialTitle get listMoviesByPartialTitle { return ListMoviesByPartialTitle(dataConnect: dataConnect); } - + ListPersons get listPersons { return ListPersons(dataConnect: dataConnect); } - static ConnectorConfig connectorConfig = ConnectorConfig( 'us-west2', @@ -70,4 +67,3 @@ class MoviesConnector { FirebaseDataConnect dataConnect; } - From 16946bedadbe13374eedce994ca93aadfea202f4 Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Tue, 24 Sep 2024 16:27:23 +0100 Subject: [PATCH 5/5] Added back headers to generated files --- .../src/generated/connector_service.pb.dart | 258 ++++++++++++------ .../generated/connector_service.pbenum.dart | 4 +- .../generated/connector_service.pbgrpc.dart | 69 +++-- .../generated/connector_service.pbjson.dart | 78 +++++- .../generated/google/protobuf/struct.pb.dart | 215 +++++++++------ .../google/protobuf/struct.pbenum.dart | 12 +- .../google/protobuf/struct.pbjson.dart | 65 ++++- .../lib/src/generated/graphql_error.pb.dart | 178 +++++++----- .../src/generated/graphql_error.pbenum.dart | 4 +- .../src/generated/graphql_error.pbjson.dart | 36 ++- 10 files changed, 635 insertions(+), 284 deletions(-) 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 b1e782e10907..6bcaa5b66b24 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: connector_service.proto @@ -36,35 +39,45 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteQueryRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExecuteQueryRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..aOS(2, _omitFieldNames ? '' : 'operationName') - ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', 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') + ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', + 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') - ExecuteQueryRequest copyWith(void Function(ExecuteQueryRequest) updates) => super.copyWith((message) => updates(message as ExecuteQueryRequest)) as ExecuteQueryRequest; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ExecuteQueryRequest copyWith(void Function(ExecuteQueryRequest) updates) => + super.copyWith((message) => updates(message as ExecuteQueryRequest)) + as ExecuteQueryRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteQueryRequest create() => ExecuteQueryRequest._(); ExecuteQueryRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteQueryRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteQueryRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExecuteQueryRequest? _defaultInstance; /// The resource name of the connector to find the predefined query, in @@ -75,7 +88,10 @@ 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 v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -89,7 +105,10 @@ 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 v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasOperationName() => $_has(1); @$pb.TagNumber(2) @@ -99,7 +118,10 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.Struct get variables => $_getN(2); @$pb.TagNumber(3) - set variables($1.Struct v) { setField(3, v); } + set variables($1.Struct v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasVariables() => $_has(2); @$pb.TagNumber(3) @@ -128,35 +150,47 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteMutationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExecuteMutationRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..aOS(2, _omitFieldNames ? '' : 'operationName') - ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', 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') - ExecuteMutationRequest copyWith(void Function(ExecuteMutationRequest) updates) => super.copyWith((message) => updates(message as ExecuteMutationRequest)) as ExecuteMutationRequest; + ..aOM<$1.Struct>(3, _omitFieldNames ? '' : 'variables', + 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') + ExecuteMutationRequest copyWith( + void Function(ExecuteMutationRequest) updates) => + super.copyWith((message) => updates(message as ExecuteMutationRequest)) + as ExecuteMutationRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteMutationRequest create() => ExecuteMutationRequest._(); ExecuteMutationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteMutationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteMutationRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExecuteMutationRequest? _defaultInstance; /// The resource name of the connector to find the predefined mutation, in @@ -167,7 +201,10 @@ 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 v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -181,7 +218,10 @@ 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 v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasOperationName() => $_has(1); @$pb.TagNumber(2) @@ -191,7 +231,10 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.Struct get variables => $_getN(2); @$pb.TagNumber(3) - set variables($1.Struct v) { setField(3, v); } + set variables($1.Struct v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasVariables() => $_has(2); @$pb.TagNumber(3) @@ -216,41 +259,57 @@ class ExecuteQueryResponse extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteQueryResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) - ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) - ..pc<$2.GraphqlError>(2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, subBuilder: $2.GraphqlError.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') - ExecuteQueryResponse copyWith(void Function(ExecuteQueryResponse) updates) => super.copyWith((message) => updates(message as ExecuteQueryResponse)) as ExecuteQueryResponse; + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExecuteQueryResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), + createEmptyInstance: create) + ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', + subBuilder: $1.Struct.create) + ..pc<$2.GraphqlError>( + 2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, + subBuilder: $2.GraphqlError.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') + ExecuteQueryResponse copyWith(void Function(ExecuteQueryResponse) updates) => + super.copyWith((message) => updates(message as ExecuteQueryResponse)) + as ExecuteQueryResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteQueryResponse create() => ExecuteQueryResponse._(); ExecuteQueryResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteQueryResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteQueryResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExecuteQueryResponse? _defaultInstance; /// The result of executing the requested operation. @$pb.TagNumber(1) $1.Struct get data => $_getN(0); @$pb.TagNumber(1) - set data($1.Struct v) { setField(1, v); } + set data($1.Struct v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -279,41 +338,58 @@ class ExecuteMutationResponse extends $pb.GeneratedMessage { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExecuteMutationResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) - ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) - ..pc<$2.GraphqlError>(2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, subBuilder: $2.GraphqlError.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') - ExecuteMutationResponse copyWith(void Function(ExecuteMutationResponse) updates) => super.copyWith((message) => updates(message as ExecuteMutationResponse)) as ExecuteMutationResponse; + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExecuteMutationResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), + createEmptyInstance: create) + ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', + subBuilder: $1.Struct.create) + ..pc<$2.GraphqlError>( + 2, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, + subBuilder: $2.GraphqlError.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') + ExecuteMutationResponse copyWith( + void Function(ExecuteMutationResponse) updates) => + super.copyWith((message) => updates(message as ExecuteMutationResponse)) + as ExecuteMutationResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ExecuteMutationResponse create() => ExecuteMutationResponse._(); ExecuteMutationResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ExecuteMutationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ExecuteMutationResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ExecuteMutationResponse? _defaultInstance; /// The result of executing the requested operation. @$pb.TagNumber(1) $1.Struct get data => $_getN(0); @$pb.TagNumber(1) - set data($1.Struct v) { setField(1, v); } + set data($1.Struct v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -326,6 +402,6 @@ class ExecuteMutationResponse extends $pb.GeneratedMessage { $core.List<$2.GraphqlError> get errors => $_getList(1); } - const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 f1f336062f51..9c325f50ba21 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: connector_service.proto @@ -8,4 +11,3 @@ // 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 - 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 13272352d5b6..3783a12e8276 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: connector_service.proto @@ -21,59 +24,77 @@ export 'connector_service.pb.dart'; @$pb.GrpcServiceName('google.firebase.dataconnect.v1beta.ConnectorService') class ConnectorServiceClient extends $grpc.Client { - static final _$executeQuery = $grpc.ClientMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( - '/google.firebase.dataconnect.v1beta.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>( + static final _$executeQuery = + $grpc.ClientMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( + '/google.firebase.dataconnect.v1beta.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.v1beta.ConnectorService/ExecuteMutation', ($0.ExecuteMutationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.ExecuteMutationResponse.fromBuffer(value)); + ($core.List<$core.int> value) => + $0.ExecuteMutationResponse.fromBuffer(value)); ConnectorServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, - interceptors: interceptors); + : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.ExecuteQueryResponse> executeQuery($0.ExecuteQueryRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.ExecuteQueryResponse> executeQuery( + $0.ExecuteQueryRequest request, + {$grpc.CallOptions? options}) { return $createUnaryCall(_$executeQuery, request, options: options); } - $grpc.ResponseFuture<$0.ExecuteMutationResponse> executeMutation($0.ExecuteMutationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.ExecuteMutationResponse> executeMutation( + $0.ExecuteMutationRequest request, + {$grpc.CallOptions? options}) { return $createUnaryCall(_$executeMutation, request, options: options); } } @$pb.GrpcServiceName('google.firebase.dataconnect.v1beta.ConnectorService') abstract class ConnectorServiceBase extends $grpc.Service { - $core.String get $name => 'google.firebase.dataconnect.v1beta.ConnectorService'; + $core.String get $name => + 'google.firebase.dataconnect.v1beta.ConnectorService'; ConnectorServiceBase() { - $addMethod($grpc.ServiceMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( - 'ExecuteQuery', - executeQuery_Pre, - false, - false, - ($core.List<$core.int> value) => $0.ExecuteQueryRequest.fromBuffer(value), - ($0.ExecuteQueryResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ExecuteMutationRequest, $0.ExecuteMutationResponse>( + $addMethod( + $grpc.ServiceMethod<$0.ExecuteQueryRequest, $0.ExecuteQueryResponse>( + 'ExecuteQuery', + executeQuery_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.ExecuteQueryRequest.fromBuffer(value), + ($0.ExecuteQueryResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.ExecuteMutationRequest, + $0.ExecuteMutationResponse>( 'ExecuteMutation', executeMutation_Pre, false, false, - ($core.List<$core.int> value) => $0.ExecuteMutationRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $0.ExecuteMutationRequest.fromBuffer(value), ($0.ExecuteMutationResponse value) => value.writeToBuffer())); } - $async.Future<$0.ExecuteQueryResponse> executeQuery_Pre($grpc.ServiceCall call, $async.Future<$0.ExecuteQueryRequest> request) async { + $async.Future<$0.ExecuteQueryResponse> executeQuery_Pre( + $grpc.ServiceCall call, + $async.Future<$0.ExecuteQueryRequest> request) async { return executeQuery(call, await request); } - $async.Future<$0.ExecuteMutationResponse> executeMutation_Pre($grpc.ServiceCall call, $async.Future<$0.ExecuteMutationRequest> request) async { + $async.Future<$0.ExecuteMutationResponse> executeMutation_Pre( + $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); + $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 2f53f3b5f04f..769fe32e855c 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: connector_service.proto @@ -18,8 +21,23 @@ const ExecuteQueryRequest$json = { '1': 'ExecuteQueryRequest', '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, - {'1': 'operation_name', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'operationName'}, - {'1': 'variables', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '8': {}, '10': 'variables'}, + { + '1': 'operation_name', + '3': 2, + '4': 1, + '5': 9, + '8': {}, + '10': 'operationName' + }, + { + '1': 'variables', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Struct', + '8': {}, + '10': 'variables' + }, ], }; @@ -34,8 +52,23 @@ const ExecuteMutationRequest$json = { '1': 'ExecuteMutationRequest', '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, - {'1': 'operation_name', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'operationName'}, - {'1': 'variables', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '8': {}, '10': 'variables'}, + { + '1': 'operation_name', + '3': 2, + '4': 1, + '5': 9, + '8': {}, + '10': 'operationName' + }, + { + '1': 'variables', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Struct', + '8': {}, + '10': 'variables' + }, ], }; @@ -49,8 +82,22 @@ final $typed_data.Uint8List executeMutationRequestDescriptor = $convert.base64De const ExecuteQueryResponse$json = { '1': 'ExecuteQueryResponse', '2': [ - {'1': 'data', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'data'}, - {'1': 'errors', '3': 2, '4': 3, '5': 11, '6': '.google.firebase.dataconnect.v1beta.GraphqlError', '10': 'errors'}, + { + '1': 'data', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Struct', + '10': 'data' + }, + { + '1': 'errors', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.firebase.dataconnect.v1beta.GraphqlError', + '10': 'errors' + }, ], }; @@ -64,8 +111,22 @@ final $typed_data.Uint8List executeQueryResponseDescriptor = $convert.base64Deco const ExecuteMutationResponse$json = { '1': 'ExecuteMutationResponse', '2': [ - {'1': 'data', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'data'}, - {'1': 'errors', '3': 2, '4': 3, '5': 11, '6': '.google.firebase.dataconnect.v1beta.GraphqlError', '10': 'errors'}, + { + '1': 'data', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Struct', + '10': 'data' + }, + { + '1': 'errors', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.firebase.dataconnect.v1beta.GraphqlError', + '10': 'errors' + }, ], }; @@ -74,4 +135,3 @@ final $typed_data.Uint8List executeMutationResponseDescriptor = $convert.base64D 'ChdFeGVjdXRlTXV0YXRpb25SZXNwb25zZRIrCgRkYXRhGAEgASgLMhcuZ29vZ2xlLnByb3RvYn' 'VmLlN0cnVjdFIEZGF0YRJICgZlcnJvcnMYAiADKAsyMC5nb29nbGUuZmlyZWJhc2UuZGF0YWNv' 'bm5lY3QudjFiZXRhLkdyYXBocWxFcnJvclIGZXJyb3Jz'); - 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 847ddda129fb..ec146e66d210 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: google/protobuf/struct.proto @@ -37,24 +40,38 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Struct', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.StructMixin.toProto3JsonHelper, fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) - ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', entryClassName: 'Struct.FieldsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: Value.create, valueDefaultOrMaker: Value.getDefault, packageName: const $pb.PackageName('google.protobuf')) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Struct', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.StructMixin.toProto3JsonHelper, + fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) + ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', + entryClassName: 'Struct.FieldsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Value.create, + valueDefaultOrMaker: Value.getDefault, + packageName: const $pb.PackageName('google.protobuf')) + ..hasRequiredFields = false; + + @$core.Deprecated('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') - Struct copyWith(void Function(Struct) updates) => super.copyWith((message) => updates(message as Struct)) as Struct; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Struct copyWith(void Function(Struct) updates) => + super.copyWith((message) => updates(message as Struct)) as Struct; $pb.BuilderInfo get info_ => _i; @@ -63,7 +80,8 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { Struct createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Struct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Struct getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Struct? _defaultInstance; /// Unordered map of dynamically typed values. @@ -72,12 +90,12 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { } enum Value_Kind { - nullValue, - numberValue, - stringValue, - boolValue, - structValue, - listValue, + nullValue, + numberValue, + stringValue, + boolValue, + structValue, + listValue, notSet } @@ -118,39 +136,53 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { 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); + 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); static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { - 1 : Value_Kind.nullValue, - 2 : Value_Kind.numberValue, - 3 : Value_Kind.stringValue, - 4 : Value_Kind.boolValue, - 5 : Value_Kind.structValue, - 6 : Value_Kind.listValue, - 0 : Value_Kind.notSet + 1: Value_Kind.nullValue, + 2: Value_Kind.numberValue, + 3: Value_Kind.stringValue, + 4: Value_Kind.boolValue, + 5: Value_Kind.structValue, + 6: Value_Kind.listValue, + 0: Value_Kind.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) ..oo(0, [1, 2, 3, 4, 5, 6]) - ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, defaultOrMaker: NullValue.NULL_VALUE, valueOf: NullValue.valueOf, enumValues: NullValue.values) - ..a<$core.double>(2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) + ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: NullValue.NULL_VALUE, + valueOf: NullValue.valueOf, + enumValues: NullValue.values) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) ..aOS(3, _omitFieldNames ? '' : 'stringValue') ..aOB(4, _omitFieldNames ? '' : 'boolValue') - ..aOM(5, _omitFieldNames ? '' : 'structValue', subBuilder: Struct.create) - ..aOM(6, _omitFieldNames ? '' : 'listValue', subBuilder: ListValue.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..aOM(5, _omitFieldNames ? '' : 'structValue', + subBuilder: Struct.create) + ..aOM(6, _omitFieldNames ? '' : 'listValue', + 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') - Value copyWith(void Function(Value) updates) => super.copyWith((message) => updates(message as Value)) as Value; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Value copyWith(void Function(Value) updates) => + super.copyWith((message) => updates(message as Value)) as Value; $pb.BuilderInfo get info_ => _i; @@ -159,7 +191,8 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Value getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Value? _defaultInstance; Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; @@ -169,7 +202,10 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(1) NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) - set nullValue(NullValue v) { setField(1, v); } + set nullValue(NullValue v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasNullValue() => $_has(0); @$pb.TagNumber(1) @@ -179,7 +215,10 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(2) $core.double get numberValue => $_getN(1); @$pb.TagNumber(2) - set numberValue($core.double v) { $_setDouble(1, v); } + set numberValue($core.double v) { + $_setDouble(1, v); + } + @$pb.TagNumber(2) $core.bool hasNumberValue() => $_has(1); @$pb.TagNumber(2) @@ -189,7 +228,10 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(3) $core.String get stringValue => $_getSZ(2); @$pb.TagNumber(3) - set stringValue($core.String v) { $_setString(2, v); } + set stringValue($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasStringValue() => $_has(2); @$pb.TagNumber(3) @@ -199,7 +241,10 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(4) $core.bool get boolValue => $_getBF(3); @$pb.TagNumber(4) - set boolValue($core.bool v) { $_setBool(3, v); } + set boolValue($core.bool v) { + $_setBool(3, v); + } + @$pb.TagNumber(4) $core.bool hasBoolValue() => $_has(3); @$pb.TagNumber(4) @@ -209,7 +254,10 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(5) Struct get structValue => $_getN(4); @$pb.TagNumber(5) - set structValue(Struct v) { setField(5, v); } + set structValue(Struct v) { + setField(5, v); + } + @$pb.TagNumber(5) $core.bool hasStructValue() => $_has(4); @$pb.TagNumber(5) @@ -221,7 +269,10 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(6) ListValue get listValue => $_getN(5); @$pb.TagNumber(6) - set listValue(ListValue v) { setField(6, v); } + set listValue(ListValue v) { + setField(6, v); + } + @$pb.TagNumber(6) $core.bool hasListValue() => $_has(5); @$pb.TagNumber(6) @@ -244,24 +295,33 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) - ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, subBuilder: Value.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.create) + ..hasRequiredFields = false; + + @$core.Deprecated('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') - ListValue copyWith(void Function(ListValue) updates) => super.copyWith((message) => updates(message as ListValue)) as ListValue; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListValue copyWith(void Function(ListValue) updates) => + super.copyWith((message) => updates(message as ListValue)) as ListValue; $pb.BuilderInfo get info_ => _i; @@ -270,7 +330,8 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { ListValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListValue getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListValue? _defaultInstance; /// Repeated field of dynamically typed values. @@ -278,6 +339,6 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { $core.List get values => $_getList(0); } - const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 bf7c57195525..3e2b412048f2 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: google/protobuf/struct.proto @@ -18,17 +21,18 @@ import 'package:protobuf/protobuf.dart' as $pb; /// /// The JSON representation for `NullValue` is JSON `null`. class NullValue extends $pb.ProtobufEnum { - static const NullValue NULL_VALUE = NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); + static const NullValue NULL_VALUE = + NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); - static const $core.List values = [ + static const $core.List values = [ NULL_VALUE, ]; - static final $core.Map<$core.int, NullValue> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, NullValue> _byValue = + $pb.ProtobufEnum.initByValue(values); static NullValue? valueOf($core.int value) => _byValue[value]; const NullValue._($core.int v, $core.String n) : super(v, n); } - const _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 ffa25fa6d680..bd599eb138ab 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: google/protobuf/struct.proto @@ -22,14 +25,21 @@ const NullValue$json = { }; /// Descriptor for `NullValue`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List nullValueDescriptor = $convert.base64Decode( - 'CglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAA'); +final $typed_data.Uint8List nullValueDescriptor = + $convert.base64Decode('CglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAA'); @$core.Deprecated('Use structDescriptor instead') const Struct$json = { '1': 'Struct', '2': [ - {'1': 'fields', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Struct.FieldsEntry', '10': 'fields'}, + { + '1': 'fields', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.protobuf.Struct.FieldsEntry', + '10': 'fields' + }, ], '3': [Struct_FieldsEntry$json], }; @@ -39,7 +49,14 @@ const Struct_FieldsEntry$json = { '1': 'FieldsEntry', '2': [ {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Value', '10': 'value'}, + { + '1': 'value', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Value', + '10': 'value' + }, ], '7': {'7': true}, }; @@ -54,12 +71,36 @@ final $typed_data.Uint8List structDescriptor = $convert.base64Decode( const Value$json = { '1': 'Value', '2': [ - {'1': 'null_value', '3': 1, '4': 1, '5': 14, '6': '.google.protobuf.NullValue', '9': 0, '10': 'nullValue'}, + { + '1': 'null_value', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.protobuf.NullValue', + '9': 0, + '10': 'nullValue' + }, {'1': 'number_value', '3': 2, '4': 1, '5': 1, '9': 0, '10': 'numberValue'}, {'1': 'string_value', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'stringValue'}, {'1': 'bool_value', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, - {'1': 'struct_value', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '9': 0, '10': 'structValue'}, - {'1': 'list_value', '3': 6, '4': 1, '5': 11, '6': '.google.protobuf.ListValue', '9': 0, '10': 'listValue'}, + { + '1': 'struct_value', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.protobuf.Struct', + '9': 0, + '10': 'structValue' + }, + { + '1': 'list_value', + '3': 6, + '4': 1, + '5': 11, + '6': '.google.protobuf.ListValue', + '9': 0, + '10': 'listValue' + }, ], '8': [ {'1': 'kind'}, @@ -79,7 +120,14 @@ final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( const ListValue$json = { '1': 'ListValue', '2': [ - {'1': 'values', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Value', '10': 'values'}, + { + '1': 'values', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.protobuf.Value', + '10': 'values' + }, ], }; @@ -87,4 +135,3 @@ const ListValue$json = { final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode( 'CglMaXN0VmFsdWUSLgoGdmFsdWVzGAEgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgZ2YW' 'x1ZXM='); - 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 a8e0b96a7f2f..347c48750785 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: graphql_error.proto @@ -49,36 +52,49 @@ class GraphqlError extends $pb.GeneratedMessage { 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); + 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); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GraphqlError', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GraphqlError', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') - ..pc(2, _omitFieldNames ? '' : 'locations', $pb.PbFieldType.PM, subBuilder: SourceLocation.create) - ..aOM<$1.ListValue>(3, _omitFieldNames ? '' : 'path', subBuilder: $1.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') + ..pc( + 2, _omitFieldNames ? '' : 'locations', $pb.PbFieldType.PM, + subBuilder: SourceLocation.create) + ..aOM<$1.ListValue>(3, _omitFieldNames ? '' : 'path', + subBuilder: $1.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') - GraphqlError copyWith(void Function(GraphqlError) updates) => super.copyWith((message) => updates(message as GraphqlError)) as GraphqlError; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GraphqlError copyWith(void Function(GraphqlError) updates) => + super.copyWith((message) => updates(message as GraphqlError)) + as GraphqlError; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlError create() => GraphqlError._(); GraphqlError createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GraphqlError getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GraphqlError getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GraphqlError? _defaultInstance; /// The detailed error message. @@ -87,7 +103,10 @@ 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 v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) @@ -115,7 +134,10 @@ class GraphqlError extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.ListValue get path => $_getN(2); @$pb.TagNumber(3) - set path($1.ListValue v) { setField(3, v); } + set path($1.ListValue v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasPath() => $_has(2); @$pb.TagNumber(3) @@ -127,7 +149,10 @@ class GraphqlError extends $pb.GeneratedMessage { @$pb.TagNumber(4) GraphqlErrorExtensions get extensions => $_getN(3); @$pb.TagNumber(4) - set extensions(GraphqlErrorExtensions v) { setField(4, v); } + set extensions(GraphqlErrorExtensions v) { + setField(4, v); + } + @$pb.TagNumber(4) $core.bool hasExtensions() => $_has(3); @$pb.TagNumber(4) @@ -152,41 +177,53 @@ class SourceLocation extends $pb.GeneratedMessage { 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); + 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); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SourceLocation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceLocation', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) ..a<$core.int>(2, _omitFieldNames ? '' : 'column', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$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') - SourceLocation copyWith(void Function(SourceLocation) updates) => super.copyWith((message) => updates(message as SourceLocation)) as SourceLocation; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SourceLocation copyWith(void Function(SourceLocation) updates) => + super.copyWith((message) => updates(message as SourceLocation)) + as SourceLocation; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SourceLocation create() => SourceLocation._(); SourceLocation createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SourceLocation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SourceLocation getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SourceLocation? _defaultInstance; /// Line number starting at 1. @$pb.TagNumber(1) $core.int get line => $_getIZ(0); @$pb.TagNumber(1) - set line($core.int v) { $_setSignedInt32(0, v); } + set line($core.int v) { + $_setSignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasLine() => $_has(0); @$pb.TagNumber(1) @@ -196,7 +233,10 @@ class SourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get column => $_getIZ(1); @$pb.TagNumber(2) - set column($core.int v) { $_setSignedInt32(1, v); } + set column($core.int v) { + $_setSignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasColumn() => $_has(1); @$pb.TagNumber(2) @@ -217,33 +257,44 @@ class GraphqlErrorExtensions extends $pb.GeneratedMessage { 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); + 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); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GraphqlErrorExtensions', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GraphqlErrorExtensions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), + createEmptyInstance: create) ..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') - GraphqlErrorExtensions copyWith(void Function(GraphqlErrorExtensions) updates) => super.copyWith((message) => updates(message as GraphqlErrorExtensions)) as GraphqlErrorExtensions; + ..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') + GraphqlErrorExtensions copyWith( + void Function(GraphqlErrorExtensions) updates) => + super.copyWith((message) => updates(message as GraphqlErrorExtensions)) + as GraphqlErrorExtensions; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GraphqlErrorExtensions create() => GraphqlErrorExtensions._(); GraphqlErrorExtensions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GraphqlErrorExtensions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GraphqlErrorExtensions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GraphqlErrorExtensions? _defaultInstance; /// The source file name where the error occurred. @@ -252,13 +303,16 @@ 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 v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasFile() => $_has(0); @$pb.TagNumber(1) void clearFile() => clearField(1); } - const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 a5f5593bbf79..89f564e70ece 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: graphql_error.proto @@ -8,4 +11,3 @@ // 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 - 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 89890d137729..403ca5b7ad69 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,3 +1,6 @@ +// Copyright 2024, the Chromium project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. // // Generated code. Do not modify. // source: graphql_error.proto @@ -18,9 +21,30 @@ const GraphqlError$json = { '1': 'GraphqlError', '2': [ {'1': 'message', '3': 1, '4': 1, '5': 9, '10': 'message'}, - {'1': 'locations', '3': 2, '4': 3, '5': 11, '6': '.google.firebase.dataconnect.v1beta.SourceLocation', '10': 'locations'}, - {'1': 'path', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.ListValue', '10': 'path'}, - {'1': 'extensions', '3': 4, '4': 1, '5': 11, '6': '.google.firebase.dataconnect.v1beta.GraphqlErrorExtensions', '10': 'extensions'}, + { + '1': 'locations', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.firebase.dataconnect.v1beta.SourceLocation', + '10': 'locations' + }, + { + '1': 'path', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.ListValue', + '10': 'path' + }, + { + '1': 'extensions', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.firebase.dataconnect.v1beta.GraphqlErrorExtensions', + '10': 'extensions' + }, ], }; @@ -55,6 +79,6 @@ const GraphqlErrorExtensions$json = { }; /// Descriptor for `GraphqlErrorExtensions`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List graphqlErrorExtensionsDescriptor = $convert.base64Decode( - 'ChZHcmFwaHFsRXJyb3JFeHRlbnNpb25zEhIKBGZpbGUYASABKAlSBGZpbGU='); - +final $typed_data.Uint8List graphqlErrorExtensionsDescriptor = + $convert.base64Decode( + 'ChZHcmFwaHFsRXJyb3JFeHRlbnNpb25zEhIKBGZpbGUYASABKAlSBGZpbGU=');