Skip to content

Commit

Permalink
Merge pull request #7 from Project-OMOTES/6-esdl-should-be-a-str-and-…
Browse files Browse the repository at this point in the history
…not-bytes

6: ESDL should be a str and not bool.
  • Loading branch information
WouterSpaak authored Feb 23, 2024
2 parents db7bb8c + 78d42cf commit 1445677
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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.

10 changes: 6 additions & 4 deletions python/src/omotes_sdk_protocol/job_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ class JobSubmission(google.protobuf.message.Message):
uuid: builtins.str
timeout_ms: builtins.int
workflow_type: builtins.str
esdl: builtins.bytes
esdl: builtins.str
"""Raw XML string"""
def __init__(
self,
*,
uuid: builtins.str = ...,
timeout_ms: builtins.int | None = ...,
workflow_type: builtins.str = ...,
esdl: builtins.bytes = ...,
esdl: builtins.str = ...,
) -> 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: ...
Expand Down Expand Up @@ -67,14 +68,15 @@ class JobResult(google.protobuf.message.Message):
LOGS_FIELD_NUMBER: builtins.int
uuid: builtins.str
result_type: global___JobResult.ResultType.ValueType
output_esdl: builtins.bytes
output_esdl: builtins.str
"""Raw XML string"""
logs: builtins.str
def __init__(
self,
*,
uuid: builtins.str = ...,
result_type: global___JobResult.ResultType.ValueType = ...,
output_esdl: builtins.bytes | None = ...,
output_esdl: builtins.str | None = ...,
logs: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["_output_esdl", b"_output_esdl", "output_esdl", b"output_esdl"]) -> builtins.bool: ...
Expand Down
4 changes: 2 additions & 2 deletions src/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ message JobSubmission {
string uuid = 1;
optional uint32 timeout_ms = 2;
string workflow_type = 3;
bytes esdl = 4;
string esdl = 4; // Raw XML string
}

message JobResult {
string uuid = 1;
ResultType result_type = 2;
optional bytes output_esdl = 3;
optional string output_esdl = 3; // Raw XML string
string logs = 4;

enum ResultType {
Expand Down

0 comments on commit 1445677

Please sign in to comment.