Debian Codegraph @

tests/integration/schema_registry/data/proto/exampleProtoCriteo.proto

raw
1 syntax = "proto3";
2 package Criteo.Glup;
3 option java_package = "com.criteo.glup";
4
5 import "tests/integration/schema_registry/data/proto/metadata_proto.proto";
6 import "tests/integration/schema_registry/data/proto/common_proto.proto";
7
8 message ClickCas {
9 option (contains_nullable_fields) = true;
10
11 option (glup).producers = {
12 kafka: true
13 };
14
15 option (glup).kafka = {
16 topic: "glup_click_cas"
17 };
18
19 option (glup).dataset = {
20 id: "click_cas"
21 java_class: "com.criteo.glup.ClickCasProto$ClickCas"
22 kind: TIMESERIES
23 partition_scheme: PLATFORM_HOURLY
24 owner: "enginejoins"
25 retention_days: 390
26 // Switch time: 2018-03-20-11 timestamp: 1521543600
27 format {
28 path: "/glup/datasets/click_cas/data/full/JSON_PAIL"
29 file_format: JSON_PAIL
30 priority: 100
31 label: "FEDERATED_JSON_PAIL"
32 }
33 format {
34 path: "/glup/datasets/click_cas/data/full/PROTOBUF_PARQUET"
35 file_format: PROTOBUF_PARQUET
36 priority: 50
37 label: "FEDERATED_PROTOBUF_PARQUET"
38 }
39 };
40
41 option (glup).hdfs = {
42 import: {
43 owner: "enginejoins"
44 name: "click_cas"
45 partitioning: PLATFORM_HOURLY
46
47 generator {
48 kafka2hdfs {
49 topic: "glup_click_cas"
50 output_dataset_id: "click_cas"
51 output_format_label: "FEDERATED_JSON_PAIL"
52 }
53 to { env: PROD dc: PA4 }
54 }
55
56 // Transcoding to Parquet to prepare the migration
57 generator {
58 transcoding {
59 input_dataset_id: "click_cas" input_dataset_label: "FEDERATED_JSON_PAIL"
60 output_dataset_id: "click_cas" output_dataset_label: "FEDERATED_PROTOBUF_PARQUET"
61 }
62 to: { env: PROD dc: PA4 }
63 }
64
65 view: {
66 hive: { partitioning: PLATFORM_HOURLY }
67 }
68 }
69 };
70
71 Origin glup_origin = 1;
72 Partition partition = 2;
73 string uid = 5;
74 // Schema field
75 // (...)
76 map<int32, bool> set_fields = 50010; // nullable tracking special field
77 repeated ControlMessage.Watermark control_message = 2097151 [ (json).name = "__metadata" ]; // standard glup field
78
79 reserved 70 to 73, 75;
80 reserved "obsolete", "obsolete2";
81 }