Exclude some proto messages from proto comparison in IC

This commit is contained in:
Alexey Tsvetkov
2019-10-28 07:51:45 +03:00
committed by romanart
parent ac9b7fa268
commit 6e9cd85b54
9 changed files with 304 additions and 355 deletions
+4
View File
@@ -27,3 +27,7 @@ extend google.protobuf.FieldOptions {
optional bool string_id_in_table = 50003;
optional bool type_id_in_table = 50004;
}
extend google.protobuf.MessageOptions {
optional bool skip_message_in_comparison = 50100;
}
+6
View File
@@ -23,6 +23,8 @@ option optimize_for = LITE_RUNTIME;
message StringTable {
repeated string string = 1;
option (skip_message_in_comparison) = true;
}
message QualifiedNameTable {
@@ -40,6 +42,8 @@ message QualifiedNameTable {
}
repeated QualifiedName qualified_name = 1;
option (skip_message_in_comparison) = true;
}
message Annotation {
@@ -256,6 +260,8 @@ message TypeTable {
// Index starting from which all types are nullable, or nothing if all types in this table are non-null.
// Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
optional int32 first_nullable = 2 [default = -1];
option (skip_message_in_comparison) = true;
}
message Constructor {