Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::PageInfo.
Detailed page information.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#page_category
defpage_category()->::String
Returns
(::String) — 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.
#page_category=
defpage_category=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
#pageview_id
defpageview_id()->::String
Returns
(::String) — 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.
#pageview_id=
defpageview_id=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
#referrer_uri
defreferrer_uri()->::String
Returns
(::String) — 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.
#referrer_uri=
defreferrer_uri=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
#uri
defuri()->::String
Returns
(::String) — 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.
#uri=
defuri=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::PageInfo (v0.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.21.0 (latest)](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.20.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.20.1/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.19.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.19.1/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.18.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.18.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.17.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.17.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.16.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.16.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.15.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.15.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.14.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.14.2/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.13.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.13.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.12.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.12.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.11.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.11.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.10.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.10.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.9.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.9.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.8.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.8.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.7.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.7.2/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.6.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.6.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.5.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.5.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.4.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.4.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.3.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.3.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.2.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.2.1/Google-Cloud-DiscoveryEngine-V1beta-PageInfo)\n- [0.1.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.1.0/Google-Cloud-DiscoveryEngine-V1beta-PageInfo) \nReference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::PageInfo.\n\nDetailed page information. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #page_category\n\n def page_category() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The most specific category associated with a category page.\n\n To represent full path of category, use '\\\u003e' sign to separate different\n hierarchies. If '\\\u003e' is part of the category name, replace it with\n other character(s).\n\n Category pages include special pages such as sales or promotions. For\n instance, a special sale page may have the category hierarchy:\n `\"pageCategory\" : \"Sales \u003e 2017 Black Friday Deals\"`.\n\n Required for `view-category-page` events. Other event types should not set\n this field. Otherwise, an `INVALID_ARGUMENT` error is returned.\n\n### #page_category=\n\n def page_category=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The most specific category associated with a category page.\n\n\n To represent full path of category, use '\\\u003e' sign to separate different\n hierarchies. If '\\\u003e' is part of the category name, replace it with\n other character(s).\n\n Category pages include special pages such as sales or promotions. For\n instance, a special sale page may have the category hierarchy:\n `\"pageCategory\" : \"Sales \u003e 2017 Black Friday Deals\"`.\n\n Required for `view-category-page` events. Other event types should not set\nthis field. Otherwise, an `INVALID_ARGUMENT` error is returned. \n**Returns**\n\n- (::String) --- The most specific category associated with a category page.\n\n To represent full path of category, use '\\\u003e' sign to separate different\n hierarchies. If '\\\u003e' is part of the category name, replace it with\n other character(s).\n\n Category pages include special pages such as sales or promotions. For\n instance, a special sale page may have the category hierarchy:\n `\"pageCategory\" : \"Sales \u003e 2017 Black Friday Deals\"`.\n\n Required for `view-category-page` events. Other event types should not set\n this field. Otherwise, an `INVALID_ARGUMENT` error is returned.\n\n### #pageview_id\n\n def pageview_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A unique ID of a web page view.\n\n This should be kept the same for all user events triggered from the same\n pageview. For example, an item detail page view could trigger multiple\n events as the user is browsing the page. The `pageview_id` property should\n be kept the same for all these events so that they can be grouped together\n properly.\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically.\n\n### #pageview_id=\n\n def pageview_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A unique ID of a web page view.\n\n\n This should be kept the same for all user events triggered from the same\n pageview. For example, an item detail page view could trigger multiple\n events as the user is browsing the page. The `pageview_id` property should\n be kept the same for all these events so that they can be grouped together\n properly.\n\n When using the client side event reporting with JavaScript pixel and Google\nTag Manager, this value is filled in automatically. \n**Returns**\n\n- (::String) --- A unique ID of a web page view.\n\n This should be kept the same for all user events triggered from the same\n pageview. For example, an item detail page view could trigger multiple\n events as the user is browsing the page. The `pageview_id` property should\n be kept the same for all these events so that they can be grouped together\n properly.\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically.\n\n### #referrer_uri\n\n def referrer_uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The referrer URL of the current page.\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically. However, some browser\n privacy restrictions may cause this field to be empty.\n\n### #referrer_uri=\n\n def referrer_uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The referrer URL of the current page.\n\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically. However, some browser\nprivacy restrictions may cause this field to be empty. \n**Returns**\n\n- (::String) --- The referrer URL of the current page.\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically. However, some browser\n privacy restrictions may cause this field to be empty.\n\n### #uri\n\n def uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Complete URL (window.location.href) of the user's current page.\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically. Maximum length 5,000\n characters.\n\n### #uri=\n\n def uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Complete URL (window.location.href) of the user's current page.\n\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically. Maximum length 5,000\ncharacters. \n**Returns**\n\n- (::String) --- Complete URL (window.location.href) of the user's current page.\n\n When using the client side event reporting with JavaScript pixel and Google\n Tag Manager, this value is filled in automatically. Maximum length 5,000\n characters."]]