visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
f7f00e87b3

+ 31 - 0
grpc/Palm/Lily/V1/EpubBuildRequest.php

@@ -0,0 +1,31 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: lily.proto
+
+namespace Palm\Lily\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>palm.lily.v1.EpubBuildRequest</code>
+ */
+class EpubBuildRequest extends \Google\Protobuf\Internal\Message
+{
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Lily::initOnce();
+        parent::__construct($data);
+    }
+
+}
+

+ 35 - 0
grpc/Palm/Lily/V1/EpubClient.php

@@ -0,0 +1,35 @@
+<?php
+// GENERATED CODE -- DO NOT EDIT!
+
+namespace Palm\Lily\V1;
+
+/**
+ * ----------------------------------------------------------------------------
+ *
+ */
+class EpubClient extends \Grpc\BaseStub {
+
+    /**
+     * @param string $hostname hostname
+     * @param array $opts channel options
+     * @param \Grpc\Channel $channel (optional) re-use channel object
+     */
+    public function __construct($hostname, $opts, $channel = null) {
+        parent::__construct($hostname, $opts, $channel);
+    }
+
+    /**
+     * @param \Palm\Lily\V1\EpubBuildRequest $argument input argument
+     * @param array $metadata metadata
+     * @param array $options call options
+     * @return \Grpc\UnaryCall
+     */
+    public function Build(\Palm\Lily\V1\EpubBuildRequest $argument,
+      $metadata = [], $options = []) {
+        return $this->_simpleRequest('/palm.lily.v1.Epub/Build',
+        $argument,
+        ['\Palm\Lily\V1\File', 'decode'],
+        $metadata, $options);
+    }
+
+}

+ 49 - 0
grpc/Palm/Lily/V1/ExcelClient.php

@@ -0,0 +1,49 @@
+<?php
+// GENERATED CODE -- DO NOT EDIT!
+
+namespace Palm\Lily\V1;
+
+/**
+ * ----------------------------------------------------------------------------
+ *
+ */
+class ExcelClient extends \Grpc\BaseStub {
+
+    /**
+     * @param string $hostname hostname
+     * @param array $opts channel options
+     * @param \Grpc\Channel $channel (optional) re-use channel object
+     */
+    public function __construct($hostname, $opts, $channel = null) {
+        parent::__construct($hostname, $opts, $channel);
+    }
+
+    /**
+     * @param \Palm\Lily\V1\File $argument input argument
+     * @param array $metadata metadata
+     * @param array $options call options
+     * @return \Grpc\UnaryCall
+     */
+    public function Parse(\Palm\Lily\V1\File $argument,
+      $metadata = [], $options = []) {
+        return $this->_simpleRequest('/palm.lily.v1.Excel/Parse',
+        $argument,
+        ['\Palm\Lily\V1\ExcelModel', 'decode'],
+        $metadata, $options);
+    }
+
+    /**
+     * @param \Palm\Lily\V1\ExcelModel $argument input argument
+     * @param array $metadata metadata
+     * @param array $options call options
+     * @return \Grpc\UnaryCall
+     */
+    public function Generate(\Palm\Lily\V1\ExcelModel $argument,
+      $metadata = [], $options = []) {
+        return $this->_simpleRequest('/palm.lily.v1.Excel/Generate',
+        $argument,
+        ['\Palm\Lily\V1\File', 'decode'],
+        $metadata, $options);
+    }
+
+}

+ 58 - 0
grpc/Palm/Lily/V1/ExcelModel.php

@@ -0,0 +1,58 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: lily.proto
+
+namespace Palm\Lily\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>palm.lily.v1.ExcelModel</code>
+ */
+class ExcelModel extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>repeated .palm.lily.v1.ExcelModel.Sheet sheets = 1;</code>
+     */
+    private $sheets;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type array<\Palm\Lily\V1\ExcelModel\Sheet>|\Google\Protobuf\Internal\RepeatedField $sheets
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Lily::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .palm.lily.v1.ExcelModel.Sheet sheets = 1;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getSheets()
+    {
+        return $this->sheets;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .palm.lily.v1.ExcelModel.Sheet sheets = 1;</code>
+     * @param array<\Palm\Lily\V1\ExcelModel\Sheet>|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setSheets($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Palm\Lily\V1\ExcelModel\Sheet::class);
+        $this->sheets = $arr;
+
+        return $this;
+    }
+
+}
+

+ 88 - 0
grpc/Palm/Lily/V1/ExcelModel/Sheet.php

@@ -0,0 +1,88 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: lily.proto
+
+namespace Palm\Lily\V1\ExcelModel;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>palm.lily.v1.ExcelModel.Sheet</code>
+ */
+class Sheet extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     */
+    protected $name = '';
+    /**
+     * Generated from protobuf field <code>repeated .palm.lily.v1.ExcelModel.Sheet.Cell cells = 2;</code>
+     */
+    private $cells;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $name
+     *     @type array<\Palm\Lily\V1\ExcelModel\Sheet\Cell>|\Google\Protobuf\Internal\RepeatedField $cells
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Lily::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     * @return string
+     */
+    public function getName()
+    {
+        return $this->name;
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setName($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->name = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .palm.lily.v1.ExcelModel.Sheet.Cell cells = 2;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getCells()
+    {
+        return $this->cells;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .palm.lily.v1.ExcelModel.Sheet.Cell cells = 2;</code>
+     * @param array<\Palm\Lily\V1\ExcelModel\Sheet\Cell>|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setCells($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Palm\Lily\V1\ExcelModel\Sheet\Cell::class);
+        $this->cells = $arr;
+
+        return $this;
+    }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(Sheet::class, \Palm\Lily\V1\ExcelModel_Sheet::class);
+

+ 115 - 0
grpc/Palm/Lily/V1/ExcelModel/Sheet/Cell.php

@@ -0,0 +1,115 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: lily.proto
+
+namespace Palm\Lily\V1\ExcelModel\Sheet;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>palm.lily.v1.ExcelModel.Sheet.Cell</code>
+ */
+class Cell extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>uint32 row = 1;</code>
+     */
+    protected $row = 0;
+    /**
+     * Generated from protobuf field <code>uint32 col = 2;</code>
+     */
+    protected $col = 0;
+    /**
+     * Generated from protobuf field <code>string val = 3;</code>
+     */
+    protected $val = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $row
+     *     @type int $col
+     *     @type string $val
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Lily::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>uint32 row = 1;</code>
+     * @return int
+     */
+    public function getRow()
+    {
+        return $this->row;
+    }
+
+    /**
+     * Generated from protobuf field <code>uint32 row = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRow($var)
+    {
+        GPBUtil::checkUint32($var);
+        $this->row = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>uint32 col = 2;</code>
+     * @return int
+     */
+    public function getCol()
+    {
+        return $this->col;
+    }
+
+    /**
+     * Generated from protobuf field <code>uint32 col = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setCol($var)
+    {
+        GPBUtil::checkUint32($var);
+        $this->col = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string val = 3;</code>
+     * @return string
+     */
+    public function getVal()
+    {
+        return $this->val;
+    }
+
+    /**
+     * Generated from protobuf field <code>string val = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setVal($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->val = $var;
+
+        return $this;
+    }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(Cell::class, \Palm\Lily\V1\ExcelModel_Sheet_Cell::class);
+

+ 95 - 0
grpc/Palm/Lily/V1/File.php

@@ -0,0 +1,95 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: lily.proto
+
+namespace Palm\Lily\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>palm.lily.v1.File</code>
+ */
+class File extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>optional string content_type = 1;</code>
+     */
+    protected $content_type = null;
+    /**
+     * Generated from protobuf field <code>bytes payload = 2;</code>
+     */
+    protected $payload = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $content_type
+     *     @type string $payload
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Lily::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>optional string content_type = 1;</code>
+     * @return string
+     */
+    public function getContentType()
+    {
+        return isset($this->content_type) ? $this->content_type : '';
+    }
+
+    public function hasContentType()
+    {
+        return isset($this->content_type);
+    }
+
+    public function clearContentType()
+    {
+        unset($this->content_type);
+    }
+
+    /**
+     * Generated from protobuf field <code>optional string content_type = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setContentType($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->content_type = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>bytes payload = 2;</code>
+     * @return string
+     */
+    public function getPayload()
+    {
+        return $this->payload;
+    }
+
+    /**
+     * Generated from protobuf field <code>bytes payload = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setPayload($var)
+    {
+        GPBUtil::checkString($var, False);
+        $this->payload = $var;
+
+        return $this;
+    }
+
+}
+

+ 49 - 0
grpc/Palm/Lily/V1/TexClient.php

@@ -0,0 +1,49 @@
+<?php
+// GENERATED CODE -- DO NOT EDIT!
+
+namespace Palm\Lily\V1;
+
+/**
+ * ----------------------------------------------------------------------------
+ *
+ */
+class TexClient extends \Grpc\BaseStub {
+
+    /**
+     * @param string $hostname hostname
+     * @param array $opts channel options
+     * @param \Grpc\Channel $channel (optional) re-use channel object
+     */
+    public function __construct($hostname, $opts, $channel = null) {
+        parent::__construct($hostname, $opts, $channel);
+    }
+
+    /**
+     * @param \Palm\Lily\V1\TexToRequest $argument input argument
+     * @param array $metadata metadata
+     * @param array $options call options
+     * @return \Grpc\UnaryCall
+     */
+    public function ToPdf(\Palm\Lily\V1\TexToRequest $argument,
+      $metadata = [], $options = []) {
+        return $this->_simpleRequest('/palm.lily.v1.Tex/ToPdf',
+        $argument,
+        ['\Palm\Lily\V1\File', 'decode'],
+        $metadata, $options);
+    }
+
+    /**
+     * @param \Palm\Lily\V1\TexToRequest $argument input argument
+     * @param array $metadata metadata
+     * @param array $options call options
+     * @return \Grpc\UnaryCall
+     */
+    public function ToWord(\Palm\Lily\V1\TexToRequest $argument,
+      $metadata = [], $options = []) {
+        return $this->_simpleRequest('/palm.lily.v1.Tex/ToWord',
+        $argument,
+        ['\Palm\Lily\V1\File', 'decode'],
+        $metadata, $options);
+    }
+
+}

+ 58 - 0
grpc/Palm/Lily/V1/TexToRequest.php

@@ -0,0 +1,58 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: lily.proto
+
+namespace Palm\Lily\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>palm.lily.v1.TexToRequest</code>
+ */
+class TexToRequest extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>map<string, bytes> files = 1;</code>
+     */
+    private $files;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type array|\Google\Protobuf\Internal\MapField $files
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Lily::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>map<string, bytes> files = 1;</code>
+     * @return \Google\Protobuf\Internal\MapField
+     */
+    public function getFiles()
+    {
+        return $this->files;
+    }
+
+    /**
+     * Generated from protobuf field <code>map<string, bytes> files = 1;</code>
+     * @param array|\Google\Protobuf\Internal\MapField $var
+     * @return $this
+     */
+    public function setFiles($var)
+    {
+        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::BYTES);
+        $this->files = $arr;
+
+        return $this;
+    }
+
+}
+

+ 88 - 0
grpc/Palm/Lily/V1/TexToRequest/File.php

@@ -0,0 +1,88 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: lily.proto
+
+namespace Palm\Lily\V1\TexToRequest;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>palm.lily.v1.TexToRequest.File</code>
+ */
+class File extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     */
+    protected $name = '';
+    /**
+     * Generated from protobuf field <code>bytes content = 2;</code>
+     */
+    protected $content = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $name
+     *     @type string $content
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Lily::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     * @return string
+     */
+    public function getName()
+    {
+        return $this->name;
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setName($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->name = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>bytes content = 2;</code>
+     * @return string
+     */
+    public function getContent()
+    {
+        return $this->content;
+    }
+
+    /**
+     * Generated from protobuf field <code>bytes content = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setContent($var)
+    {
+        GPBUtil::checkString($var, False);
+        $this->content = $var;
+
+        return $this;
+    }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(File::class, \Palm\Lily\V1\TexToRequest_File::class);
+