JaiaBot 2.0.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
option_extensions.proto
Go to the documentation of this file.
1syntax = "proto2";
2
3import "google/protobuf/descriptor.proto";
4
5package jaia;
6
7message RestAPI
8{
9 enum Presence
10 {
11 NOT_GUARANTEED = 0;
12 GUARANTEED = 1;
13 OMITTED = 2;
14 }
15 optional Presence presence = 1 [default = NOT_GUARANTEED];
16 optional string doc = 2;
17 message Example
18 {
19 required string request = 1;
20 required string response = 2;
21 }
22 optional Example example = 3;
23
24 // used by APIConfig permissions to map permission onto allowed actions
25 repeated string permitted_action = 4;
26}
27
28message FieldOptions
29{
30 optional RestAPI rest_api = 1;
31}
32message MessageOptions {}
33message EnumValueOptions
34{
35 optional RestAPI rest_api = 1;
36}
37
38// we can use 1252 for all extensions:
39// https://github.com/protocolbuffers/protobuf/commit/46f7879cae6a986ca0f780811dc8414ae14d18d5
40
41extend .google.protobuf.FieldOptions
42{
43 optional .jaia.FieldOptions field = 1252;
44}
45
46extend .google.protobuf.MessageOptions
47{
48 optional .jaia.MessageOptions msg = 1252;
49}
50
51extend .google.protobuf.EnumValueOptions
52{
53 optional .jaia.EnumValueOptions ev = 1252;
54}