Class WebDetection.WebPage.Builder (3.46.0)

public static final class WebDetection.WebPage.Builder extends GeneratedMessageV3.Builder<WebDetection.WebPage.Builder> implements WebDetection.WebPageOrBuilder

Metadata for web pages.

Protobuf type google.cloud.vision.v1p2beta1.WebDetection.WebPage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFullMatchingImages(Iterable<? extends WebDetection.WebImage> values)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>
Returns
Type Description
WebDetection.WebPage.Builder

addAllPartialMatchingImages(Iterable<? extends WebDetection.WebImage> values)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImage>
Returns
Type Description
WebDetection.WebPage.Builder

addFullMatchingImages(WebDetection.WebImage value)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
value WebDetection.WebImage
Returns
Type Description
WebDetection.WebPage.Builder

addFullMatchingImages(WebDetection.WebImage.Builder builderForValue)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
builderForValue WebDetection.WebImage.Builder
Returns
Type Description
WebDetection.WebPage.Builder

addFullMatchingImages(int index, WebDetection.WebImage value)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
Name Description
index int
value WebDetection.WebImage
Returns
Type Description
WebDetection.WebPage.Builder

addFullMatchingImages(int index, WebDetection.WebImage.Builder builderForValue)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
Name Description
index int
builderForValue WebDetection.WebImage.Builder
Returns
Type Description
WebDetection.WebPage.Builder

addFullMatchingImagesBuilder()

public WebDetection.WebImage.Builder addFullMatchingImagesBuilder()

Fully matching images on the page. Can include resized copies of the query image.

repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Returns
Type Description
WebDetection.WebImage.Builder

addFullMatchingImagesBuilder(int index)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage.Builder

addPartialMatchingImages(WebDetection.WebImage value)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
value WebDetection.WebImage
Returns
Type Description
WebDetection.WebPage.Builder

addPartialMatchingImages(WebDetection.WebImage.Builder builderForValue)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
builderForValue WebDetection.WebImage.Builder
Returns
Type Description
WebDetection.WebPage.Builder

addPartialMatchingImages(int index, WebDetection.WebImage value)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
Name Description
index int
value WebDetection.WebImage
Returns
Type Description
WebDetection.WebPage.Builder

addPartialMatchingImages(int index, WebDetection.WebImage.Builder builderForValue)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
Name Description
index int
builderForValue WebDetection.WebImage.Builder
Returns
Type Description
WebDetection.WebPage.Builder

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
Type Description
WebDetection.WebImage.Builder

addPartialMatchingImagesBuilder(int index)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebDetection.WebPage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

build()

public WebDetection.WebPage build()
Returns
Type Description
WebDetection.WebPage

buildPartial()

public WebDetection.WebPage buildPartial()
Returns
Type Description
WebDetection.WebPage

clear()

public WebDetection.WebPage.Builder clear()
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WebDetection.WebPage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

clearFullMatchingImages()

public WebDetection.WebPage.Builder clearFullMatchingImages()

Fully matching images on the page. Can include resized copies of the query image.

repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Returns
Type Description
WebDetection.WebPage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WebDetection.WebPage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

clearPageTitle()

public WebDetection.WebPage.Builder clearPageTitle()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
Type Description
WebDetection.WebPage.Builder

clearScore()

public WebDetection.WebPage.Builder clearScore()

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.

clearUrl()

public WebDetection.WebPage.Builder clearUrl()

The result web page URL.

string url = 1;

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.

clone()

public WebDetection.WebPage.Builder clone()
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

getDefaultInstanceForType()

public WebDetection.WebPage getDefaultInstanceForType()
Returns
Type Description
WebDetection.WebPage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFullMatchingImages(int index)

public WebDetection.WebImage getFullMatchingImages(int index)

Fully matching images on the page. Can include resized copies of the query image.

repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage

getFullMatchingImagesBuilder(int index)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage.Builder

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Returns
Type Description
List<Builder>

getFullMatchingImagesCount()

public int getFullMatchingImagesCount()

Fully matching images on the page. Can include resized copies of the query image.

repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Returns
Type Description
int

getFullMatchingImagesList()

public List<WebDetection.WebImage> getFullMatchingImagesList()

Fully matching images on the page. Can include resized copies of the query image.

repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Returns
Type Description
List<WebImage>

getFullMatchingImagesOrBuilder(int index)

public WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder(int index)

Fully matching images on the page. Can include resized copies of the query image.

repeated .google.cloud.vision.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImageOrBuilder

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Returns
Type Description
List<? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>

getPageTitle()

public String getPageTitle()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
Type Description
String

The pageTitle.

getPageTitleBytes()

public ByteString getPageTitleBytes()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
Type Description
ByteString

The bytes for pageTitle.

getPartialMatchingImages(int index)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage

getPartialMatchingImagesBuilder(int index)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage.Builder

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
Type Description
List<Builder>

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
Type Description
int

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
Type Description
List<WebImage>

getPartialMatchingImagesOrBuilder(int index)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImageOrBuilder

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
Type Description
List<? extends com.google.cloud.vision.v1p2beta1.WebDetection.WebImageOrBuilder>

getScore()

public float getScore()

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Returns
Type Description
float

The score.

getUrl()

public String getUrl()

The result web page URL.

string url = 1;

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The result web page URL.

string url = 1;

Returns
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WebDetection.WebPage other)

public WebDetection.WebPage.Builder mergeFrom(WebDetection.WebPage other)
Parameter
Name Description
other WebDetection.WebPage
Returns
Type Description
WebDetection.WebPage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WebDetection.WebPage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebPage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WebDetection.WebPage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebDetection.WebPage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

removeFullMatchingImages(int index)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebPage.Builder

removePartialMatchingImages(int index)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebPage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WebDetection.WebPage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

setFullMatchingImages(int index, WebDetection.WebImage value)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
Name Description
index int
value WebDetection.WebImage
Returns
Type Description
WebDetection.WebPage.Builder

setFullMatchingImages(int index, WebDetection.WebImage.Builder builderForValue)

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.v1p2beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
Name Description
index int
builderForValue WebDetection.WebImage.Builder
Returns
Type Description
WebDetection.WebPage.Builder

setPageTitle(String value)

public WebDetection.WebPage.Builder setPageTitle(String value)

Title for the web page, may contain HTML markups.

string page_title = 3;

Parameter
Name Description
value String

The pageTitle to set.

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.

setPageTitleBytes(ByteString value)

public WebDetection.WebPage.Builder setPageTitleBytes(ByteString value)

Title for the web page, may contain HTML markups.

string page_title = 3;

Parameter
Name Description
value ByteString

The bytes for pageTitle to set.

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.

setPartialMatchingImages(int index, WebDetection.WebImage value)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
Name Description
index int
value WebDetection.WebImage
Returns
Type Description
WebDetection.WebPage.Builder

setPartialMatchingImages(int index, WebDetection.WebImage.Builder builderForValue)

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.v1p2beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
Name Description
index int
builderForValue WebDetection.WebImage.Builder
Returns
Type Description
WebDetection.WebPage.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WebDetection.WebPage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

setScore(float value)

public WebDetection.WebPage.Builder setScore(float value)

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Parameter
Name Description
value float

The score to set.

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WebDetection.WebPage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

setUrl(String value)

public WebDetection.WebPage.Builder setUrl(String value)

The result web page URL.

string url = 1;

Parameter
Name Description
value String

The url to set.

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public WebDetection.WebPage.Builder setUrlBytes(ByteString value)

The result web page URL.

string url = 1;

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
WebDetection.WebPage.Builder

This builder for chaining.