-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathEmoji.php
More file actions
108 lines (93 loc) · 2.59 KB
/
Emoji.php
File metadata and controls
108 lines (93 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/chat/v1/reaction.proto
namespace Google\Apps\Chat\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* An emoji that is used as a reaction to a message.
*
* Generated from protobuf message <code>google.chat.v1.Emoji</code>
*/
class Emoji extends \Google\Protobuf\Internal\Message
{
protected $content;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $unicode
* Optional. A basic emoji represented by a unicode string.
* @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji
* A custom emoji.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Chat\V1\Reaction::initOnce();
parent::__construct($data);
}
/**
* Optional. A basic emoji represented by a unicode string.
*
* Generated from protobuf field <code>string unicode = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getUnicode()
{
return $this->readOneof(1);
}
public function hasUnicode()
{
return $this->hasOneof(1);
}
/**
* Optional. A basic emoji represented by a unicode string.
*
* Generated from protobuf field <code>string unicode = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setUnicode($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(1, $var);
return $this;
}
/**
* A custom emoji.
*
* Generated from protobuf field <code>.google.chat.v1.CustomEmoji custom_emoji = 2;</code>
* @return \Google\Apps\Chat\V1\CustomEmoji|null
*/
public function getCustomEmoji()
{
return $this->readOneof(2);
}
public function hasCustomEmoji()
{
return $this->hasOneof(2);
}
/**
* A custom emoji.
*
* Generated from protobuf field <code>.google.chat.v1.CustomEmoji custom_emoji = 2;</code>
* @param \Google\Apps\Chat\V1\CustomEmoji $var
* @return $this
*/
public function setCustomEmoji($var)
{
GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* @return string
*/
public function getContent()
{
return $this->whichOneof("content");
}
}