Class Context
Implements
Inherited Members
Namespace: Google.Apis.CloudSearch.v1.Data
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class Context : IDirectResponseSchema
Properties
App
[Optional] App where the card should be shown. If missing, the card will be shown in TOPAZ.
Declaration
[JsonProperty("app")]
public virtual IList<string> App { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
DayOfWeek
[Optional] Day of week when the card should be shown, where 0 is Monday.
Declaration
[JsonProperty("dayOfWeek")]
public virtual IList<int?> DayOfWeek { get; set; }
Property Value
Type | Description |
---|---|
IList<int?> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
EndDateSec
[Optional] Date (in seconds since epoch) when the card should stop being shown. If missing, end_date_sec will be set to Jan 1st, 2100.
Declaration
[JsonProperty("endDateSec")]
public virtual long? EndDateSec { get; set; }
Property Value
Type | Description |
---|---|
long? |
EndDayOffsetSec
[Optional] End time in seconds, within a day, when the card should stop being shown if it's within [start_date_sec, end_date_sec]. If missing, this is set to 86400 (24 hours x 3600 sec/hour), i.e., midnight next day.
Declaration
[JsonProperty("endDayOffsetSec")]
public virtual long? EndDayOffsetSec { get; set; }
Property Value
Type | Description |
---|---|
long? |
Locale
[Optional] The locales for which the card should be triggered (e.g., en_US and en_CA). If missing, the card is going to show to clients regardless of their locale.
Declaration
[JsonProperty("locale")]
public virtual IList<string> Locale { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Location
[Optional] Text-free locations where the card should be shown. This is expected to match the user's location in focus. If no location is specified, the card will be shown for any location.
Declaration
[JsonProperty("location")]
public virtual IList<string> Location { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Query
[Required only for Answer and RHS cards - will be ignored for Homepage] cards. It's the exact case-insensitive queries that will trigger the Answer or RHS card.
Declaration
[JsonProperty("query")]
public virtual IList<string> Query { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
StartDateSec
[Optional] Date (in seconds since epoch) when the card should start being shown. If missing, start_date_sec will be Jan 1st, 1970 UTC.
Declaration
[JsonProperty("startDateSec")]
public virtual long? StartDateSec { get; set; }
Property Value
Type | Description |
---|---|
long? |
StartDayOffsetSec
[Optional] Start time in seconds, within a day, when the card should be shown if it's within [start_date_sec, end_date_sec]. If 0, the card will be shown from 12:00am on.
Declaration
[JsonProperty("startDayOffsetSec")]
public virtual long? StartDayOffsetSec { get; set; }
Property Value
Type | Description |
---|---|
long? |
Surface
[Optional] Surface where the card should be shown in. If missing, the card will be shown in any surface.
Declaration
[JsonProperty("surface")]
public virtual IList<string> Surface { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Type
[Required] Type of the card (homepage, Answer or RHS).
Declaration
[JsonProperty("type")]
public virtual IList<string> Type { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |