ChatMessage
extends Message
in package
Generated from protobuf message <code>plugnmeet.ChatMessage</code>
Table of Contents
Properties
- $from_admin : mixed
- Generated from protobuf field <code>bool from_admin = 8;</code>
- $from_name : mixed
- Generated from protobuf field <code>string from_name = 2;</code>
- $from_user_id : mixed
- Generated from protobuf field <code>string from_user_id = 3;</code>
- $id : mixed
- Generated from protobuf field <code>string id = 1;</code>
- $is_private : mixed
- Generated from protobuf field <code>bool is_private = 6;</code>
- $message : mixed
- Generated from protobuf field <code>string message = 7;</code>
- $sent_at : mixed
- Generated from protobuf field <code>int64 sent_at = 4;</code>
- $source_lang : mixed
- Generated from protobuf field <code>optional string source_lang = 9;</code>
- $to_user_id : mixed
- Generated from protobuf field <code>optional string to_user_id = 5;</code>
- $translations : mixed
- Generated from protobuf field <code>map<string, string> translations = 10;</code>
Methods
- __construct() : mixed
- Constructor.
- clearSourceLang() : mixed
- clearToUserId() : mixed
- getFromAdmin() : bool
- Generated from protobuf field <code>bool from_admin = 8;</code>
- getFromName() : string
- Generated from protobuf field <code>string from_name = 2;</code>
- getFromUserId() : string
- Generated from protobuf field <code>string from_user_id = 3;</code>
- getId() : string
- Generated from protobuf field <code>string id = 1;</code>
- getIsPrivate() : bool
- Generated from protobuf field <code>bool is_private = 6;</code>
- getMessage() : string
- Generated from protobuf field <code>string message = 7;</code>
- getSentAt() : int|string
- Generated from protobuf field <code>int64 sent_at = 4;</code>
- getSourceLang() : string
- Generated from protobuf field <code>optional string source_lang = 9;</code>
- getToUserId() : string
- Generated from protobuf field <code>optional string to_user_id = 5;</code>
- getTranslations() : MapField
- Generated from protobuf field <code>map<string, string> translations = 10;</code>
- hasSourceLang() : mixed
- hasToUserId() : mixed
- setFromAdmin() : $this
- Generated from protobuf field <code>bool from_admin = 8;</code>
- setFromName() : $this
- Generated from protobuf field <code>string from_name = 2;</code>
- setFromUserId() : $this
- Generated from protobuf field <code>string from_user_id = 3;</code>
- setId() : $this
- Generated from protobuf field <code>string id = 1;</code>
- setIsPrivate() : $this
- Generated from protobuf field <code>bool is_private = 6;</code>
- setMessage() : $this
- Generated from protobuf field <code>string message = 7;</code>
- setSentAt() : $this
- Generated from protobuf field <code>int64 sent_at = 4;</code>
- setSourceLang() : $this
- Generated from protobuf field <code>optional string source_lang = 9;</code>
- setToUserId() : $this
- Generated from protobuf field <code>optional string to_user_id = 5;</code>
- setTranslations() : $this
- Generated from protobuf field <code>map<string, string> translations = 10;</code>
Properties
$from_admin
Generated from protobuf field <code>bool from_admin = 8;</code>
protected
mixed
$from_admin
= false
$from_name
Generated from protobuf field <code>string from_name = 2;</code>
protected
mixed
$from_name
= ''
$from_user_id
Generated from protobuf field <code>string from_user_id = 3;</code>
protected
mixed
$from_user_id
= ''
$id
Generated from protobuf field <code>string id = 1;</code>
protected
mixed
$id
= ''
$is_private
Generated from protobuf field <code>bool is_private = 6;</code>
protected
mixed
$is_private
= false
$message
Generated from protobuf field <code>string message = 7;</code>
protected
mixed
$message
= ''
$sent_at
Generated from protobuf field <code>int64 sent_at = 4;</code>
protected
mixed
$sent_at
= 0
$source_lang
Generated from protobuf field <code>optional string source_lang = 9;</code>
protected
mixed
$source_lang
= null
$to_user_id
Generated from protobuf field <code>optional string to_user_id = 5;</code>
protected
mixed
$to_user_id
= null
$translations
Generated from protobuf field <code>map<string, string> translations = 10;</code>
private
mixed
$translations
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type string $id @type string $from_name @type string $from_user_id @type int|string $sent_at @type string $to_user_id @type bool $is_private @type string $message @type bool $from_admin @type string $source_lang @type array|\Google\Protobuf\Internal\MapField $translations}
clearSourceLang()
public
clearSourceLang() : mixed
clearToUserId()
public
clearToUserId() : mixed
getFromAdmin()
Generated from protobuf field <code>bool from_admin = 8;</code>
public
getFromAdmin() : bool
Return values
boolgetFromName()
Generated from protobuf field <code>string from_name = 2;</code>
public
getFromName() : string
Return values
stringgetFromUserId()
Generated from protobuf field <code>string from_user_id = 3;</code>
public
getFromUserId() : string
Return values
stringgetId()
Generated from protobuf field <code>string id = 1;</code>
public
getId() : string
Return values
stringgetIsPrivate()
Generated from protobuf field <code>bool is_private = 6;</code>
public
getIsPrivate() : bool
Return values
boolgetMessage()
Generated from protobuf field <code>string message = 7;</code>
public
getMessage() : string
Return values
stringgetSentAt()
Generated from protobuf field <code>int64 sent_at = 4;</code>
public
getSentAt() : int|string
Return values
int|stringgetSourceLang()
Generated from protobuf field <code>optional string source_lang = 9;</code>
public
getSourceLang() : string
Return values
stringgetToUserId()
Generated from protobuf field <code>optional string to_user_id = 5;</code>
public
getToUserId() : string
Return values
stringgetTranslations()
Generated from protobuf field <code>map<string, string> translations = 10;</code>
public
getTranslations() : MapField
Return values
MapFieldhasSourceLang()
public
hasSourceLang() : mixed
hasToUserId()
public
hasToUserId() : mixed
setFromAdmin()
Generated from protobuf field <code>bool from_admin = 8;</code>
public
setFromAdmin(bool $var) : $this
Parameters
- $var : bool
Return values
$thissetFromName()
Generated from protobuf field <code>string from_name = 2;</code>
public
setFromName(string $var) : $this
Parameters
- $var : string
Return values
$thissetFromUserId()
Generated from protobuf field <code>string from_user_id = 3;</code>
public
setFromUserId(string $var) : $this
Parameters
- $var : string
Return values
$thissetId()
Generated from protobuf field <code>string id = 1;</code>
public
setId(string $var) : $this
Parameters
- $var : string
Return values
$thissetIsPrivate()
Generated from protobuf field <code>bool is_private = 6;</code>
public
setIsPrivate(bool $var) : $this
Parameters
- $var : bool
Return values
$thissetMessage()
Generated from protobuf field <code>string message = 7;</code>
public
setMessage(string $var) : $this
Parameters
- $var : string
Return values
$thissetSentAt()
Generated from protobuf field <code>int64 sent_at = 4;</code>
public
setSentAt(int|string $var) : $this
Parameters
- $var : int|string
Return values
$thissetSourceLang()
Generated from protobuf field <code>optional string source_lang = 9;</code>
public
setSourceLang(string $var) : $this
Parameters
- $var : string
Return values
$thissetToUserId()
Generated from protobuf field <code>optional string to_user_id = 5;</code>
public
setToUserId(string $var) : $this
Parameters
- $var : string
Return values
$thissetTranslations()
Generated from protobuf field <code>map<string, string> translations = 10;</code>
public
setTranslations(array<string|int, mixed>|MapField $var) : $this
Parameters
- $var : array<string|int, mixed>|MapField