Skip to content

Commit

Permalink
Merge pull request #9 from Project-OMOTES/8-add-job_config-with-non-e…
Browse files Browse the repository at this point in the history
…sdl-parameters

add params_dict
  • Loading branch information
MarkTNO authored Mar 5, 2024
2 parents 1445677 + 4b2ddf3 commit 1729a45
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
31 changes: 16 additions & 15 deletions python/src/omotes_sdk_protocol/job_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions python/src/omotes_sdk_protocol/job_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import google.protobuf.struct_pb2
import sys
import typing

Expand All @@ -24,21 +25,25 @@ class JobSubmission(google.protobuf.message.Message):
TIMEOUT_MS_FIELD_NUMBER: builtins.int
WORKFLOW_TYPE_FIELD_NUMBER: builtins.int
ESDL_FIELD_NUMBER: builtins.int
PARAMS_DICT_FIELD_NUMBER: builtins.int
uuid: builtins.str
timeout_ms: builtins.int
workflow_type: builtins.str
esdl: builtins.str
"""Raw XML string"""
@property
def params_dict(self) -> google.protobuf.struct_pb2.Struct: ...
def __init__(
self,
*,
uuid: builtins.str = ...,
timeout_ms: builtins.int | None = ...,
workflow_type: builtins.str = ...,
esdl: builtins.str = ...,
params_dict: google.protobuf.struct_pb2.Struct | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["_timeout_ms", b"_timeout_ms", "timeout_ms", b"timeout_ms"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["_timeout_ms", b"_timeout_ms", "esdl", b"esdl", "timeout_ms", b"timeout_ms", "uuid", b"uuid", "workflow_type", b"workflow_type"]) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["_timeout_ms", b"_timeout_ms", "params_dict", b"params_dict", "timeout_ms", b"timeout_ms"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["_timeout_ms", b"_timeout_ms", "esdl", b"esdl", "params_dict", b"params_dict", "timeout_ms", b"timeout_ms", "uuid", b"uuid", "workflow_type", b"workflow_type"]) -> None: ...
def WhichOneof(self, oneof_group: typing_extensions.Literal["_timeout_ms", b"_timeout_ms"]) -> typing_extensions.Literal["timeout_ms"] | None: ...

global___JobSubmission = JobSubmission
Expand Down
2 changes: 2 additions & 0 deletions src/job.proto
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
syntax = "proto3";
import "google/protobuf/struct.proto";

message JobSubmission {
string uuid = 1;
optional uint32 timeout_ms = 2;
string workflow_type = 3;
string esdl = 4; // Raw XML string
google.protobuf.Struct params_dict = 5;
}

message JobResult {
Expand Down

0 comments on commit 1729a45

Please sign in to comment.