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

repo-sync-2024-03-28T14:29:12+0800 #3

Merged
merged 1 commit into from
Mar 28, 2024
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
36 changes: 19 additions & 17 deletions secretflow/spec/v1/component.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ option java_multiple_files = true;

// The value of an attribute
message Attribute {
float f = 1; // FLOAT
float f = 1; // FLOAT

// INT
// NOTE(junfeng): "is" is preserved by Python. Replaced with "i64".
int64 i64 = 2;

string s = 3; // STRING
bool b = 4; // BOOL
string s = 3; // STRING
bool b = 4; // BOOL

// lists

repeated float fs = 5; // FLOATS
repeated int64 i64s = 6; // INTS
repeated string ss = 7; // STRINGS
repeated bool bs = 8; // BOOLS
repeated float fs = 5; // FLOATS
repeated int64 i64s = 6; // INTS
repeated string ss = 7; // STRINGS
repeated bool bs = 8; // BOOLS

// Indicates the value is missing explicitly.
bool is_na = 9;
Expand Down Expand Up @@ -204,26 +204,28 @@ message CompListDef {

// Supported attribute types.
enum AttrType {
// NOTE: ATTR_TYPE_UNSPECIFIED could be used as a child of a union struct
// with no further attribute(s).
ATTR_TYPE_UNSPECIFIED = 0;

// Scalar types

AT_FLOAT = 1; // FLOAT
AT_INT = 2; // INT
AT_STRING = 3; // STRING
AT_BOOL = 4; // BOOL
AT_FLOAT = 1; // FLOAT
AT_INT = 2; // INT
AT_STRING = 3; // STRING
AT_BOOL = 4; // BOOL

// List types

AT_FLOATS = 5; // FLOATS
AT_INTS = 6; // INTS
AT_STRINGS = 7; // STRINGS
AT_BOOLS = 8; // BOOLS
AT_FLOATS = 5; // FLOATS
AT_INTS = 6; // INTS
AT_STRINGS = 7; // STRINGS
AT_BOOLS = 8; // BOOLS

// Special types.

AT_STRUCT_GROUP = 9;
AT_UNION_GROUP = 10;
AT_SF_TABLE_COL = 11;
AT_CUSTOM_PROTOBUF = 12;
AT_CUSTOM_PROTOBUF = 11;
AT_PARTY = 12; // A specialized AT_STRINGS.
}
Loading