Class WebDetection.WebPage.Builder

    • 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<WebDetection.WebPage.Builder>
      • clear

        public WebDetection.WebPage.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<WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • getDefaultInstanceForType

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

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

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

        public WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • setField

        public WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • clearField

        public WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • clearOneof

        public WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • setRepeatedField

        public WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • addRepeatedField

        public WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WebDetection.WebPage.Builder>
      • mergeFrom

        public WebDetection.WebPage.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<WebDetection.WebPage.Builder>
        Throws:
        IOException
      • getUrlBytes

        public com.google.protobuf.ByteString getUrlBytes()
         The result web page URL.
         
        string url = 1;
        Specified by:
        getUrlBytes in interface WebDetection.WebPageOrBuilder
        Returns:
        The bytes for url.
      • setUrl

        public WebDetection.WebPage.Builder setUrl​(String value)
         The result web page URL.
         
        string url = 1;
        Parameters:
        value - The url to set.
        Returns:
        This builder for chaining.
      • setUrlBytes

        public WebDetection.WebPage.Builder setUrlBytes​(com.google.protobuf.ByteString value)
         The result web page URL.
         
        string url = 1;
        Parameters:
        value - The bytes for url to set.
        Returns:
        This builder for chaining.
      • getScore

        public float getScore()
         (Deprecated) Overall relevancy score for the web page.
         
        float score = 2;
        Specified by:
        getScore in interface WebDetection.WebPageOrBuilder
        Returns:
        The score.
      • setScore

        public WebDetection.WebPage.Builder setScore​(float value)
         (Deprecated) Overall relevancy score for the web page.
         
        float score = 2;
        Parameters:
        value - The score to set.
        Returns:
        This builder for chaining.
      • clearScore

        public WebDetection.WebPage.Builder clearScore()
         (Deprecated) Overall relevancy score for the web page.
         
        float score = 2;
        Returns:
        This builder for chaining.
      • getPageTitleBytes

        public com.google.protobuf.ByteString getPageTitleBytes()
         Title for the web page, may contain HTML markups.
         
        string page_title = 3;
        Specified by:
        getPageTitleBytes in interface WebDetection.WebPageOrBuilder
        Returns:
        The bytes for pageTitle.
      • setPageTitle

        public WebDetection.WebPage.Builder setPageTitle​(String value)
         Title for the web page, may contain HTML markups.
         
        string page_title = 3;
        Parameters:
        value - The pageTitle to set.
        Returns:
        This builder for chaining.
      • clearPageTitle

        public WebDetection.WebPage.Builder clearPageTitle()
         Title for the web page, may contain HTML markups.
         
        string page_title = 3;
        Returns:
        This builder for chaining.
      • setPageTitleBytes

        public WebDetection.WebPage.Builder setPageTitleBytes​(com.google.protobuf.ByteString value)
         Title for the web page, may contain HTML markups.
         
        string page_title = 3;
        Parameters:
        value - The bytes for pageTitle to set.
        Returns:
        This builder for chaining.
      • getFullMatchingImagesCount

        public int getFullMatchingImagesCount()
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
        Specified by:
        getFullMatchingImagesCount in interface WebDetection.WebPageOrBuilder
      • setFullMatchingImages

        public WebDetection.WebPage.Builder setFullMatchingImages​(int index,
                                                                  WebDetection.WebImage value)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • setFullMatchingImages

        public WebDetection.WebPage.Builder setFullMatchingImages​(int index,
                                                                  WebDetection.WebImage.Builder builderForValue)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • addFullMatchingImages

        public WebDetection.WebPage.Builder addFullMatchingImages​(WebDetection.WebImage value)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • addFullMatchingImages

        public WebDetection.WebPage.Builder addFullMatchingImages​(int index,
                                                                  WebDetection.WebImage value)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • addFullMatchingImages

        public WebDetection.WebPage.Builder addFullMatchingImages​(WebDetection.WebImage.Builder builderForValue)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • addFullMatchingImages

        public WebDetection.WebPage.Builder addFullMatchingImages​(int index,
                                                                  WebDetection.WebImage.Builder builderForValue)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • addAllFullMatchingImages

        public WebDetection.WebPage.Builder addAllFullMatchingImages​(Iterable<? extends WebDetection.WebImage> values)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • clearFullMatchingImages

        public WebDetection.WebPage.Builder clearFullMatchingImages()
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • removeFullMatchingImages

        public WebDetection.WebPage.Builder removeFullMatchingImages​(int index)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • getFullMatchingImagesBuilder

        public WebDetection.WebImage.Builder getFullMatchingImagesBuilder​(int index)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • addFullMatchingImagesBuilder

        public WebDetection.WebImage.Builder addFullMatchingImagesBuilder()
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • addFullMatchingImagesBuilder

        public WebDetection.WebImage.Builder addFullMatchingImagesBuilder​(int index)
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • getFullMatchingImagesBuilderList

        public List<WebDetection.WebImage.Builder> getFullMatchingImagesBuilderList()
         Fully matching images on the page.
         Can include resized copies of the query image.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
      • getPartialMatchingImagesList

        public List<WebDetection.WebImage> getPartialMatchingImagesList()
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
        Specified by:
        getPartialMatchingImagesList in interface WebDetection.WebPageOrBuilder
      • getPartialMatchingImagesCount

        public int getPartialMatchingImagesCount()
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
        Specified by:
        getPartialMatchingImagesCount in interface WebDetection.WebPageOrBuilder
      • getPartialMatchingImages

        public WebDetection.WebImage getPartialMatchingImages​(int index)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
        Specified by:
        getPartialMatchingImages in interface WebDetection.WebPageOrBuilder
      • setPartialMatchingImages

        public WebDetection.WebPage.Builder setPartialMatchingImages​(int index,
                                                                     WebDetection.WebImage value)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • setPartialMatchingImages

        public WebDetection.WebPage.Builder setPartialMatchingImages​(int index,
                                                                     WebDetection.WebImage.Builder builderForValue)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • addPartialMatchingImages

        public WebDetection.WebPage.Builder addPartialMatchingImages​(WebDetection.WebImage value)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • addPartialMatchingImages

        public WebDetection.WebPage.Builder addPartialMatchingImages​(int index,
                                                                     WebDetection.WebImage value)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • addPartialMatchingImages

        public WebDetection.WebPage.Builder addPartialMatchingImages​(WebDetection.WebImage.Builder builderForValue)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • addPartialMatchingImages

        public WebDetection.WebPage.Builder addPartialMatchingImages​(int index,
                                                                     WebDetection.WebImage.Builder builderForValue)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • addAllPartialMatchingImages

        public WebDetection.WebPage.Builder addAllPartialMatchingImages​(Iterable<? extends WebDetection.WebImage> values)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • clearPartialMatchingImages

        public WebDetection.WebPage.Builder clearPartialMatchingImages()
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • removePartialMatchingImages

        public WebDetection.WebPage.Builder removePartialMatchingImages​(int index)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • getPartialMatchingImagesBuilder

        public WebDetection.WebImage.Builder getPartialMatchingImagesBuilder​(int index)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • getPartialMatchingImagesOrBuilder

        public WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder​(int index)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
        Specified by:
        getPartialMatchingImagesOrBuilder in interface WebDetection.WebPageOrBuilder
      • getPartialMatchingImagesOrBuilderList

        public List<? extends WebDetection.WebImageOrBuilder> getPartialMatchingImagesOrBuilderList()
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
        Specified by:
        getPartialMatchingImagesOrBuilderList in interface WebDetection.WebPageOrBuilder
      • addPartialMatchingImagesBuilder

        public WebDetection.WebImage.Builder addPartialMatchingImagesBuilder()
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • addPartialMatchingImagesBuilder

        public WebDetection.WebImage.Builder addPartialMatchingImagesBuilder​(int index)
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • getPartialMatchingImagesBuilderList

        public List<WebDetection.WebImage.Builder> getPartialMatchingImagesBuilderList()
         Partial matching images on the page.
         Those images are similar enough to share some key-point features. For
         example an original image will likely have partial matching for its
         crops.
         
        repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
      • setUnknownFields

        public final WebDetection.WebPage.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<WebDetection.WebPage.Builder>
      • mergeUnknownFields

        public final WebDetection.WebPage.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<WebDetection.WebPage.Builder>