Documentation

GetNewsReply extends Message
in package

Generated from protobuf message <code>website.web.realtime.GetNewsReply</code>

Table of Contents

Properties

$alternative_title  : mixed
Título alternativo más corto para listados y otros sitios que lo necesitan.
$cover  : mixed
Imagen de portada para referenciarla en la home y en redes sociales.
$create_time  : mixed
Fecha de creación de la noticia.
$highlighted  : mixed
Flag que indica si la noticia es destacada.
$name  : mixed
News ID.
$news_type  : mixed
Generated from protobuf field <code>.website.web.realtime.GetNewsReply.NewsType news_type = 6 [json_name = "newsType"];</code>
$publish_time  : mixed
Fecha de publicación.
$relative_url  : mixed
URL de la noticia relativa al dominio.
$schedule_time  : mixed
Fecha de publicación automática. Solamente será modificable desde el método Schedule.
$section  : mixed
Generated from protobuf field <code>.website.web.realtime.Section section = 5 [json_name = "section"];</code>
$slug  : mixed
Slug de la noticia.
$subtitle  : mixed
Generated from protobuf field <code>string subtitle = 4 [json_name = "subtitle"];</code>
$title  : mixed
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>
$update_time  : mixed
Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];</code>
$url  : mixed
URL completa de la noticia en producción.

Methods

__construct()  : mixed
Constructor.
clearCover()  : mixed
clearCreateTime()  : mixed
clearPublishTime()  : mixed
clearScheduleTime()  : mixed
clearSection()  : mixed
clearUpdateTime()  : mixed
getAlternativeTitle()  : string
Título alternativo más corto para listados y otros sitios que lo necesitan.
getCover()  : Image|null
Imagen de portada para referenciarla en la home y en redes sociales.
getCreateTime()  : Timestamp|null
Fecha de creación de la noticia.
getHighlighted()  : bool
Flag que indica si la noticia es destacada.
getName()  : string
News ID.
getNewsType()  : int
Generated from protobuf field <code>.website.web.realtime.GetNewsReply.NewsType news_type = 6 [json_name = "newsType"];</code>
getPublishTime()  : Timestamp|null
Fecha de publicación.
getRelativeUrl()  : string
URL de la noticia relativa al dominio.
getScheduleTime()  : Timestamp|null
Fecha de publicación automática. Solamente será modificable desde el método Schedule.
getSection()  : Section|null
Generated from protobuf field <code>.website.web.realtime.Section section = 5 [json_name = "section"];</code>
getSlug()  : string
Slug de la noticia.
getSubtitle()  : string
Generated from protobuf field <code>string subtitle = 4 [json_name = "subtitle"];</code>
getTitle()  : string
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>
getUpdateTime()  : Timestamp|null
Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];</code>
getUrl()  : string
URL completa de la noticia en producción.
hasCover()  : mixed
hasCreateTime()  : mixed
hasPublishTime()  : mixed
hasScheduleTime()  : mixed
hasSection()  : mixed
hasUpdateTime()  : mixed
setAlternativeTitle()  : $this
Título alternativo más corto para listados y otros sitios que lo necesitan.
setCover()  : $this
Imagen de portada para referenciarla en la home y en redes sociales.
setCreateTime()  : $this
Fecha de creación de la noticia.
setHighlighted()  : $this
Flag que indica si la noticia es destacada.
setName()  : $this
News ID.
setNewsType()  : $this
Generated from protobuf field <code>.website.web.realtime.GetNewsReply.NewsType news_type = 6 [json_name = "newsType"];</code>
setPublishTime()  : $this
Fecha de publicación.
setRelativeUrl()  : $this
URL de la noticia relativa al dominio.
setScheduleTime()  : $this
Fecha de publicación automática. Solamente será modificable desde el método Schedule.
setSection()  : $this
Generated from protobuf field <code>.website.web.realtime.Section section = 5 [json_name = "section"];</code>
setSlug()  : $this
Slug de la noticia.
setSubtitle()  : $this
Generated from protobuf field <code>string subtitle = 4 [json_name = "subtitle"];</code>
setTitle()  : $this
Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>
setUpdateTime()  : $this
Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];</code>
setUrl()  : $this
URL completa de la noticia en producción.

Properties

$alternative_title

Título alternativo más corto para listados y otros sitios que lo necesitan.

protected mixed $alternative_title = ''

Generated from protobuf field string alternative_title = 3 [json_name = "alternativeTitle"];

$cover

Imagen de portada para referenciarla en la home y en redes sociales.

protected mixed $cover = null

Generated from protobuf field .website.web.realtime.Image cover = 17 [json_name = "cover"];

$create_time

Fecha de creación de la noticia.

protected mixed $create_time = null

Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [json_name = "createTime"];

$highlighted

Flag que indica si la noticia es destacada.

protected mixed $highlighted = false

Generated from protobuf field bool highlighted = 16 [json_name = "highlighted"];

$name

News ID.

protected mixed $name = ''

Format: realtime-news/1234

Generated from protobuf field string name = 1 [json_name = "name"];

$news_type

Generated from protobuf field <code>.website.web.realtime.GetNewsReply.NewsType news_type = 6 [json_name = "newsType"];</code>

protected mixed $news_type = 0

$publish_time

Fecha de publicación.

protected mixed $publish_time = null

Generated from protobuf field .google.protobuf.Timestamp publish_time = 11 [json_name = "publishTime"];

$relative_url

URL de la noticia relativa al dominio.

protected mixed $relative_url = ''

Generated from protobuf field string relative_url = 15 [json_name = "relativeUrl"];

$schedule_time

Fecha de publicación automática. Solamente será modificable desde el método Schedule.

protected mixed $schedule_time = null

Generated from protobuf field .google.protobuf.Timestamp schedule_time = 9 [json_name = "scheduleTime"];

$section

Generated from protobuf field <code>.website.web.realtime.Section section = 5 [json_name = "section"];</code>

protected mixed $section = null

$slug

Slug de la noticia.

protected mixed $slug = ''

Generated from protobuf field string slug = 13 [json_name = "slug"];

$subtitle

Generated from protobuf field <code>string subtitle = 4 [json_name = "subtitle"];</code>

protected mixed $subtitle = ''

$title

Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

protected mixed $title = ''

$update_time

Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];</code>

protected mixed $update_time = null

$url

URL completa de la noticia en producción.

protected mixed $url = ''

Generated from protobuf field string url = 14 [json_name = "url"];

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 $name
      News ID.
      Format: realtime-news/1234
@type string $title
@type string $alternative_title
      Título alternativo más corto para listados y otros sitios que lo necesitan.
@type string $subtitle
@type \Website\Web\Realtime\Section $section
@type int $news_type
@type \Google\Protobuf\Timestamp $schedule_time
      Fecha de publicación automática. Solamente será modificable desde el método Schedule.
@type \Google\Protobuf\Timestamp $create_time
      Fecha de creación de la noticia.
@type \Google\Protobuf\Timestamp $publish_time
      Fecha de publicación.
@type \Google\Protobuf\Timestamp $update_time
@type string $slug
      Slug de la noticia.
@type string $url
      URL completa de la noticia en producción.
@type string $relative_url
      URL de la noticia relativa al dominio.
@type bool $highlighted
      Flag que indica si la noticia es destacada.
@type \Website\Web\Realtime\Image $cover
      Imagen de portada para referenciarla en la home y en redes sociales.

}

getAlternativeTitle()

Título alternativo más corto para listados y otros sitios que lo necesitan.

public getAlternativeTitle() : string

Generated from protobuf field string alternative_title = 3 [json_name = "alternativeTitle"];

Return values
string

getCover()

Imagen de portada para referenciarla en la home y en redes sociales.

public getCover() : Image|null

Generated from protobuf field .website.web.realtime.Image cover = 17 [json_name = "cover"];

Return values
Image|null

getCreateTime()

Fecha de creación de la noticia.

public getCreateTime() : Timestamp|null

Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [json_name = "createTime"];

Return values
Timestamp|null

getHighlighted()

Flag que indica si la noticia es destacada.

public getHighlighted() : bool

Generated from protobuf field bool highlighted = 16 [json_name = "highlighted"];

Return values
bool

getName()

News ID.

public getName() : string

Format: realtime-news/1234

Generated from protobuf field string name = 1 [json_name = "name"];

Return values
string

getNewsType()

Generated from protobuf field <code>.website.web.realtime.GetNewsReply.NewsType news_type = 6 [json_name = "newsType"];</code>

public getNewsType() : int
Return values
int

getPublishTime()

Fecha de publicación.

public getPublishTime() : Timestamp|null

Generated from protobuf field .google.protobuf.Timestamp publish_time = 11 [json_name = "publishTime"];

Return values
Timestamp|null

getRelativeUrl()

URL de la noticia relativa al dominio.

public getRelativeUrl() : string

Generated from protobuf field string relative_url = 15 [json_name = "relativeUrl"];

Return values
string

getScheduleTime()

Fecha de publicación automática. Solamente será modificable desde el método Schedule.

public getScheduleTime() : Timestamp|null

Generated from protobuf field .google.protobuf.Timestamp schedule_time = 9 [json_name = "scheduleTime"];

Return values
Timestamp|null

getSection()

Generated from protobuf field <code>.website.web.realtime.Section section = 5 [json_name = "section"];</code>

public getSection() : Section|null
Return values
Section|null

getSlug()

Slug de la noticia.

public getSlug() : string

Generated from protobuf field string slug = 13 [json_name = "slug"];

Return values
string

getSubtitle()

Generated from protobuf field <code>string subtitle = 4 [json_name = "subtitle"];</code>

public getSubtitle() : string
Return values
string

getTitle()

Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

public getTitle() : string
Return values
string

getUpdateTime()

Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];</code>

public getUpdateTime() : Timestamp|null
Return values
Timestamp|null

getUrl()

URL completa de la noticia en producción.

public getUrl() : string

Generated from protobuf field string url = 14 [json_name = "url"];

Return values
string

setAlternativeTitle()

Título alternativo más corto para listados y otros sitios que lo necesitan.

public setAlternativeTitle(string $var) : $this

Generated from protobuf field string alternative_title = 3 [json_name = "alternativeTitle"];

Parameters
$var : string
Return values
$this

setCover()

Imagen de portada para referenciarla en la home y en redes sociales.

public setCover(Image $var) : $this

Generated from protobuf field .website.web.realtime.Image cover = 17 [json_name = "cover"];

Parameters
$var : Image
Return values
$this

setCreateTime()

Fecha de creación de la noticia.

public setCreateTime(Timestamp $var) : $this

Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [json_name = "createTime"];

Parameters
$var : Timestamp
Return values
$this

setHighlighted()

Flag que indica si la noticia es destacada.

public setHighlighted(bool $var) : $this

Generated from protobuf field bool highlighted = 16 [json_name = "highlighted"];

Parameters
$var : bool
Return values
$this

setName()

News ID.

public setName(string $var) : $this

Format: realtime-news/1234

Generated from protobuf field string name = 1 [json_name = "name"];

Parameters
$var : string
Return values
$this

setNewsType()

Generated from protobuf field <code>.website.web.realtime.GetNewsReply.NewsType news_type = 6 [json_name = "newsType"];</code>

public setNewsType(int $var) : $this
Parameters
$var : int
Return values
$this

setPublishTime()

Fecha de publicación.

public setPublishTime(Timestamp $var) : $this

Generated from protobuf field .google.protobuf.Timestamp publish_time = 11 [json_name = "publishTime"];

Parameters
$var : Timestamp
Return values
$this

setRelativeUrl()

URL de la noticia relativa al dominio.

public setRelativeUrl(string $var) : $this

Generated from protobuf field string relative_url = 15 [json_name = "relativeUrl"];

Parameters
$var : string
Return values
$this

setScheduleTime()

Fecha de publicación automática. Solamente será modificable desde el método Schedule.

public setScheduleTime(Timestamp $var) : $this

Generated from protobuf field .google.protobuf.Timestamp schedule_time = 9 [json_name = "scheduleTime"];

Parameters
$var : Timestamp
Return values
$this

setSection()

Generated from protobuf field <code>.website.web.realtime.Section section = 5 [json_name = "section"];</code>

public setSection(Section $var) : $this
Parameters
$var : Section
Return values
$this

setSlug()

Slug de la noticia.

public setSlug(string $var) : $this

Generated from protobuf field string slug = 13 [json_name = "slug"];

Parameters
$var : string
Return values
$this

setSubtitle()

Generated from protobuf field <code>string subtitle = 4 [json_name = "subtitle"];</code>

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

setTitle()

Generated from protobuf field <code>string title = 2 [json_name = "title"];</code>

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

setUpdateTime()

Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];</code>

public setUpdateTime(Timestamp $var) : $this
Parameters
$var : Timestamp
Return values
$this

setUrl()

URL completa de la noticia en producción.

public setUrl(string $var) : $this

Generated from protobuf field string url = 14 [json_name = "url"];

Parameters
$var : string
Return values
$this

        
On this page

Search results