1616//adopted from third_party/firebase/dataconnect/emulator/server/api/connector_service.proto 
1717syntax  =  "proto3" ;
1818
19- package  google.firebase.dataconnect.v1alpha  ;
19+ package  google.firebase.dataconnect.v1beta  ;
2020
2121import  "google/api/annotations.proto" ;
2222import  "google/api/field_behavior.proto" ;
2323import  "google/protobuf/struct.proto" ;
2424import  "graphql_error.proto" ;
2525
26- option  java_package  =  "com.google.firebase.dataconnect.v1alpha " ;
26+ option  java_package  =  "com.google.firebase.dataconnect.v1beta " ;
2727option  java_multiple_files  =  true ;
2828option  java_outer_classname  =  "ConnectorServiceProto" ;
2929
30- 
31- // Firebase Data Connect provides means to deploy a set of predefined GraphQL 
32- // operations (queries and mutations) as a Connector. 
33- // 
34- // Firebase developers can build mobile and web apps that uses Connectors 
35- // to access Data Sources directly. Connectors allow operations without 
36- // admin credentials and help Firebase customers control the API exposure. 
37- // 
38- // Note: `ConnectorService` doesn't check IAM permissions and instead developers 
39- // must define auth policies on each pre-defined operation to secure this 
40- // connector. The auth policies typically define rules on the Firebase Auth 
41- // token. 
4230service  ConnectorService  {
4331  // Execute a predefined query in a Connector. 
4432  rpc  ExecuteQuery (ExecuteQueryRequest ) returns  (ExecuteQueryResponse ) {
4533    option  (google.api.http )  =  {
4634      post : "/v1alpha/{name=projects/*/locations/*/services/*/connectors/*}:executeQuery" 
4735      body : "*" 
36+       additional_bindings {
37+         post : "/v1beta/{name=projects/*/locations/*/services/*/connectors/*}:executeQuery" 
38+         body : "*" 
39+       }
4840    };
4941  }
5042
@@ -54,6 +46,10 @@ service ConnectorService {
5446    option  (google.api.http )  =  {
5547      post : "/v1alpha/{name=projects/*/locations/*/services/*/connectors/*}:executeMutation" 
5648      body : "*" 
49+       additional_bindings {
50+         post : "/v1beta/{name=projects/*/locations/*/services/*/connectors/*}:executeMutation" 
51+         body : "*" 
52+       }
5753    };
5854  }
5955}
@@ -65,9 +61,7 @@ message ExecuteQueryRequest {
6561  // ``` 
6662  // projects/{project}/locations/{location}/services/{service}/connectors/{connector} 
6763  // ``` 
68-   string  name  =  1  [
69-     (google.api.field_behavior )  = REQUIRED 
70-   ];
64+   string  name  =  1  [(google.api.field_behavior )  = REQUIRED ];
7165
7266  // The name of the GraphQL operation name. 
7367  // Required because all Connector operations must be named. 
@@ -87,9 +81,7 @@ message ExecuteMutationRequest {
8781  // ``` 
8882  // projects/{project}/locations/{location}/services/{service}/connectors/{connector} 
8983  // ``` 
90-   string  name  =  1  [
91-     (google.api.field_behavior )  = REQUIRED 
92-   ];
84+   string  name  =  1  [(google.api.field_behavior )  = REQUIRED ];
9385
9486  // The name of the GraphQL operation name. 
9587  // Required because all Connector operations must be named. 
0 commit comments