Skip to content

Commit

Permalink
make workflow parameter title optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkTNO committed Jun 27, 2024
1 parent 7ddd168 commit dd9e09a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
16 changes: 8 additions & 8 deletions python/src/omotes_sdk_protocol/workflow_pb2.py

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

8 changes: 5 additions & 3 deletions python/src/omotes_sdk_protocol/workflow_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,21 @@ class WorkflowParameter(google.protobuf.message.Message):
self,
*,
key_name: builtins.str = ...,
title: builtins.str = ...,
title: builtins.str | None = ...,
description: builtins.str | None = ...,
string_parameter: global___StringParameter | None = ...,
boolean_parameter: global___BooleanParameter | None = ...,
integer_parameter: global___IntegerParameter | None = ...,
float_parameter: global___FloatParameter | None = ...,
datetime_parameter: global___DateTimeParameter | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["_description", b"_description", "boolean_parameter", b"boolean_parameter", "datetime_parameter", b"datetime_parameter", "description", b"description", "float_parameter", b"float_parameter", "integer_parameter", b"integer_parameter", "parameter_type", b"parameter_type", "string_parameter", b"string_parameter"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["_description", b"_description", "boolean_parameter", b"boolean_parameter", "datetime_parameter", b"datetime_parameter", "description", b"description", "float_parameter", b"float_parameter", "integer_parameter", b"integer_parameter", "key_name", b"key_name", "parameter_type", b"parameter_type", "string_parameter", b"string_parameter", "title", b"title"]) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["_description", b"_description", "_title", b"_title", "boolean_parameter", b"boolean_parameter", "datetime_parameter", b"datetime_parameter", "description", b"description", "float_parameter", b"float_parameter", "integer_parameter", b"integer_parameter", "parameter_type", b"parameter_type", "string_parameter", b"string_parameter", "title", b"title"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["_description", b"_description", "_title", b"_title", "boolean_parameter", b"boolean_parameter", "datetime_parameter", b"datetime_parameter", "description", b"description", "float_parameter", b"float_parameter", "integer_parameter", b"integer_parameter", "key_name", b"key_name", "parameter_type", b"parameter_type", "string_parameter", b"string_parameter", "title", b"title"]) -> None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing_extensions.Literal["_description", b"_description"]) -> typing_extensions.Literal["description"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing_extensions.Literal["_title", b"_title"]) -> typing_extensions.Literal["title"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing_extensions.Literal["parameter_type", b"parameter_type"]) -> typing_extensions.Literal["string_parameter", "boolean_parameter", "integer_parameter", "float_parameter", "datetime_parameter"] | None: ...

global___WorkflowParameter = WorkflowParameter
Expand Down
2 changes: 1 addition & 1 deletion src/workflow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ message DateTimeParameter {

message WorkflowParameter {
string key_name = 1;
string title = 2;
optional string title = 2;
optional string description = 3;
oneof parameter_type {
StringParameter string_parameter = 4;
Expand Down

0 comments on commit dd9e09a

Please sign in to comment.