Class WebDetection.WebPage.Builder (3.14.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.v1p4beta1.WebDetection.WebPage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
valueWebDetection.WebImage
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
builderForValueWebDetection.WebImage.Builder
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
NameDescription
indexint
valueWebDetection.WebImage
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
NameDescription
indexint
builderForValueWebDetection.WebImage.Builder
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
valueWebDetection.WebImage
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
builderForValueWebDetection.WebImage.Builder
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
NameDescription
indexint
valueWebDetection.WebImage
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
NameDescription
indexint
builderForValueWebDetection.WebImage.Builder
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebImage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebDetection.WebPage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WebDetection.WebPage.Builder
Overrides

build()

public WebDetection.WebPage build()
Returns
TypeDescription
WebDetection.WebPage

buildPartial()

public WebDetection.WebPage buildPartial()
Returns
TypeDescription
WebDetection.WebPage

clear()

public WebDetection.WebPage.Builder clear()
Returns
TypeDescription
WebDetection.WebPage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WebDetection.WebPage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Returns
TypeDescription
WebDetection.WebPage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WebDetection.WebPage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WebDetection.WebPage.Builder
Overrides

clearPageTitle()

public WebDetection.WebPage.Builder clearPageTitle()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
TypeDescription
WebDetection.WebPage.Builder

clearScore()

public WebDetection.WebPage.Builder clearScore()

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Returns
TypeDescription
WebDetection.WebPage.Builder

This builder for chaining.

clearUrl()

public WebDetection.WebPage.Builder clearUrl()

The result web page URL.

string url = 1;

Returns
TypeDescription
WebDetection.WebPage.Builder

This builder for chaining.

clone()

public WebDetection.WebPage.Builder clone()
Returns
TypeDescription
WebDetection.WebPage.Builder
Overrides

getDefaultInstanceForType()

public WebDetection.WebPage getDefaultInstanceForType()
Returns
TypeDescription
WebDetection.WebPage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Returns
TypeDescription
List<Builder>

getFullMatchingImagesCount()

public int getFullMatchingImagesCount()

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

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

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>

getPageTitle()

public String getPageTitle()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
TypeDescription
String

The pageTitle.

getPageTitleBytes()

public ByteString getPageTitleBytes()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>

getScore()

public float getScore()

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Returns
TypeDescription
float

The score.

getUrl()

public String getUrl()

The result web page URL.

string url = 1;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The result web page URL.

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WebDetection.WebPage other)

public WebDetection.WebPage.Builder mergeFrom(WebDetection.WebPage other)
Parameter
NameDescription
otherWebDetection.WebPage
Returns
TypeDescription
WebDetection.WebPage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WebDetection.WebPage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebDetection.WebPage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WebDetection.WebPage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WebDetection.WebPage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebDetection.WebPage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebPage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WebDetection.WebPage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
NameDescription
indexint
valueWebDetection.WebImage
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage full_matching_images = 4;

Parameters
NameDescription
indexint
builderForValueWebDetection.WebImage.Builder
Returns
TypeDescription
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
NameDescription
valueString

The pageTitle to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pageTitle to set.

Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
NameDescription
indexint
valueWebDetection.WebImage
Returns
TypeDescription
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.v1p4beta1.WebDetection.WebImage partial_matching_images = 5;

Parameters
NameDescription
indexint
builderForValueWebDetection.WebImage.Builder
Returns
TypeDescription
WebDetection.WebPage.Builder

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

public WebDetection.WebPage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The score to set.

Returns
TypeDescription
WebDetection.WebPage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WebDetection.WebPage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WebDetection.WebPage.Builder
Overrides

setUrl(String value)

public WebDetection.WebPage.Builder setUrl(String value)

The result web page URL.

string url = 1;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
WebDetection.WebPage.Builder

This builder for chaining.