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/movies.dart b/packages/firebase_data_connect/firebase_data_connect/example/lib/generated/movies.dart index b8bb12526357..830b0effced0 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 @@ -13,6 +13,8 @@ part 'add_person.dart'; part 'add_director_to_movie.dart'; +part 'seed_movies.dart'; + part 'create_movie.dart'; part 'delete_movie.dart'; @@ -38,6 +40,10 @@ class MoviesConnector { return AddDirectorToMovie(dataConnect: dataConnect); } + SeedMovies get seedMovies { + return SeedMovies(dataConnect: dataConnect); + } + CreateMovie get createMovie { return CreateMovie(dataConnect: 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/generated/connector_service.pb.dart b/packages/firebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pb.dart index b062eb1bf50d..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,7 +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 @@ -50,7 +49,7 @@ class ExecuteQueryRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteQueryRequest', package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..aOS(2, _omitFieldNames ? '' : 'operationName') @@ -161,7 +160,7 @@ class ExecuteMutationRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteMutationRequest', package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..aOS(2, _omitFieldNames ? '' : 'operationName') @@ -270,7 +269,7 @@ class ExecuteQueryResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteQueryResponse', package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) @@ -349,7 +348,7 @@ class ExecuteMutationResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ExecuteMutationResponse', package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOM<$1.Struct>(1, _omitFieldNames ? '' : 'data', subBuilder: $1.Struct.create) 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..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,7 +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 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..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,7 +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 @@ -23,25 +22,26 @@ 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 { - 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', + '/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.v1alpha.ConnectorService/ExecuteMutation', + '/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); + $grpc.ResponseFuture<$0.ExecuteQueryResponse> executeQuery( $0.ExecuteQueryRequest request, {$grpc.CallOptions? options}) { @@ -55,8 +55,11 @@ class ConnectorServiceClient extends $grpc.Client { } } -@$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>( @@ -77,8 +80,6 @@ abstract class ConnectorServiceBase extends $grpc.Service { $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, 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..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,7 +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 @@ -96,7 +95,7 @@ const ExecuteQueryResponse$json = { '3': 2, '4': 3, '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.GraphqlError', + '6': '.google.firebase.dataconnect.v1beta.GraphqlError', '10': 'errors' }, ], @@ -105,8 +104,8 @@ const ExecuteQueryResponse$json = { /// 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 = { @@ -125,7 +124,7 @@ const ExecuteMutationResponse$json = { '3': 2, '4': 3, '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.GraphqlError', + '6': '.google.firebase.dataconnect.v1beta.GraphqlError', '10': 'errors' }, ], @@ -134,5 +133,5 @@ const ExecuteMutationResponse$json = { /// 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..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,7 +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 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..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,7 +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 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..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,7 +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 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..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,7 +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 @@ -63,7 +62,7 @@ class GraphqlError extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GraphqlError', package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') ..pc( @@ -188,7 +187,7 @@ class SourceLocation extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'SourceLocation', package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), + _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) @@ -268,7 +267,7 @@ class GraphqlErrorExtensions extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GraphqlErrorExtensions', package: const $pb.PackageName( - _omitMessageNames ? '' : 'google.firebase.dataconnect.v1alpha'), + _omitMessageNames ? '' : 'google.firebase.dataconnect.v1beta'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'file') ..hasRequiredFields = false; 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..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,7 +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 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..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,7 +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 @@ -27,7 +26,7 @@ const GraphqlError$json = { '3': 2, '4': 3, '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.SourceLocation', + '6': '.google.firebase.dataconnect.v1beta.SourceLocation', '10': 'locations' }, { @@ -43,7 +42,7 @@ const GraphqlError$json = { '3': 4, '4': 1, '5': 11, - '6': '.google.firebase.dataconnect.v1alpha.GraphqlErrorExtensions', + '6': '.google.firebase.dataconnect.v1beta.GraphqlErrorExtensions', '10': 'extensions' }, ], @@ -51,11 +50,11 @@ const GraphqlError$json = { /// 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 = { 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/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"; 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', ); });