GoogleCloudDiscoveryengineV1UserEvent
UserEvent captures all metadata information Discovery Engine API needs to know about how end users interact with your website.
Properties
| Name | Type | Description |
|---|---|---|
| mediaInfo | object | Media-specific info. |
| filter | string | Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated |
| completionInfo | object | CompletionService.CompleteQuery details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search. |
| tagIds | array | A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups. |
| userInfo | object | Information about the end user. |
| sessionId | string | A unique identifier for tracking a visitor session with a length limit of 128 bytes. A session is an aggregation of an end user behavior in a time span. A general guideline to populate the session_id: |
| eventTime | string | Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened. |
| panel | object | Panel metadata associated with this user event. |
| conversionType | string | Optional. Conversion type. Required if UserEvent.event_type is `conversion`. This is a customer-defined conversion name in lowercase letters or numbers separated by "-", such as "watch", "good-visit" |
| feedback | object | Optional. This field is optional except for the `add-feedback` event types. |
| entity | string | Optional. Represents the entity for customers that may run multiple different entities, domains, sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We |
| engine | string | The Engine resource name, in the form of `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. Optional. Only required for Engine produced user events. For example |
| eventType | string | Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel or ordered list of |
| dataStore | string | The DataStore resource full name, of the form `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. Optional. Only required for user events whose data store |
| panels | array | Optional. List of panels associated with this event. Used for page-level impression data. |
| pageInfo | object | Page metadata such as categories and other critical information for certain event types such as `view-category-page`. |
| promotionIds | array | The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID. |
| attributionToken | string | Token to attribute an API response to user action(s) to trigger the event. Highly recommended for user events that are the result of RecommendationService.Recommend. This field enables accurate attrib |
| directUserRequest | boolean | Should set to true if the request is made directly from the end user, in which case the UserEvent.user_info.user_agent can be populated from the HTTP request. This flag should be set only if the API r |
| userPseudoId | string | Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique ide |
| searchInfo | object | SearchService.Search details related to the event. This field should be set for `search` event. |
| transactionInfo | object | The transaction metadata (if any) associated with this user event. |
| documents | array | List of Documents associated with this user event. This field is optional except for the following event types: * `view-item` * `add-to-cart` * `purchase` * `media-play` * `media-complete` In a `searc |
| attributes | object | Optional. Extra user event features to include in the recommendation model. These attributes must NOT contain data that needs to be parsed or processed further, e.g. JSON or other encodings. If you pr |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/vertex-ai-search/json-schema/vertex-ai-search-google-cloud-discoveryengine-v1-user-event-schema.json",
"title": "GoogleCloudDiscoveryengineV1UserEvent",
"description": "UserEvent captures all metadata information Discovery Engine API needs to know about how end users interact with your website.",
"x-generated": "2026-11-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/vertex-ai-search-projects-api-openapi.yml#/components/schemas/GoogleCloudDiscoveryengineV1UserEvent",
"properties": {
"mediaInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1MediaInfo",
"description": "Media-specific info."
},
"filter": {
"type": "string",
"description": "Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned."
},
"completionInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1CompletionInfo",
"description": "CompletionService.CompleteQuery details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search."
},
"tagIds": {
"items": {
"type": "string"
},
"type": "array",
"description": "A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups."
},
"userInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1UserInfo",
"description": "Information about the end user."
},
"sessionId": {
"type": "string",
"description": "A unique identifier for tracking a visitor session with a length limit of 128 bytes. A session is an aggregation of an end user behavior in a time span. A general guideline to populate the session_id: 1. If user has no activity for 30 min, a new session_id should be assigned. 2. The session_id should be unique across users, suggest use uuid or add UserEvent.user_pseudo_id as prefix."
},
"eventTime": {
"type": "string",
"description": "Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened.",
"format": "google-datetime"
},
"panel": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1PanelInfo",
"description": "Panel metadata associated with this user event."
},
"conversionType": {
"description": "Optional. Conversion type. Required if UserEvent.event_type is `conversion`. This is a customer-defined conversion name in lowercase letters or numbers separated by \"-\", such as \"watch\", \"good-visit\" etc. Do not set the field if UserEvent.event_type is not `conversion`. This mixes the custom conversion event with predefined events like `search`, `view-item` etc.",
"type": "string"
},
"feedback": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1Feedback",
"description": "Optional. This field is optional except for the `add-feedback` event types."
},
"entity": {
"type": "string",
"description": "Optional. Represents the entity for customers that may run multiple different entities, domains, sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that you set `entity` to get better per-entity search, completion, and prediction results."
},
"engine": {
"description": "The Engine resource name, in the form of `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. Optional. Only required for Engine produced user events. For example, user events from blended search.",
"type": "string"
},
"eventType": {
"description": "Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel or ordered list of Documents. * `view-home-page`: View of the home page. * `view-category-page`: View of a category page, e.g. Home > Men > Jeans Retail-related values: * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. Custom conversion value: * `conversion`: Customer defined conversion event.",
"type": "string"
},
"dataStore": {
"type": "string",
"description": "The DataStore resource full name, of the form `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. Optional. Only required for user events whose data store can't by determined by UserEvent.engine or UserEvent.documents. If data store is set in the parent of write/import/collect user event requests, this field can be omitted."
},
"panels": {
"items": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1PanelInfo"
},
"type": "array",
"description": "Optional. List of panels associated with this event. Used for page-level impression data."
},
"pageInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1PageInfo",
"description": "Page metadata such as categories and other critical information for certain event types such as `view-category-page`."
},
"promotionIds": {
"description": "The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID.",
"type": "array",
"items": {
"type": "string"
}
},
"attributionToken": {
"description": "Token to attribute an API response to user action(s) to trigger the event. Highly recommended for user events that are the result of RecommendationService.Recommend. This field enables accurate attribution of recommendation model performance. The value must be one of: * RecommendResponse.attribution_token for events that are the result of RecommendationService.Recommend. * SearchResponse.attribution_token for events that are the result of SearchService.Search. This token enables us to accurately attribute page view or conversion completion back to the event and the particular predict response containing this clicked/purchased product. If user clicks on product K in the recommendation results, pass RecommendResponse.attribution_token as a URL parameter to product K's page. When recording events on product K's page, log the RecommendResponse.attribution_token to this field.",
"type": "string"
},
"directUserRequest": {
"type": "boolean",
"description": "Should set to true if the request is made directly from the end user, in which case the UserEvent.user_info.user_agent can be populated from the HTTP request. This flag should be set only if the API request is made directly from the end user such as a mobile app (and not if a gateway or a server is processing and pushing the user events). This should not be set when using the JavaScript tag in UserEventService.CollectUserEvent."
},
"userPseudoId": {
"description": "Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor log in/out of the website. Do not set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. The field should not contain PII or user-data. We recommend to use Google Analytics [Client ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) for this field.",
"type": "string"
},
"searchInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1SearchInfo",
"description": "SearchService.Search details related to the event. This field should be set for `search` event."
},
"transactionInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1TransactionInfo",
"description": "The transaction metadata (if any) associated with this user event."
},
"documents": {
"type": "array",
"description": "List of Documents associated with this user event. This field is optional except for the following event types: * `view-item` * `add-to-cart` * `purchase` * `media-play` * `media-complete` In a `search` event, this field represents the documents returned to the end user on the current page (the end user may have not finished browsing the whole page yet). When a new page is returned to the end user, after pagination/filtering/ordering even for the same query, a new `search` event with different UserEvent.documents is desired.",
"items": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1DocumentInfo"
}
},
"attributes": {
"description": "Optional. Extra user event features to include in the recommendation model. These attributes must NOT contain data that needs to be parsed or processed further, e.g. JSON or other encodings. If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be consistent between imported events and events provided with prediction requests. This lets the Discovery Engine API use those custom attributes when training models and serving predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8 encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is `traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.",
"additionalProperties": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1CustomAttribute"
},
"type": "object"
}
},
"type": "object",
"$defs": {
"GoogleCloudDiscoveryengineV1CompletionInfo": {
"properties": {
"selectedSuggestion": {
"description": "Optional. End user selected CompleteQueryResponse.QuerySuggestion.suggestion.",
"type": "string"
},
"selectedPosition": {
"type": "integer",
"description": "End user selected CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0.",
"format": "int32"
}
},
"type": "object",
"description": "Detailed completion information including completion attribution token and clicked completion info."
},
"GoogleCloudDiscoveryengineV1CustomAttribute": {
"type": "object",
"properties": {
"numbers": {
"description": "The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is \"lengths_cm\". Exactly one of CustomAttribute.text or CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.",
"type": "array",
"items": {
"format": "double",
"type": "number"
}
},
"text": {
"description": "The textual values of this custom attribute. For example, `[\"yellow\", \"green\"]` when the key is \"color\". Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. Exactly one of CustomAttribute.text or CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.",
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "A custom attribute that is not explicitly modeled in a resource, e.g. UserEvent."
},
"GoogleCloudDiscoveryengineV1DocumentInfo": {
"type": "object",
"properties": {
"promotionIds": {
"description": "The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.",
"items": {
"type": "string"
},
"type": "array"
},
"quantity": {
"description": "Quantity of the Document associated with the user event. Defaults to 1. For example, this field is 2 if two quantities of the same Document are involved in a `add-to-cart` event. Required for events of the following event types: * `add-to-cart` * `purchase`",
"type": "integer",
"format": "int32"
},
"conversionValue": {
"description": "Optional. The conversion value associated with this Document. Must be set if UserEvent.event_type is \"conversion\". For example, a value of 1000 signifies that 1000 seconds were spent viewing a Document for the `watch` conversion type.",
"type": "number",
"format": "float"
},
"id": {
"description": "The Document resource ID.",
"type": "string"
},
"uri": {
"description": "The Document URI - only allowed for website data stores.",
"type": "string"
},
"joined": {
"readOnly": true,
"description": "Output only. Whether the referenced Document can be found in the data store.",
"type": "boolean"
},
"name": {
"description": "The Document resource full name, of the form: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`",
"type": "string"
}
},
"description": "Detailed document information associated with a user event."
},
"GoogleCloudDiscoveryengineV1Feedback": {
"type": "object",
"description": "Information about the user feedback. This information will be used for logging and metrics purpose.",
"properties": {
"reasons": {
"type": "array",
"items": {
"type": "string",
"enum": [
"REASON_UNSPECIFIED",
"INACCURATE_RESPONSE",
"NOT_RELEVANT",
"INCOMPREHENSIVE",
"OFFENSIVE_OR_UNSAFE",
"FORMAT_AND_STYLES",
"BAD_CITATION",
"CANVAS_NOT_GENERATED",
"CANVAS_QUALITY_BAD",
"CANVAS_EXPORT_FAILED",
"RELEVANT",
"COMPREHENSIVE",
"GOOD_CITATION",
"ACCURATE"
]
},
"description": "Optional. The reasons why the user gives feedback."
},
"conversationInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1FeedbackConversationInfo",
"description": "The related conversation information when user gives feedback."
},
"llmModelVersion": {
"type": "string",
"description": "The version of the LLM model that was used to generate the response."
},
"comment": {
"type": "string",
"description": "Optional. The additional user comment of the feedback."
},
"feedbackType": {
"description": "Required. Indicates whether the user gives a positive or negative feedback.",
"type": "string",
"enum": [
"FEEDBACK_TYPE_UNSPECIFIED",
"LIKE",
"DISLIKE"
]
},
"componentVersion": {
"description": "Optional. The version of the component that this report is being sent from.",
"type": "string"
},
"modelArmorDisputeInfo": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1FeedbackModelArmorDisputeInfo",
"description": "Optional. Optional Model Armor false-positive dispute metadata attached to feedback."
},
"dataTermsAccepted": {
"type": "boolean",
"description": "Optional. Whether the customer accepted data use terms."
},
"feedbackSource": {
"description": "Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.",
"type": "string",
"enum": [
"FEEDBACK_SOURCE_UNSPECIFIED",
"GOOGLE_CONSOLE",
"GOOGLE_WIDGET",
"GOOGLE_WEBAPP",
"GOOGLE_AGENTSPACE_MOBILE",
"GOOGLE_AGENTSPACE_DESKTOP"
]
}
}
},
"GoogleCloudDiscoveryengineV1FeedbackConversationInfo": {
"type": "object",
"properties": {
"taskName": {
"description": "Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format (canonical, or the short alias the Task API also accepts): projects/{project}/locations/{location}/agents/{agent}/tasks/{task} projects/{project}/locations/{location}/tasks/{task}",
"type": "string"
},
"trajectoryId": {
"type": "string",
"description": "Optional. The runtime trajectory id of the rated agent task turn, as set on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn."
},
"session": {
"description": "Name of the newly generated or continued session.",
"type": "string"
},
"query": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1Query",
"description": "Required. The user's search query."
},
"stepSeqNum": {
"format": "int64",
"type": "string",
"description": "Optional. The `TaskServerEvent.seq_num` of the step that opened the rated agent task reply."
},
"questionIndex": {
"description": "The index of the user input within the conversation messages.",
"type": "integer",
"format": "int32"
},
"assistToken": {
"description": "Optional. The token which could be used to fetch the assistant log.",
"type": "string"
},
"answerQueryToken": {
"type": "string",
"description": "Optional. The token which could be used to fetch the answer log."
}
},
"description": "The conversation information such as the question index and session name."
},
"GoogleCloudDiscoveryengineV1FeedbackModelArmorDisputeInfo": {
"description": "Information submitted when a user disputes a Model Armor `BLOCK` or `FLAG` verdict.",
"type": "object",
"properties": {
"templateName": {
"description": "Optional. Resource name of the Model Armor template that produced the sanitization result, in the format `projects/{project}/locations/{location}/templates/{id}`.",
"type": "string"
},
"sanitizationResultJson": {
"description": "Optional. The raw Model Armor `SanitizationResult`, serialized as JSON.",
"type": "string"
},
"expectedLabel": {
"description": "Optional. The expected-label reason chip selected by the user (for example, \"Everyday question\" or \"Legitimate work-related query\").",
"type": "string"
}
}
},
"GoogleCloudDiscoveryengineV1MediaInfo": {
"type": "object",
"description": "Media-specific user event information.",
"properties": {
"mediaProgressDuration": {
"format": "google-duration",
"description": "The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo.media_progress_duration.seconds should be set to 90.",
"type": "string"
},
"mediaProgressPercentage": {
"type": "number",
"format": "float",
"description": "Media progress should be computed using only the media_progress_duration relative to the media total length. This value must be between `[0, 1.0]` inclusive. If this is not a playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset."
}
}
},
"GoogleCloudDiscoveryengineV1PageInfo": {
"type": "object",
"properties": {
"pageCategory": {
"type": "string",
"description": "The most specific category associated with a category page. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: `\"pageCategory\" : \"Sales > 2017 Black Friday Deals\"`. Required for `view-category-page` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned."
},
"uri": {
"description": "Complete URL (window.location.href) of the user's current page. When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically. Maximum length 5,000 characters.",
"type": "string"
},
"pageviewId": {
"description": "A unique ID of a web page view. This should be kept the same for all user events triggered from the same pageview. For example, an item detail page view could trigger multiple events as the user is browsing the page. The `pageview_id` property should be kept the same for all these events so that they can be grouped together properly. When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically.",
"type": "string"
},
"referrerUri": {
"description": "The referrer URL of the current page. When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically. However, some browser privacy restrictions may cause this field to be empty.",
"type": "string"
}
},
"description": "Detailed page information."
},
"GoogleCloudDiscoveryengineV1PanelInfo": {
"type": "object",
"description": "Detailed panel information associated with a user event.",
"properties": {
"totalPanels": {
"description": "The total number of panels, including this one, shown to the user. Must be set if panel_position is set.",
"format": "int32",
"type": "integer"
},
"panelId": {
"type": "string",
"description": "Required. The panel ID."
},
"documents": {
"description": "Optional. The document IDs associated with this panel.",
"items": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1DocumentInfo"
},
"type": "array"
},
"panelPosition": {
"format": "int32",
"type": "integer",
"description": "The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set."
},
"displayName": {
"description": "The display name of the panel.",
"type": "string"
}
}
},
"GoogleCloudDiscoveryengineV1Query": {
"properties": {
"queryId": {
"type": "string",
"description": "Output only. Unique Id for the query.",
"readOnly": true
},
"text": {
"description": "Plain text.",
"type": "string"
}
},
"type": "object",
"description": "Defines a user inputed query."
},
"GoogleCloudDiscoveryengineV1SearchInfo": {
"description": "Detailed search information.",
"type": "object",
"properties": {
"offset": {
"description": "An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant). See SearchRequest.offset for definition. If this field is negative, an `INVALID_ARGUMENT` is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.",
"type": "integer",
"format": "int32"
},
"searchQuery": {
"description": "Optional. The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.",
"type": "string"
},
"orderBy": {
"description": "The order in which products are returned, if applicable. See SearchRequest.order_by for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.",
"type": "string"
}
}
},
"GoogleCloudDiscoveryengineV1TransactionInfo": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"description": "Required. Currency code. Use three-character ISO-4217 code."
},
"transactionId": {
"description": "The transaction ID with a length limit of 128 characters.",
"type": "string"
},
"discountValue": {
"format": "float",
"type": "number",
"description": "The total discount(s) value applied to this transaction. This figure should be excluded from TransactionInfo.value For example, if a user paid TransactionInfo.value amount, then nominal (pre-discount) value of the transaction is the sum of TransactionInfo.value and TransactionInfo.discount_value This means that profit is calculated the same way, regardless of the discount value, and that TransactionInfo.discount_value can be larger than TransactionInfo.value: * Profit = value - tax - cost"
},
"value": {
"type": "number",
"description": "Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include.",
"format": "float"
},
"cost": {
"description": "All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: * Profit = value - tax - cost",
"format": "float",
"type": "number"
},
"tax": {
"description": "All the taxes associated with the transaction.",
"format": "float",
"type": "number"
}
},
"description": "A transaction represents the entire purchase transaction."
},
"GoogleCloudDiscoveryengineV1UserInfo": {
"properties": {
"timeZone": {
"description": "Optional. IANA time zone, e.g. Europe/Budapest.",
"type": "string"
},
"preciseLocation": {
"$ref": "#/$defs/GoogleCloudDiscoveryengineV1UserInfoPreciseLocation",
"description": "Optional. Input only. Precise location of the user. It is used in Custom Ranking to calculate the distance between the user and the relevant documents."
},
"userId": {
"description": "Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. Represents an opaque ID to the Search API. The Search API doesn't interpret the value in any way. This field is used to associate events with a user across sessions if the events are being uploaded.",
"type": "string"
},
"userAgent": {
"description": "User agent as included in the HTTP header. The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or if UserEvent.direct_user_request is set.",
"type": "string"
}
},
"description": "Information of an end user.",
"type": "object"
},
"GoogleCloudDiscoveryengineV1UserInfoPreciseLocation": {
"type": "object",
"properties": {
"point": {
"$ref": "#/$defs/GoogleTypeLatLng",
"description": "Optional. Location represented by a latitude/longitude point."
},
"address": {
"description": "Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.",
"type": "string"
}
},
"description": "Precise location info with multiple representation options."
},
"GoogleTypeLatLng": {
"properties": {
"longitude": {
"type": "number",
"description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
"format": "double"
},
"latitude": {
"description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
"format": "double",
"type": "number"
}
},
"type": "object",
"description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/vertex-ai-search-google-cloud-discoveryengine-v1-user-event"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.