Documentation

RealtimeNews extends Message
in package

Generated from protobuf message <code>website.admin.realtime_news.RealtimeNews</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
Output only. Fecha de creación de la noticia.
$highlighted  : mixed
Flag que indica si la noticia es destacada.
$id  : mixed
Generated from protobuf field <code>string id = 1 [json_name = "id"];</code>
$news_type  : mixed
Generated from protobuf field <code>.website.admin.realtime_news.RealtimeNews.NewsType news_type = 6 [json_name = "newsType"];</code>
$publish_time  : mixed
Output only. Fecha de publicación: Se asigna automáticamente al publicar. Solamente es modificable desde el método Publish.
$relative_url  : mixed
Output only. URL relativa al dominio de la noticia.
$schedule_time  : mixed
Fecha de publicación automática. Solamente será modificable desde el método Schedule.
$section  : mixed
Generated from protobuf field <code>string section = 5 [json_name = "section"];</code>
$slug  : mixed
Output only. 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
Output only.
$url  : mixed
Output only. URL completa de la noticia en producción.

Methods

__construct()  : mixed
Constructor.
clearCreateTime()  : mixed
clearPublishTime()  : mixed
clearScheduleTime()  : mixed
clearUpdateTime()  : mixed
getAlternativeTitle()  : string
Título alternativo más corto para listados y otros sitios que lo necesitan.
getCover()  : string
Imagen de portada para referenciarla en la home y en redes sociales.
getCreateTime()  : Timestamp|null
Output only. Fecha de creación de la noticia.
getHighlighted()  : bool
Flag que indica si la noticia es destacada.
getId()  : string
Generated from protobuf field <code>string id = 1 [json_name = "id"];</code>
getNewsType()  : int
Generated from protobuf field <code>.website.admin.realtime_news.RealtimeNews.NewsType news_type = 6 [json_name = "newsType"];</code>
getPublishTime()  : Timestamp|null
Output only. Fecha de publicación: Se asigna automáticamente al publicar. Solamente es modificable desde el método Publish.
getRelativeUrl()  : string
Output only. URL relativa al dominio de la noticia.
getScheduleTime()  : Timestamp|null
Fecha de publicación automática. Solamente será modificable desde el método Schedule.
getSection()  : string
Generated from protobuf field <code>string section = 5 [json_name = "section"];</code>
getSlug()  : string
Output only. 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
Output only.
getUrl()  : string
Output only. URL completa de la noticia en producción.
hasCreateTime()  : mixed
hasPublishTime()  : mixed
hasScheduleTime()  : 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
Output only. Fecha de creación de la noticia.
setHighlighted()  : $this
Flag que indica si la noticia es destacada.
setId()  : $this
Generated from protobuf field <code>string id = 1 [json_name = "id"];</code>
setNewsType()  : $this
Generated from protobuf field <code>.website.admin.realtime_news.RealtimeNews.NewsType news_type = 6 [json_name = "newsType"];</code>
setPublishTime()  : $this
Output only. Fecha de publicación: Se asigna automáticamente al publicar. Solamente es modificable desde el método Publish.
setRelativeUrl()  : $this
Output only. URL relativa al dominio de la noticia.
setScheduleTime()  : $this
Fecha de publicación automática. Solamente será modificable desde el método Schedule.
setSection()  : $this
Generated from protobuf field <code>string section = 5 [json_name = "section"];</code>
setSlug()  : $this
Output only. 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
Output only.
setUrl()  : $this
Output only. 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 = ''

Generated from protobuf field string cover = 17 [json_name = "cover"];

$create_time

Output only. 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"];

$id

Generated from protobuf field <code>string id = 1 [json_name = "id"];</code>

protected mixed $id = ''

$news_type

Generated from protobuf field <code>.website.admin.realtime_news.RealtimeNews.NewsType news_type = 6 [json_name = "newsType"];</code>

protected mixed $news_type = 0

$publish_time

Output only. Fecha de publicación: Se asigna automáticamente al publicar. Solamente es modificable desde el método Publish.

protected mixed $publish_time = null

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

$relative_url

Output only. URL relativa al dominio de la noticia.

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>string section = 5 [json_name = "section"];</code>

protected mixed $section = ''

$slug

Output only. 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

Output only.

protected mixed $update_time = null

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

$url

Output only. 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 $id
@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 string $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
      Output only. Fecha de creación de la noticia.
@type \Google\Protobuf\Timestamp $publish_time
      Output only. Fecha de publicación: Se asigna automáticamente al publicar. Solamente es modificable
      desde el método Publish.
@type \Google\Protobuf\Timestamp $update_time
      Output only.
@type string $slug
      Output only. Slug de la noticia.
@type string $url
      Output only. URL completa de la noticia en producción.
@type string $relative_url
      Output only. URL relativa al dominio de la noticia.
@type bool $highlighted
      Flag que indica si la noticia es destacada.
@type string $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() : string

Generated from protobuf field string cover = 17 [json_name = "cover"];

Return values
string

getCreateTime()

Output only. 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

getId()

Generated from protobuf field <code>string id = 1 [json_name = "id"];</code>

public getId() : string
Return values
string

getNewsType()

Generated from protobuf field <code>.website.admin.realtime_news.RealtimeNews.NewsType news_type = 6 [json_name = "newsType"];</code>

public getNewsType() : int
Return values
int

getPublishTime()

Output only. Fecha de publicación: Se asigna automáticamente al publicar. Solamente es modificable desde el método Publish.

public getPublishTime() : Timestamp|null

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

Return values
Timestamp|null

getRelativeUrl()

Output only. URL relativa al dominio de la noticia.

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>string section = 5 [json_name = "section"];</code>

public getSection() : string
Return values
string

getSlug()

Output only. 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()

Output only.

public getUpdateTime() : Timestamp|null

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

Return values
Timestamp|null

getUrl()

Output only. 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(string $var) : $this

Generated from protobuf field string cover = 17 [json_name = "cover"];

Parameters
$var : string
Return values
$this

setCreateTime()

Output only. 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

setId()

Generated from protobuf field <code>string id = 1 [json_name = "id"];</code>

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

setNewsType()

Generated from protobuf field <code>.website.admin.realtime_news.RealtimeNews.NewsType news_type = 6 [json_name = "newsType"];</code>

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

setPublishTime()

Output only. Fecha de publicación: Se asigna automáticamente al publicar. Solamente es modificable desde el método Publish.

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()

Output only. URL relativa al dominio de la noticia.

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>string section = 5 [json_name = "section"];</code>

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

setSlug()

Output only. 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()

Output only.

public setUpdateTime(Timestamp $var) : $this

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

Parameters
$var : Timestamp
Return values
$this

setUrl()

Output only. 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