Class 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 type google.cloud.discoveryengine.v1beta.PageInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • clear

        public PageInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • getDefaultInstanceForType

        public PageInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public PageInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public PageInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public PageInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • setField

        public PageInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • clearField

        public PageInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • clearOneof

        public PageInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • setRepeatedField

        public PageInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • addRepeatedField

        public PageInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • mergeFrom

        public PageInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PageInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getPageviewId in interface PageInfoOrBuilder
        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:
        getPageviewIdBytes in interface PageInfoOrBuilder
        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:
        getPageCategory in interface PageInfoOrBuilder
        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:
        getPageCategoryBytes in interface PageInfoOrBuilder
        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:
        getUri in interface PageInfoOrBuilder
        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:
        getUriBytes in interface PageInfoOrBuilder
        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:
        getReferrerUri in interface PageInfoOrBuilder
        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:
        getReferrerUriBytes in interface PageInfoOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>
      • mergeUnknownFields

        public final PageInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PageInfo.Builder>