Class WebDetection.WebPage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WebDetection.WebPage.Builder>
com.google.cloud.vision.v1.WebDetection.WebPage.Builder
All Implemented Interfaces:
WebDetection.WebPageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WebDetection.WebPage

public static final class WebDetection.WebPage.Builder extends com.google.protobuf.GeneratedMessage.Builder<WebDetection.WebPage.Builder> implements WebDetection.WebPageOrBuilder
 Metadata for web pages.
 
Protobuf type google.cloud.vision.v1.WebDetection.WebPage
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getUrl

      public String getUrl()
       The result web page URL.
       
      string url = 1;
      Specified by:
      getUrl in interface WebDetection.WebPageOrBuilder
      Returns:
      The url.
    • 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.
    • clearUrl

      public WebDetection.WebPage.Builder clearUrl()
       The result web page URL.
       
      string url = 1;
      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.
    • getPageTitle

      public String getPageTitle()
       Title for the web page, may contain HTML markups.
       
      string page_title = 3;
      Specified by:
      getPageTitle in interface WebDetection.WebPageOrBuilder
      Returns:
      The pageTitle.
    • 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.
    • getFullMatchingImagesList

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

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

      public WebDetection.WebImage getFullMatchingImages(int index)
       Fully matching images on the page.
       Can include resized copies of the query image.
       
      repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      Specified by:
      getFullMatchingImages 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.WebDetection.WebImage full_matching_images = 4;
    • getFullMatchingImagesOrBuilder

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

      public List<? extends WebDetection.WebImageOrBuilder> getFullMatchingImagesOrBuilderList()
       Fully matching images on the page.
       Can include resized copies of the query image.
       
      repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 4;
      Specified by:
      getFullMatchingImagesOrBuilderList in interface WebDetection.WebPageOrBuilder
    • addFullMatchingImagesBuilder

      public WebDetection.WebImage.Builder addFullMatchingImagesBuilder()
       Fully matching images on the page.
       Can include resized copies of the query image.
       
      repeated .google.cloud.vision.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.WebDetection.WebImage partial_matching_images = 5;