JaiaBot  1.19.0
JaiaBot micro-AUV software
option_extensions.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 
3 import "google/protobuf/descriptor.proto";
4 
5 package jaia;
6 
7 message 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 
28 message FieldOptions
29 {
30  optional RestAPI rest_api = 1;
31 }
32 message MessageOptions {}
33 message 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 
41 extend .google.protobuf.FieldOptions
42 {
43  optional .jaia.FieldOptions field = 1252;
44 }
45 
46 extend .google.protobuf.MessageOptions
47 {
48  optional .jaia.MessageOptions msg = 1252;
49 }
50 
51 extend .google.protobuf.EnumValueOptions
52 {
53  optional .jaia.EnumValueOptions ev = 1252;
54 }