Documentation

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

}

getFromAdmin()

Generated from protobuf field <code>bool from_admin = 8;</code>

public getFromAdmin() : bool
Return values
bool

getFromName()

Generated from protobuf field <code>string from_name = 2;</code>

public getFromName() : string
Return values
string

getFromUserId()

Generated from protobuf field <code>string from_user_id = 3;</code>

public getFromUserId() : string
Return values
string

getId()

Generated from protobuf field <code>string id = 1;</code>

public getId() : string
Return values
string

getIsPrivate()

Generated from protobuf field <code>bool is_private = 6;</code>

public getIsPrivate() : bool
Return values
bool

getMessage()

Generated from protobuf field <code>string message = 7;</code>

public getMessage() : string
Return values
string

getSentAt()

Generated from protobuf field <code>int64 sent_at = 4;</code>

public getSentAt() : int|string
Return values
int|string

getSourceLang()

Generated from protobuf field <code>optional string source_lang = 9;</code>

public getSourceLang() : string
Return values
string

getToUserId()

Generated from protobuf field <code>optional string to_user_id = 5;</code>

public getToUserId() : string
Return values
string

getTranslations()

Generated from protobuf field <code>map<string, string> translations = 10;</code>

public getTranslations() : MapField
Return values
MapField

setFromAdmin()

Generated from protobuf field <code>bool from_admin = 8;</code>

public setFromAdmin(bool $var) : $this
Parameters
$var : bool
Return values
$this

setFromName()

Generated from protobuf field <code>string from_name = 2;</code>

public setFromName(string $var) : $this
Parameters
$var : string
Return values
$this

setFromUserId()

Generated from protobuf field <code>string from_user_id = 3;</code>

public setFromUserId(string $var) : $this
Parameters
$var : string
Return values
$this

setId()

Generated from protobuf field <code>string id = 1;</code>

public setId(string $var) : $this
Parameters
$var : string
Return values
$this

setIsPrivate()

Generated from protobuf field <code>bool is_private = 6;</code>

public setIsPrivate(bool $var) : $this
Parameters
$var : bool
Return values
$this

setMessage()

Generated from protobuf field <code>string message = 7;</code>

public setMessage(string $var) : $this
Parameters
$var : string
Return values
$this

setSentAt()

Generated from protobuf field <code>int64 sent_at = 4;</code>

public setSentAt(int|string $var) : $this
Parameters
$var : int|string
Return values
$this

setSourceLang()

Generated from protobuf field <code>optional string source_lang = 9;</code>

public setSourceLang(string $var) : $this
Parameters
$var : string
Return values
$this

setToUserId()

Generated from protobuf field <code>optional string to_user_id = 5;</code>

public setToUserId(string $var) : $this
Parameters
$var : string
Return values
$this

setTranslations()

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
Return values
$this

        
On this page

Search results