[
https://issues.apache.org/jira/browse/BEAM-12953?focusedWorklogId=659030&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-659030
]
ASF GitHub Bot logged work on BEAM-12953:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 01/Oct/21 15:32
Start Date: 01/Oct/21 15:32
Worklog Time Spent: 10m
Work Description: damondouglas commented on a change in pull request
#15614:
URL: https://github.com/apache/beam/pull/15614#discussion_r720346034
##########
File path: playground/proto/playground.proto
##########
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+syntax = "proto3";
+
+option go_package= "backend/pkg/api";
+package proto;
+
+enum Sdk {
+ JAVA = 0;
+ GO = 1;
+ PYTHON = 2;
+ SCIO = 3;
+}
+
+// CodeInfo represents a code text and options of SDK which executes the code.
+
+message RunCodeObject {
+ string code = 1;
+ Sdk SDK = 2;
+}
+
+// PipelineInfo contains information of the pipeline id.
+
+message PipelineMeta {
+ int32 pipeline_id = 1;
+}
+
+enum status {
+ SDK_UNSPECIFIED = 0;
+ SDK_EXECUTING = 1;
+ SDK_FINISHED = 2;
+ SDK_ERROR = 3;
+}
+
+// RunOutputResponse represents the result of the compiled and/or executed
code.
+
+message RunOutputResponse {
+ string output = 1;
+ status compilation_status = 2;
+}
+
+message CompileOutputResponse {
+ string output = 1;
+ status compilation_status = 2;
+}
+
+// StatusInfo contains information about the status of the code execution.
+
+message StatusResponse {
+
+ status status = 1;
+}
+
+service PlaygroundService {
+
+ // Submit the job for an execution and get the pipeline id.
+ rpc RunCode(RunCodeObject) returns (PipelineMeta);
Review comment:
For each of these methods, may we follow this naming convention?
```
rpc <Verb>(<Verb>Request) returns (<Verb>Response);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 659030)
Time Spent: 1h 50m (was: 1h 40m)
> [Playground] Create protobuf file for front-back communication
> --------------------------------------------------------------
>
> Key: BEAM-12953
> URL: https://issues.apache.org/jira/browse/BEAM-12953
> Project: Beam
> Issue Type: Sub-task
> Components: beam-playground
> Reporter: Daria Malkova
> Assignee: Pavel Avilov
> Priority: P3
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Write the *.proto file depends on what we need to have to be able to
> communicate between front and back.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)