File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ // Copyright 2026 Google LLC
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
15+ edition = "2024";
16+
17+ package ink.proto ;
18+
19+ import "net/proto2/proto/descriptor.proto" ;
20+
21+ option java_package = "com.google.ink.proto" ;
22+ option java_outer_classname = "OptionsProto" ;
23+
24+ message Version {
25+ int32 major = 1 ;
26+ int32 minor = 2 ;
27+ int32 bug = 3 ;
28+
29+ enum Cycle {
30+ CYCLE_UNSPECIFIED = 0 ;
31+ CYCLE_ALPHA = 1 ;
32+ CYCLE_BETA = 2 ;
33+ CYCLE_RC = 3 ;
34+ CYCLE_STABLE = 4 ;
35+ }
36+
37+ Cycle cycle = 4 ;
38+ int32 release = 5 ;
39+ }
40+
41+ // Extend FieldOptions, MessageOptions, EnumOptions, and EnumValueOptions to
42+ // include Version.
43+ extend proto2.FieldOptions {
44+ Version field_min_version = 525000068 ;
45+ }
46+ extend proto2.MessageOptions {
47+ Version message_min_version = 525000037 ;
48+ }
49+ extend proto2.EnumValueOptions {
50+ Version enum_value_min_version = 525000143 ;
51+ }
You can’t perform that action at this time.
0 commit comments