Skip to content

Commit 02d82ac

Browse files
Update protos use V1 server api (#45)
1 parent 5f22050 commit 02d82ac

File tree

7 files changed

+164
-187
lines changed

7 files changed

+164
-187
lines changed

Protos/connector_service.proto

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,42 +16,24 @@
1616
//adopted from third_party/firebase/dataconnect/emulator/server/api/connector_service.proto
1717
syntax = "proto3";
1818

19-
package google.firebase.dataconnect.v1beta;
19+
package google.firebase.dataconnect.v1;
2020

2121
import "google/api/annotations.proto";
2222
import "google/api/field_behavior.proto";
2323
import "google/protobuf/struct.proto";
2424
import "graphql_error.proto";
2525

26-
option java_package = "com.google.firebase.dataconnect.v1beta";
26+
option java_package = "com.google.firebase.dataconnect.v1";
2727
option java_multiple_files = true;
2828
option java_outer_classname = "ConnectorServiceProto";
2929

3030
service ConnectorService {
3131
// Execute a predefined query in a Connector.
32-
rpc ExecuteQuery(ExecuteQueryRequest) returns (ExecuteQueryResponse) {
33-
option (google.api.http) = {
34-
post: "/v1alpha/{name=projects/*/locations/*/services/*/connectors/*}:executeQuery"
35-
body: "*"
36-
additional_bindings {
37-
post: "/v1beta/{name=projects/*/locations/*/services/*/connectors/*}:executeQuery"
38-
body: "*"
39-
}
40-
};
41-
}
32+
rpc ExecuteQuery(ExecuteQueryRequest) returns (ExecuteQueryResponse) {}
4233

4334
// Execute a predefined mutation in a Connector.
4435
rpc ExecuteMutation(ExecuteMutationRequest)
45-
returns (ExecuteMutationResponse) {
46-
option (google.api.http) = {
47-
post: "/v1alpha/{name=projects/*/locations/*/services/*/connectors/*}:executeMutation"
48-
body: "*"
49-
additional_bindings {
50-
post: "/v1beta/{name=projects/*/locations/*/services/*/connectors/*}:executeMutation"
51-
body: "*"
52-
}
53-
};
54-
}
36+
returns (ExecuteMutationResponse) {}
5537
}
5638

5739
// The ExecuteQuery request to Firebase Data Connect.

Protos/graphql_error.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,11 +16,11 @@
1616

1717
syntax = "proto3";
1818

19-
package google.firebase.dataconnect.v1beta;
19+
package google.firebase.dataconnect.v1;
2020

2121
import "google/protobuf/struct.proto";
2222

23-
option java_package = "com.google.firebase.dataconnect.v1beta";
23+
option java_package = "com.google.firebase.dataconnect.v1";
2424
option java_multiple_files = true;
2525
option java_outer_classname = "GraphqlErrorProto";
2626

Sources/Internal/Codec.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import SwiftProtobuf
1818

1919
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2020
typealias FirebaseDataConnectExecuteMutationRequest =
21-
Google_Firebase_Dataconnect_V1beta_ExecuteMutationRequest
21+
Google_Firebase_Dataconnect_V1_ExecuteMutationRequest
2222
typealias FirebaseDataConnectExecuteQueryRequest =
23-
Google_Firebase_Dataconnect_V1beta_ExecuteQueryRequest
23+
Google_Firebase_Dataconnect_V1_ExecuteQueryRequest
2424

2525
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2626
class Codec {

Sources/Internal/GrpcClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import SwiftProtobuf
2727

2828
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
2929
typealias FirebaseDataConnectAsyncClient =
30-
Google_Firebase_Dataconnect_V1beta_ConnectorServiceAsyncClient
31-
typealias FirebaseDataConnectGraphqlError = Google_Firebase_Dataconnect_V1beta_GraphqlError
30+
Google_Firebase_Dataconnect_V1_ConnectorServiceAsyncClient
31+
typealias FirebaseDataConnectGraphqlError = Google_Firebase_Dataconnect_V1_GraphqlError
3232

3333
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
3434
actor GrpcClient: CustomStringConvertible {

0 commit comments

Comments
 (0)