Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
},
"RunQuery": {
"methods": ["runQuery", "runQueryCallable"]
},
"Execute": {
"methods": ["execute", "executeCallable"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ option ruby_package = "Google::Cloud::Datastore::V1";
// the request.
//
service Datastore {
// Execute multiple Datastore requests. Requests translate into one or more
// responses. Errors are explicitly represented in DatastoreResponse.
rpc Execute(stream DatastoreRequest) returns (stream DatastoreResponse) {
option (google.api.http) = {
post: "/v1beta3/projects/{project_id}:execute"
body: "*"
};
option (google.api.routing) = {
routing_parameters: [ { field: "project_id" }, { field: "database_id" } ]
};

// We use stubby2 from DFE to DBE - these are based on our
// 10MB maximum request size and 2MB maximum response size:
option legacy_client_initial_tokens = 23068672; // 22MB
option legacy_server_initial_tokens = 6291456; // 6MB
option legacy_token_unit = BYTE;
}

option (google.api.default_host) = "datastore.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform,"
Expand Down