lily_pb.rb 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # frozen_string_literal: true
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: lily.proto
  4. require 'google/protobuf'
  5. descriptor_data = "\n\nlily.proto\x12\x0cpalm.lily.v1\"C\n\x04\x46ile\x12\x19\n\x0c\x63ontent_type\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x42\x0f\n\r_content_type\"\xb6\x01\n\nExcelModel\x12.\n\x06sheets\x18\x01 \x03(\x0b\x32\x1e.palm.lily.v1.ExcelModel.Sheet\x1ax\n\x05Sheet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x05\x63\x65lls\x18\x02 \x03(\x0b\x32#.palm.lily.v1.ExcelModel.Sheet.Cell\x1a-\n\x04\x43\x65ll\x12\x0b\n\x03row\x18\x01 \x01(\r\x12\x0b\n\x03\x63ol\x18\x02 \x01(\r\x12\x0b\n\x03val\x18\x03 \x01(\t\"r\n\x0cTexToRequest\x12\x34\n\x05\x66iles\x18\x01 \x03(\x0b\x32%.palm.lily.v1.TexToRequest.FilesEntry\x1a,\n\nFilesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\x12\n\x10\x45pubBuildRequest2|\n\x05\x45xcel\x12\x37\n\x05Parse\x12\x12.palm.lily.v1.File\x1a\x18.palm.lily.v1.ExcelModel\"\x00\x12:\n\x08Generate\x12\x18.palm.lily.v1.ExcelModel\x1a\x12.palm.lily.v1.File\"\x00\x32|\n\x03Tex\x12\x39\n\x05ToPdf\x12\x1a.palm.lily.v1.TexToRequest\x1a\x12.palm.lily.v1.File\"\x00\x12:\n\x06ToWord\x12\x1a.palm.lily.v1.TexToRequest\x1a\x12.palm.lily.v1.File\"\x00\x32\x45\n\x04\x45pub\x12=\n\x05\x42uild\x12\x1e.palm.lily.v1.EpubBuildRequest\x1a\x12.palm.lily.v1.File\"\x00\x42.\n*com.github.saturn_xiv.palm.plugins.lily.v1P\x01\x62\x06proto3"
  6. pool = Google::Protobuf::DescriptorPool.generated_pool
  7. begin
  8. pool.add_serialized_file(descriptor_data)
  9. rescue TypeError => e
  10. # Compatibility code: will be removed in the next major version.
  11. require 'google/protobuf/descriptor_pb'
  12. parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  13. parsed.clear_dependency
  14. serialized = parsed.class.encode(parsed)
  15. file = pool.add_serialized_file(serialized)
  16. warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  17. imports = [
  18. ]
  19. imports.each do |type_name, expected_filename|
  20. import_file = pool.lookup(type_name).file_descriptor
  21. if import_file.name != expected_filename
  22. warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
  23. end
  24. end
  25. warn "Each proto file must use a consistent fully-qualified name."
  26. warn "This will become an error in the next major version."
  27. end
  28. module Palm
  29. module Lily
  30. module V1
  31. File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("palm.lily.v1.File").msgclass
  32. ExcelModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("palm.lily.v1.ExcelModel").msgclass
  33. ExcelModel::Sheet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("palm.lily.v1.ExcelModel.Sheet").msgclass
  34. ExcelModel::Sheet::Cell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("palm.lily.v1.ExcelModel.Sheet.Cell").msgclass
  35. TexToRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("palm.lily.v1.TexToRequest").msgclass
  36. EpubBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("palm.lily.v1.EpubBuildRequest").msgclass
  37. end
  38. end
  39. end