Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update protos use V1 server api #45

Merged
merged 2 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 5 additions & 23 deletions Protos/connector_service.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -16,42 +16,24 @@
//adopted from third_party/firebase/dataconnect/emulator/server/api/connector_service.proto
syntax = "proto3";

package google.firebase.dataconnect.v1beta;
package google.firebase.dataconnect.v1;

import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/protobuf/struct.proto";
import "graphql_error.proto";

option java_package = "com.google.firebase.dataconnect.v1beta";
option java_package = "com.google.firebase.dataconnect.v1";
option java_multiple_files = true;
option java_outer_classname = "ConnectorServiceProto";

service ConnectorService {
// Execute a predefined query in a Connector.
rpc ExecuteQuery(ExecuteQueryRequest) returns (ExecuteQueryResponse) {
option (google.api.http) = {
post: "/v1alpha/{name=projects/*/locations/*/services/*/connectors/*}:executeQuery"
body: "*"
additional_bindings {
post: "/v1beta/{name=projects/*/locations/*/services/*/connectors/*}:executeQuery"
body: "*"
}
};
}
rpc ExecuteQuery(ExecuteQueryRequest) returns (ExecuteQueryResponse) {}

// Execute a predefined mutation in a Connector.
rpc ExecuteMutation(ExecuteMutationRequest)
returns (ExecuteMutationResponse) {
option (google.api.http) = {
post: "/v1alpha/{name=projects/*/locations/*/services/*/connectors/*}:executeMutation"
body: "*"
additional_bindings {
post: "/v1beta/{name=projects/*/locations/*/services/*/connectors/*}:executeMutation"
body: "*"
}
};
}
returns (ExecuteMutationResponse) {}
}

// The ExecuteQuery request to Firebase Data Connect.
Expand Down
6 changes: 3 additions & 3 deletions Protos/graphql_error.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -16,11 +16,11 @@

syntax = "proto3";

package google.firebase.dataconnect.v1beta;
package google.firebase.dataconnect.v1;

import "google/protobuf/struct.proto";

option java_package = "com.google.firebase.dataconnect.v1beta";
option java_package = "com.google.firebase.dataconnect.v1";
option java_multiple_files = true;
option java_outer_classname = "GraphqlErrorProto";

Expand Down
4 changes: 2 additions & 2 deletions Sources/Internal/Codec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import SwiftProtobuf

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
typealias FirebaseDataConnectExecuteMutationRequest =
Google_Firebase_Dataconnect_V1beta_ExecuteMutationRequest
Google_Firebase_Dataconnect_V1_ExecuteMutationRequest
typealias FirebaseDataConnectExecuteQueryRequest =
Google_Firebase_Dataconnect_V1beta_ExecuteQueryRequest
Google_Firebase_Dataconnect_V1_ExecuteQueryRequest

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
class Codec {
Expand Down
4 changes: 2 additions & 2 deletions Sources/Internal/GrpcClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import SwiftProtobuf

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
typealias FirebaseDataConnectAsyncClient =
Google_Firebase_Dataconnect_V1beta_ConnectorServiceAsyncClient
typealias FirebaseDataConnectGraphqlError = Google_Firebase_Dataconnect_V1beta_GraphqlError
Google_Firebase_Dataconnect_V1_ConnectorServiceAsyncClient
typealias FirebaseDataConnectGraphqlError = Google_Firebase_Dataconnect_V1_GraphqlError

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
actor GrpcClient: CustomStringConvertible {
Expand Down
Loading
Loading