Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indentation to use spaces (instead of a mix of tabs and spaces) #121

Merged
merged 1 commit into from
Jun 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 46 additions & 46 deletions pkg/api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ syntax = "proto3";
package api;

service Manager {
rpc CreateStudy(CreateStudyRequest) returns (CreateStudyReply);
rpc StopStudy(StopStudyRequest) returns (StopStudyReply);
rpc GetStudy(GetStudyRequest) returns (GetStudyReply);
rpc GetStudyList(GetStudyListRequest) returns (GetStudyListReply);
rpc CreateStudy(CreateStudyRequest) returns (CreateStudyReply);
rpc StopStudy(StopStudyRequest) returns (StopStudyReply);
rpc GetStudy(GetStudyRequest) returns (GetStudyReply);
rpc GetStudyList(GetStudyListRequest) returns (GetStudyListReply);
rpc CreateTrial(CreateTrialRequest) returns (CreateTrialReply);
rpc GetTrials(GetTrialsRequest) returns (GetTrialsReply);
rpc RunTrial(RunTrialRequest) returns (RunTrialReply);
Expand Down Expand Up @@ -36,21 +36,21 @@ service EarlyStopping {
}

enum ParameterType {
// Not used
UNKNOWN_TYPE = 0;
// Not used
UNKNOWN_TYPE = 0;

DOUBLE = 1;
INT = 2;
DISCRETE = 3;
CATEGORICAL = 4;
DOUBLE = 1;
INT = 2;
DISCRETE = 3;
CATEGORICAL = 4;
}

enum OptimizationType {
// Not used
UNKNOWN_OPTIMIZATION = 0;
// Not used
UNKNOWN_OPTIMIZATION = 0;

MINIMIZE = 1;
MAXIMIZE = 2;
MINIMIZE = 1;
MAXIMIZE = 2;
}

message FeasibleSpace {
Expand All @@ -60,16 +60,16 @@ message FeasibleSpace {
}

message ParameterConfig {
string name = 1;
ParameterType parameter_type = 2;
// The following values defines a feasible parameter space.
string name = 1;
ParameterType parameter_type = 2;
// The following values defines a feasible parameter space.
FeasibleSpace feasible = 3;
}

message Parameter {
string name = 1;
ParameterType parameter_type = 2;
string value = 3;
string name = 1;
ParameterType parameter_type = 2;
string value = 3;
}

// This value is stored as TINYINT in MySQL.
Expand Down Expand Up @@ -118,16 +118,16 @@ message MountConf {
}

message StudyOverview {
string name = 1;
string owner = 2;
string name = 1;
string owner = 2;
string id = 3;
string description = 4;
string description = 4;
}

message Trial {
string trial_id = 1;
string study_id = 2;
repeated Parameter parameter_set = 3;
string trial_id = 1;
string study_id = 2;
repeated Parameter parameter_set = 3;
string objective_value = 4;
repeated Tag tags = 5;
}
Expand All @@ -143,8 +143,8 @@ message WorkerConfig {

message Worker {
string worker_id = 1;
string study_id = 2;
string trial_id = 3;
string study_id = 2;
string trial_id = 3;
string runtime = 4;
State status = 5;
WorkerConfig config = 6;
Expand All @@ -155,12 +155,12 @@ message StudyConfig {
message ParameterConfigs {
repeated ParameterConfig configs = 1;
}
string name = 1;
string owner = 2;
OptimizationType optimization_type = 3;
double optimization_goal = 4;
ParameterConfigs parameter_configs = 5;
repeated string access_permissions = 6;
string name = 1;
string owner = 2;
OptimizationType optimization_type = 3;
double optimization_goal = 4;
ParameterConfigs parameter_configs = 5;
repeated string access_permissions = 6;
repeated Tag tags = 7;
string objective_value_name = 8;
repeated string metrics = 9;
Expand All @@ -171,11 +171,11 @@ message CreateStudyRequest {
}

message CreateStudyReply {
string study_id = 1;
string study_id = 1;
}

message StopStudyRequest {
string study_id = 1;
string study_id = 1;
}

message StopStudyReply {
Expand Down Expand Up @@ -275,16 +275,16 @@ message GetMetricsReply {
}

message ModelInfo {
string study_name = 1;
string worker_id = 2;
repeated Parameter parameters = 3;
repeated Metrics metrics = 4;
string model_path = 5;
string study_name = 1;
string worker_id = 2;
repeated Parameter parameters = 3;
repeated Metrics metrics = 4;
string model_path = 5;
}

message DataSetInfo {
string name = 1;
string path = 2;
string name = 1;
string path = 2;
}

message SaveStudyRequest {
Expand Down Expand Up @@ -330,7 +330,7 @@ message GetSavedModelReply {
}

message SetSuggestionParametersRequest {
string study_id = 1;
string study_id = 1;
string suggestion_algorithm = 2;
string param_id = 3;
repeated SuggestionParameter suggestion_parameters = 4;
Expand Down Expand Up @@ -364,14 +364,14 @@ message GetSuggestionParameterListReply {
}

message StopSuggestionRequest {
string study_id = 1;
string study_id = 1;
}

message StopSuggestionReply {
}

message SetEarlyStoppingParametersRequest {
string study_id = 1;
string study_id = 1;
string early_stopping_algorithm = 2;
string param_id = 3;
repeated EarlyStoppingParameter early_stopping_parameters = 4;
Expand Down