-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathproto_options.proto
61 lines (50 loc) · 1.46 KB
/
proto_options.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Dstl (c) Crown Copyright 2024
//
// [START declaration]
syntax = "proto3";
package sapient_msg;
import "google/protobuf/descriptor.proto";
// [END declaration]
// [START java_declaration]
option java_multiple_files = true;
option java_package = "uk.gov.dstl.sapientmsg";
option java_outer_classname = "ProtoOptionsProto";
// [END java_declaration]
// [START messages]
message FileOptions {
string standard_version = 1;
}
message ValidationOptions {
optional bool is_mandatory = 1;
optional bool is_ulid = 2;
optional bool is_uuid = 3;
optional string xml_name = 4;
optional bool xml_is_attribute = 5;
optional bool xml_ignore = 6;
optional string xml_singly_nested = 7;
optional bool xml_is_parent_value = 8;
optional string enum_name = 9;
optional bool is_proto_time = 10;
optional bool xml_tentative = 11;
optional bool is_time = 12;
}
message MessageOptions {
optional string xml_message_name = 50001;
optional bool is_sapient_message = 50002;
}
extend google.protobuf.FileOptions {
FileOptions file_options = 100001;
}
extend google.protobuf.EnumValueOptions {
optional ValidationOptions enum_options = 50001;
}
extend google.protobuf.OneofOptions {
optional ValidationOptions oneof_options = 50001;
}
extend google.protobuf.FieldOptions {
optional ValidationOptions field_options = 50001;
}
extend google.protobuf.MessageOptions {
optional MessageOptions message_options = 50001;
}
// [END messages]