123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- {
- "package": null,
- "messages": [
- {
- "ref": "google.protobuf.FileOptions",
- "fields": [
- {
- "rule": "optional",
- "options": {},
- "type": "string",
- "name": "my_file_option",
- "id": 50000
- }
- ]
- },
- {
- "ref": "google.protobuf.MessageOptions",
- "fields": [
- {
- "rule": "optional",
- "options": {},
- "type": "int32",
- "name": "my_message_option",
- "id": 50001
- }
- ]
- },
- {
- "ref": "google.protobuf.FieldOptions",
- "fields": [
- {
- "rule": "optional",
- "options": {},
- "type": "float",
- "name": "my_field_option",
- "id": 50002
- }
- ]
- },
- {
- "ref": "google.protobuf.EnumOptions",
- "fields": [
- {
- "rule": "optional",
- "options": {},
- "type": "bool",
- "name": "my_enum_option",
- "id": 50003
- }
- ]
- },
- {
- "ref": "google.protobuf.EnumValueOptions",
- "fields": [
- {
- "rule": "optional",
- "options": {},
- "type": "uint32",
- "name": "my_enum_value_option",
- "id": 50004
- }
- ]
- },
- {
- "ref": "google.protobuf.ServiceOptions",
- "fields": [
- {
- "rule": "optional",
- "options": {},
- "type": "MyEnum",
- "name": "my_service_option",
- "id": 50005
- }
- ]
- },
- {
- "ref": "google.protobuf.MethodOptions",
- "fields": [
- {
- "rule": "optional",
- "options": {},
- "type": "MyMessage",
- "name": "my_method_option",
- "id": 50006
- }
- ]
- },
- {
- "name": "MyMessage",
- "fields": [
- {
- "rule": "optional",
- "options": {
- "(my_field_option)": 4.5
- },
- "type": "int32",
- "name": "foo",
- "id": 1
- },
- {
- "rule": "optional",
- "options": {},
- "type": "string",
- "name": "bar",
- "id": 2
- }
- ],
- "enums": [],
- "messages": [],
- "options": {
- "(my_message_option)": 1234
- }
- },
- {
- "name": "RequestType",
- "fields": [],
- "enums": [],
- "messages": [],
- "options": {}
- },
- {
- "name": "ResponseType",
- "fields": [],
- "enums": [],
- "messages": [],
- "options": {}
- }
- ],
- "enums": [
- {
- "name": "MyEnum",
- "values": [
- {
- "name": "FOO",
- "id": 1
- },
- {
- "name": "BAR",
- "id": 2
- }
- ],
- "options": {
- "(my_enum_option)": true
- }
- }
- ],
- "imports": [],
- "options": {
- "(my_file_option)": "Hello world!"
- },
- "services": [
- {
- "name": "MyService",
- "rpc": {
- "MyMethod": {
- "request": "RequestType",
- "response": "ResponseType",
- "options": {
- "(my_method_option).foo": 567,
- "(my_method_option).bar": "Some string"
- }
- }
- },
- "options": {
- "(my_service_option)": "FOO"
- }
- }
- ]
- }
|