-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
043029e
commit 03840fe
Showing
21 changed files
with
1,816 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
syntax = "proto3"; | ||
|
||
package tateyama.proto.session.diagnostic; | ||
|
||
// the error code. | ||
enum ErrorCode { | ||
// the error code is not set. | ||
ERROR_CODE_NOT_SPECIFIED = 0; | ||
|
||
// the unknown error was occurred. | ||
UNKNOWN = 1; | ||
|
||
// the target session is not found. | ||
SESSION_NOT_FOUND = 2; | ||
|
||
// the session label is not unique within the target sessions. | ||
SESSION_AMBIGUOUS = 3; | ||
|
||
// the operation was not permitted. | ||
OPERATION_NOT_PERMITTED = 4; | ||
|
||
// the target session variable is not declared. | ||
SESSION_VARIABLE_NOT_DECLARED = 5; | ||
|
||
// the setting value is invalid for the target variable. | ||
SESSION_VARIABLE_INVALID_VALUE = 6; | ||
} | ||
|
||
// the error information of the session control operations. | ||
message Error { | ||
// the error code. | ||
ErrorCode error_code = 1; | ||
|
||
// the error message (optional). | ||
string message = 2; | ||
|
||
// the error message code (optional). | ||
string message_code = 3; | ||
|
||
// the arguments for the message code (optional). | ||
repeated string message_arguments = 4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
syntax = "proto3"; | ||
|
||
package tateyama.proto.session.request; | ||
|
||
// the request message to session pseudo service. | ||
message Request { | ||
// service message version (major) | ||
uint64 service_message_version_major = 1; | ||
|
||
// service message version (minor) | ||
uint64 service_message_version_minor = 2; | ||
|
||
// reserved for system use | ||
reserved 3 to 10; | ||
|
||
// the request command. | ||
oneof command { | ||
// obtains session information. | ||
SessionGet session_get = 11; | ||
|
||
// obtains list of active sessions. | ||
SessionList session_list = 12; | ||
|
||
// request shutdown to the session. | ||
SessionShutdown session_shutdown = 13; | ||
|
||
// set session variables. | ||
SessionSetVariable session_set_variable = 14; | ||
|
||
// retrieve session variables. | ||
SessionGetVariable session_get_variable= 15; | ||
} | ||
reserved 16 to 99; | ||
} | ||
|
||
|
||
// obtains session information. | ||
message SessionGet { | ||
|
||
// the target session specifier - ID or label. | ||
string session_specifier = 1; | ||
} | ||
|
||
|
||
// obtains list of active sessions. | ||
message SessionList { | ||
// no special properties. | ||
} | ||
|
||
|
||
// represents kind of shutdown request. | ||
enum SessionShutdownType { | ||
|
||
// the shutdown request type is not set (default behavior). | ||
SESSION_SHUTDOWN_TYPE_NOT_SET = 0; | ||
|
||
// denies new requests, and shutdown the session after the all running requests were finished. | ||
GRACEFUL = 1; | ||
|
||
// denies new requests, tells cancellation to the running requests, | ||
// and then shutdown the session after the all requests were finished or cancelled. | ||
FORCEFUL = 2; | ||
} | ||
|
||
// request shutdown to the session. | ||
message SessionShutdown { | ||
|
||
// the target session specifier - ID or label. | ||
string session_specifier = 1; | ||
|
||
// the shutdown request type. | ||
SessionShutdownType request_type = 2; | ||
} | ||
|
||
|
||
// set session variables. | ||
message SessionSetVariable { | ||
|
||
// the target session specifier - ID or label. | ||
string session_specifier = 1; | ||
|
||
// the target variable name, case insensitive. | ||
string name = 2; | ||
|
||
// the text represented value to set. | ||
string value = 3; | ||
} | ||
|
||
|
||
// retrieve session variables. | ||
message SessionGetVariable { | ||
|
||
// the target session specifier - ID or label. | ||
string session_specifier = 1; | ||
|
||
// the target variable name, case insensitive. | ||
string name = 2; | ||
} |
Oops, something went wrong.