public static final class PageInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder> implements PageInfoOrBuilder
Detailed page information.Protobuf type
google.cloud.discoveryengine.v1beta.PageInfo| Modifier and Type | Method and Description |
|---|---|
PageInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PageInfo |
build() |
PageInfo |
buildPartial() |
PageInfo.Builder |
clear() |
PageInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PageInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PageInfo.Builder |
clearPageCategory()
The most specific category associated with a category page.
|
PageInfo.Builder |
clearPageviewId()
A unique ID of a web page view.
|
PageInfo.Builder |
clearReferrerUri()
The referrer URL of the current page.
|
PageInfo.Builder |
clearUri()
Complete URL (window.location.href) of the user's current page.
|
PageInfo.Builder |
clone() |
PageInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getPageCategory()
The most specific category associated with a category page.
|
com.google.protobuf.ByteString |
getPageCategoryBytes()
The most specific category associated with a category page.
|
String |
getPageviewId()
A unique ID of a web page view.
|
com.google.protobuf.ByteString |
getPageviewIdBytes()
A unique ID of a web page view.
|
String |
getReferrerUri()
The referrer URL of the current page.
|
com.google.protobuf.ByteString |
getReferrerUriBytes()
The referrer URL of the current page.
|
String |
getUri()
Complete URL (window.location.href) of the user's current page.
|
com.google.protobuf.ByteString |
getUriBytes()
Complete URL (window.location.href) of the user's current page.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PageInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PageInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
PageInfo.Builder |
mergeFrom(PageInfo other) |
PageInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PageInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PageInfo.Builder |
setPageCategory(String value)
The most specific category associated with a category page.
|
PageInfo.Builder |
setPageCategoryBytes(com.google.protobuf.ByteString value)
The most specific category associated with a category page.
|
PageInfo.Builder |
setPageviewId(String value)
A unique ID of a web page view.
|
PageInfo.Builder |
setPageviewIdBytes(com.google.protobuf.ByteString value)
A unique ID of a web page view.
|
PageInfo.Builder |
setReferrerUri(String value)
The referrer URL of the current page.
|
PageInfo.Builder |
setReferrerUriBytes(com.google.protobuf.ByteString value)
The referrer URL of the current page.
|
PageInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PageInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PageInfo.Builder |
setUri(String value)
Complete URL (window.location.href) of the user's current page.
|
PageInfo.Builder |
setUriBytes(com.google.protobuf.ByteString value)
Complete URL (window.location.href) of the user's current page.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PageInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PageInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PageInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PageInfo.Builder>public PageInfo.Builder mergeFrom(PageInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public PageInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PageInfo.Builder>IOExceptionpublic String getPageviewId()
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.
string pageview_id = 1;getPageviewId in interface PageInfoOrBuilderpublic com.google.protobuf.ByteString getPageviewIdBytes()
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.
string pageview_id = 1;getPageviewIdBytes in interface PageInfoOrBuilderpublic PageInfo.Builder setPageviewId(String value)
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.
string pageview_id = 1;value - The pageviewId to set.public PageInfo.Builder clearPageviewId()
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.
string pageview_id = 1;public PageInfo.Builder setPageviewIdBytes(com.google.protobuf.ByteString value)
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.
string pageview_id = 1;value - The bytes for pageviewId to set.public String getPageCategory()
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.
string page_category = 2;getPageCategory in interface PageInfoOrBuilderpublic com.google.protobuf.ByteString getPageCategoryBytes()
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.
string page_category = 2;getPageCategoryBytes in interface PageInfoOrBuilderpublic PageInfo.Builder setPageCategory(String value)
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.
string page_category = 2;value - The pageCategory to set.public PageInfo.Builder clearPageCategory()
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.
string page_category = 2;public PageInfo.Builder setPageCategoryBytes(com.google.protobuf.ByteString value)
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.
string page_category = 2;value - The bytes for pageCategory to set.public String getUri()
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.
string uri = 3;getUri in interface PageInfoOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
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.
string uri = 3;getUriBytes in interface PageInfoOrBuilderpublic PageInfo.Builder setUri(String value)
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.
string uri = 3;value - The uri to set.public PageInfo.Builder clearUri()
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.
string uri = 3;public PageInfo.Builder setUriBytes(com.google.protobuf.ByteString value)
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.
string uri = 3;value - The bytes for uri to set.public String getReferrerUri()
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.
string referrer_uri = 4;getReferrerUri in interface PageInfoOrBuilderpublic com.google.protobuf.ByteString getReferrerUriBytes()
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.
string referrer_uri = 4;getReferrerUriBytes in interface PageInfoOrBuilderpublic PageInfo.Builder setReferrerUri(String value)
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.
string referrer_uri = 4;value - The referrerUri to set.public PageInfo.Builder clearReferrerUri()
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.
string referrer_uri = 4;public PageInfo.Builder setReferrerUriBytes(com.google.protobuf.ByteString value)
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.
string referrer_uri = 4;value - The bytes for referrerUri to set.public final PageInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>public final PageInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>Copyright © 2025 Google LLC. All rights reserved.