JSON representation | |
---|---|
{ "name": string, "rawText": string, "textValue": string, "status": { object ( |
Fields | ||
---|---|---|
name |
name of the argument being provided for the input. |
|
rawText |
The raw text, typed or spoken, that provided the value for the argument. |
|
textValue |
Specified when query pattern includes a |
|
status |
Specified when an error was encountered while computing the argument. For example, the built-in intent "actions.intent.PLACE" can return an error status if the user denied the permission to access their device location. |
|
Union field value . One of the following is specified. value can be only one of the following: |
||
intValue |
Specified when query pattern includes a $org.schema.type.Number type or expected input has a built-in intent: "assistant.intent.action.NUMBER". |
|
floatValue |
Specified for built-in intent: "actions.intent.NUMBER" |
|
boolValue |
Specified when query pattern includes a |
|
datetimeValue |
Specified for the built-in intent: |
|
placeValue |
Specified when query pattern includes a $org.schema.type.Location type or expected input has a built-in intent: "actions.intent.PLACE". |
|
extension |
Extension whose type depends on the argument. For example, if the argument name is An object containing fields of an arbitrary type. An additional field |
|
structuredValue |
Specified when Google needs to pass data value in JSON format. |
Status
The Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status
message contains three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the API Design Guide.
JSON representation | |
---|---|
{ "code": integer, "message": string, "details": [ { "@type": string, field1: ..., ... } ] } |
Fields | |
---|---|
code |
The status code, which should be an enum value of |
message |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the |
details[] |
A list of messages that carry the error details. There is a common set of message types for APIs to use. An object containing fields of an arbitrary type. An additional field |
DateTime
date and time argument value parsed from user input. Does not include time zone information.
JSON representation | |
---|---|
{ "date": { object ( |
Fields | |
---|---|
date |
date value |
time |
time value |
Date
Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:
- A full date, with non-zero year, month and day values
- A month and day value, with a zero year, e.g. an anniversary
- A year on its own, with zero month and day values
- A year and month value, with a zero day, e.g. a credit card expiration date
Related types are google.type.TimeOfDay
and google.protobuf.Timestamp
.
JSON representation | |
---|---|
{ "year": integer, "month": integer, "day": integer } |
Fields | |
---|---|
year |
Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. |
month |
Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day. |
day |
Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant. |
TimeOfDay
Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date
and google.protobuf.Timestamp
.
JSON representation | |
---|---|
{ "hours": integer, "minutes": integer, "seconds": integer, "nanos": integer } |
Fields | |
---|---|
hours |
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
minutes |
Minutes of hour of day. Must be from 0 to 59. |
seconds |
Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. |
nanos |
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |