Skip to content

Instantly share code, notes, and snippets.

@pbogunovich
Created February 7, 2012 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbogunovich/1761930 to your computer and use it in GitHub Desktop.
Save pbogunovich/1761930 to your computer and use it in GitHub Desktop.
message UserRecord {
required uint32 version = 1 [default = 1];
required uint64 timestamp = 2;
optional string user_id = 3;
repeated Interaction interactions = 4;
repeated Segment rapleaf_segments = 5 [deprecated=true];
repeated SegmentsPerProvider segments = 6;
message Interaction {
enum InteractionType {
IMPRESSION = 1;
CLICK = 2;
CONVERSION = 3;
}
required uint64 line_item_id = 1;
required uint64 timestamp = 2;
required InteractionType type = 3;
}
message Segment {
required uint64 segment_id = 1;
}
}
enum Provider {
RAPLEAF = 1;
}
//Used by USER
message SegmentsPerProvider {
required Provider provider = 1;
repeated uint64 segment_ids = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment