Skip to content

Instantly share code, notes, and snippets.

@defunctzombie
Created October 20, 2021 18:08
Show Gist options
  • Save defunctzombie/56ed3d16c9460c3914705fe022bdae83 to your computer and use it in GitHub Desktop.
Save defunctzombie/56ed3d16c9460c3914705fe022bdae83 to your computer and use it in GitHub Desktop.
"syntax": "proto3",
"root": {
"name": "",
"fullName": "",
"syntaxType": "ProtoRoot",
"nested": {
"Person": {
"name": "Person",
"fullName": ".Person",
"comment": null,
"syntaxType": "MessageDefinition",
"nested": {
"PhoneType": {
"name": "PhoneType",
"fullName": ".Person.PhoneType",
"comment": null,
"syntaxType": "EnumDefinition",
"values": {
"MOBILE": 0,
"HOME": 1,
"WORK": 2
}
},
"PhoneNumber": {
"name": "PhoneNumber",
"fullName": ".Person.PhoneNumber",
"comment": null,
"syntaxType": "MessageDefinition",
"fields": {
"number": {
"name": "number",
"fullName": ".Person.PhoneNumber.number",
"comment": null,
"type": {
"value": "string",
"syntaxType": "BaseType"
},
"id": 1,
"required": false,
"optional": true,
"repeated": false,
"map": false
},
"type": {
"options": {
"default": "HOME"
},
"name": "type",
"fullName": ".Person.PhoneNumber.type",
"comment": null,
"type": {
"value": "PhoneType",
"syntaxType": "Identifier",
"resolvedValue": ".Person.PhoneType"
},
"id": 2,
"required": false,
"optional": true,
"repeated": false,
"map": false
}
}
}
},
"fields": {
"name": {
"name": "name",
"fullName": ".Person.name",
"comment": null,
"type": {
"value": "string",
"syntaxType": "BaseType"
},
"id": 1,
"required": false,
"optional": true,
"repeated": false,
"map": false
},
"id": {
"name": "id",
"fullName": ".Person.id",
"comment": null,
"type": {
"value": "int32",
"syntaxType": "BaseType"
},
"id": 2,
"required": false,
"optional": true,
"repeated": false,
"map": false
},
"email": {
"name": "email",
"fullName": ".Person.email",
"comment": null,
"type": {
"value": "string",
"syntaxType": "BaseType"
},
"id": 3,
"required": false,
"optional": true,
"repeated": false,
"map": false
},
"phones": {
"name": "phones",
"fullName": ".Person.phones",
"comment": null,
"type": {
"value": "PhoneNumber",
"syntaxType": "Identifier",
"resolvedValue": ".Person.PhoneNumber"
},
"rule": "repeated",
"id": 4,
"required": false,
"optional": true,
"repeated": true,
"map": false
}
}
},
"AddressBook": {
"name": "AddressBook",
"fullName": ".AddressBook",
"comment": null,
"syntaxType": "MessageDefinition",
"fields": {
"people": {
"name": "people",
"fullName": ".AddressBook.people",
"comment": null,
"type": {
"value": "Person",
"syntaxType": "Identifier",
"resolvedValue": ".Person"
},
"rule": "repeated",
"id": 1,
"required": false,
"optional": true,
"repeated": true,
"map": false
}
}
}
}
},
"syntaxType": "ProtoDocument"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment