Class PageInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
- com.google.cloud.discoveryengine.v1beta.PageInfo.Builder
-
- All Implemented Interfaces:
PageInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PageInfo
public static final class PageInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder> implements PageInfoOrBuilder
Detailed page information.
Protobuf typegoogle.cloud.discoveryengine.v1beta.PageInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PageInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PageInfobuild()PageInfobuildPartial()PageInfo.Builderclear()PageInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PageInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PageInfo.BuilderclearPageCategory()The most specific category associated with a category page.PageInfo.BuilderclearPageviewId()A unique ID of a web page view.PageInfo.BuilderclearReferrerUri()The referrer URL of the current page.PageInfo.BuilderclearUri()Complete URL (window.location.href) of the user's current page.PageInfo.Builderclone()PageInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetPageCategory()The most specific category associated with a category page.com.google.protobuf.ByteStringgetPageCategoryBytes()The most specific category associated with a category page.StringgetPageviewId()A unique ID of a web page view.com.google.protobuf.ByteStringgetPageviewIdBytes()A unique ID of a web page view.StringgetReferrerUri()The referrer URL of the current page.com.google.protobuf.ByteStringgetReferrerUriBytes()The referrer URL of the current page.StringgetUri()Complete URL (window.location.href) of the user's current page.com.google.protobuf.ByteStringgetUriBytes()Complete URL (window.location.href) of the user's current page.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PageInfo.BuildermergeFrom(PageInfo other)PageInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PageInfo.BuildermergeFrom(com.google.protobuf.Message other)PageInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PageInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PageInfo.BuildersetPageCategory(String value)The most specific category associated with a category page.PageInfo.BuildersetPageCategoryBytes(com.google.protobuf.ByteString value)The most specific category associated with a category page.PageInfo.BuildersetPageviewId(String value)A unique ID of a web page view.PageInfo.BuildersetPageviewIdBytes(com.google.protobuf.ByteString value)A unique ID of a web page view.PageInfo.BuildersetReferrerUri(String value)The referrer URL of the current page.PageInfo.BuildersetReferrerUriBytes(com.google.protobuf.ByteString value)The referrer URL of the current page.PageInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PageInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PageInfo.BuildersetUri(String value)Complete URL (window.location.href) of the user's current page.PageInfo.BuildersetUriBytes(com.google.protobuf.ByteString value)Complete URL (window.location.href) of the user's current page.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
clear
public PageInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
getDefaultInstanceForType
public PageInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PageInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PageInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PageInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
setField
public PageInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
clearField
public PageInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
clearOneof
public PageInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
setRepeatedField
public PageInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
addRepeatedField
public PageInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
mergeFrom
public PageInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PageInfo.Builder>
-
mergeFrom
public PageInfo.Builder mergeFrom(PageInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
mergeFrom
public PageInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PageInfo.Builder>- Throws:
IOException
-
getPageviewId
public 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;- Specified by:
getPageviewIdin interfacePageInfoOrBuilder- Returns:
- The pageviewId.
-
getPageviewIdBytes
public 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;- Specified by:
getPageviewIdBytesin interfacePageInfoOrBuilder- Returns:
- The bytes for pageviewId.
-
setPageviewId
public 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;- Parameters:
value- The pageviewId to set.- Returns:
- This builder for chaining.
-
clearPageviewId
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;- Returns:
- This builder for chaining.
-
setPageviewIdBytes
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;- Parameters:
value- The bytes for pageviewId to set.- Returns:
- This builder for chaining.
-
getPageCategory
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, please 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;- Specified by:
getPageCategoryin interfacePageInfoOrBuilder- Returns:
- The pageCategory.
-
getPageCategoryBytes
public 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, please 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;- Specified by:
getPageCategoryBytesin interfacePageInfoOrBuilder- Returns:
- The bytes for pageCategory.
-
setPageCategory
public 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, please 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;- Parameters:
value- The pageCategory to set.- Returns:
- This builder for chaining.
-
clearPageCategory
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, please 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;- Returns:
- This builder for chaining.
-
setPageCategoryBytes
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, please 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;- Parameters:
value- The bytes for pageCategory to set.- Returns:
- This builder for chaining.
-
getUri
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;- Specified by:
getUriin interfacePageInfoOrBuilder- Returns:
- The uri.
-
getUriBytes
public 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;- Specified by:
getUriBytesin interfacePageInfoOrBuilder- Returns:
- The bytes for uri.
-
setUri
public 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;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
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;- Returns:
- This builder for chaining.
-
setUriBytes
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;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getReferrerUri
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;- Specified by:
getReferrerUriin interfacePageInfoOrBuilder- Returns:
- The referrerUri.
-
getReferrerUriBytes
public 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;- Specified by:
getReferrerUriBytesin interfacePageInfoOrBuilder- Returns:
- The bytes for referrerUri.
-
setReferrerUri
public 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;- Parameters:
value- The referrerUri to set.- Returns:
- This builder for chaining.
-
clearReferrerUri
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;- Returns:
- This builder for chaining.
-
setReferrerUriBytes
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;- Parameters:
value- The bytes for referrerUri to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PageInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
mergeUnknownFields
public final PageInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
-
-