Update CalculatorOptions to encourage proto3 options
PiperOrigin-RevId: 530127533
This commit is contained in:
parent
876987b389
commit
613f645c74
|
@ -23,15 +23,13 @@ package mediapipe;
|
||||||
option java_package = "com.google.mediapipe.proto";
|
option java_package = "com.google.mediapipe.proto";
|
||||||
option java_outer_classname = "CalculatorOptionsProto";
|
option java_outer_classname = "CalculatorOptionsProto";
|
||||||
|
|
||||||
// Options for Calculators. Each Calculator implementation should
|
// Options for Calculators, DEPRECATED. New calculators are encouraged to use
|
||||||
// have its own options proto, which should look like this:
|
// proto3 syntax options:
|
||||||
//
|
//
|
||||||
// message MyCalculatorOptions {
|
// message MyCalculatorOptions {
|
||||||
// extend CalculatorOptions {
|
// // proto3 does not expect "optional"
|
||||||
// optional MyCalculatorOptions ext = <unique id, e.g. the CL#>;
|
// string field_needed_by_my_calculator = 1;
|
||||||
// }
|
// int32 another_field = 2;
|
||||||
// optional string field_needed_by_my_calculator = 1;
|
|
||||||
// optional int32 another_field = 2;
|
|
||||||
// // etc
|
// // etc
|
||||||
// }
|
// }
|
||||||
message CalculatorOptions {
|
message CalculatorOptions {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user