What is a Protobuf source path?
mainA Protobuf source path is a SourceCodeInfo.Location path, represented as a variable-length array of integers. It identifies a specific Protobuf definition by forming a path from the FileDescriptorProto to the target definition.
Each element in the array represents either a field number from a descriptor proto or an index for repeated types (such as messages, enums, services, or extensions) on the FileDescriptorProto.
Example breakdown of [4, 0, 2, 0, 1]:
4: Field number ofmessage_typeonFileDescriptorProto(a repeated field).0: Index of the specific message.2: Field number offieldonDescriptorProto(a repeated field).0: Index of the specific field.1: Field number ofnameonFieldDescriptorProto.