-
Notifications
You must be signed in to change notification settings - Fork 346
Expand file tree
/
Copy pathpkg.Foo.exclude-partial.txtar
More file actions
156 lines (156 loc) · 4.51 KB
/
pkg.Foo.exclude-partial.txtar
File metadata and controls
156 lines (156 loc) · 4.51 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
-- a.proto --
syntax = "proto3";
package pkg;
import "google/protobuf/descriptor.proto";
message Bar {
string bar = 1;
}
message Foo {
oneof oneofFoo {
option (oneof_foo) = "str";
string foo = 1;
}
oneof oneofBar {
option (oneof_bar) = "str";
Bar bar = 3;
}
}
extend google.protobuf.OneofOptions {
string oneof_foo = 50000;
string oneof_bar = 50001;
}
-- google/protobuf/descriptor.proto --
syntax = "proto2";
package google.protobuf;
option cc_enable_arenas = true;
option csharp_namespace = "Google.Protobuf.Reflection";
option go_package = "google.golang.org/protobuf/types/descriptorpb";
option java_outer_classname = "DescriptorProtos";
option java_package = "com.google.protobuf";
option objc_class_prefix = "GPB";
option optimize_for = SPEED;
message FeatureSet {
optional FieldPresence field_presence = 1 [
edition_defaults = { value: "EXPLICIT", edition: EDITION_LEGACY },
edition_defaults = { value: "IMPLICIT", edition: EDITION_PROTO3 },
edition_defaults = { value: "EXPLICIT", edition: EDITION_2023 },
feature_support = { edition_introduced: EDITION_2023 },
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE
];
optional EnumType enum_type = 2 [
edition_defaults = { value: "CLOSED", edition: EDITION_LEGACY },
edition_defaults = { value: "OPEN", edition: EDITION_PROTO3 },
feature_support = { edition_introduced: EDITION_2023 },
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_ENUM,
targets = TARGET_TYPE_FILE
];
optional RepeatedFieldEncoding repeated_field_encoding = 3 [
edition_defaults = { value: "EXPANDED", edition: EDITION_LEGACY },
edition_defaults = { value: "PACKED", edition: EDITION_PROTO3 },
feature_support = { edition_introduced: EDITION_2023 },
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE
];
optional Utf8Validation utf8_validation = 4 [
edition_defaults = { value: "NONE", edition: EDITION_LEGACY },
edition_defaults = { value: "VERIFY", edition: EDITION_PROTO3 },
feature_support = { edition_introduced: EDITION_2023 },
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE
];
optional MessageEncoding message_encoding = 5 [
edition_defaults = { value: "LENGTH_PREFIXED", edition: EDITION_LEGACY },
feature_support = { edition_introduced: EDITION_2023 },
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE
];
optional JsonFormat json_format = 6 [
edition_defaults = { value: "LEGACY_BEST_EFFORT", edition: EDITION_LEGACY },
edition_defaults = { value: "ALLOW", edition: EDITION_PROTO3 },
feature_support = { edition_introduced: EDITION_2023 },
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_MESSAGE,
targets = TARGET_TYPE_ENUM,
targets = TARGET_TYPE_FILE
];
enum EnumType {
ENUM_TYPE_UNKNOWN = 0;
OPEN = 1;
CLOSED = 2;
}
enum FieldPresence {
FIELD_PRESENCE_UNKNOWN = 0;
EXPLICIT = 1;
IMPLICIT = 2;
LEGACY_REQUIRED = 3;
}
enum JsonFormat {
JSON_FORMAT_UNKNOWN = 0;
ALLOW = 1;
LEGACY_BEST_EFFORT = 2;
}
enum MessageEncoding {
MESSAGE_ENCODING_UNKNOWN = 0;
LENGTH_PREFIXED = 1;
DELIMITED = 2;
}
enum RepeatedFieldEncoding {
REPEATED_FIELD_ENCODING_UNKNOWN = 0;
PACKED = 1;
EXPANDED = 2;
}
enum Utf8Validation {
UTF8_VALIDATION_UNKNOWN = 0;
VERIFY = 2;
NONE = 3;
reserved 1;
}
extensions 1000 to 9994 [
declaration = {
number: 1000,
full_name: ".pb.cpp",
type: ".pb.CppFeatures"
},
declaration = {
number: 1001,
full_name: ".pb.java",
type: ".pb.JavaFeatures"
},
declaration = {
number: 1002,
full_name: ".pb.go",
type: ".pb.GoFeatures"
},
declaration = {
number: 9990,
full_name: ".pb.proto1",
type: ".pb.Proto1Features"
}
];
extensions 9995 to 9999, 10000;
reserved 999;
}
message OneofOptions {
optional FeatureSet features = 1;
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
}
message UninterpretedOption {
repeated NamePart name = 2;
optional string identifier_value = 3;
optional uint64 positive_int_value = 4;
optional int64 negative_int_value = 5;
optional double double_value = 6;
optional bytes string_value = 7;
optional string aggregate_value = 8;
message NamePart {
required string name_part = 1;
required bool is_extension = 2;
}
}