|
@@ -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;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|