Class WebDetection.WebPage (3.20.0)

publicstaticfinalclass WebDetection.WebPageextendsGeneratedMessageV3implementsWebDetection.WebPageOrBuilder

Metadata for web pages.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

FULL_MATCHING_IMAGES_FIELD_NUMBER

publicstaticfinalintFULL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

PAGE_TITLE_FIELD_NUMBER

publicstaticfinalintPAGE_TITLE_FIELD_NUMBER
Field Value
Type Description
int

PARTIAL_MATCHING_IMAGES_FIELD_NUMBER

publicstaticfinalintPARTIAL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

SCORE_FIELD_NUMBER

publicstaticfinalintSCORE_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

publicstaticfinalintURL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticWebDetection.WebPagegetDefaultInstance()
Returns
Type Description
WebDetection.WebPage

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticWebDetection.WebPage.BuildernewBuilder()
Returns
Type Description
WebDetection.WebPage.Builder

newBuilder(WebDetection.WebPage prototype)

publicstaticWebDetection.WebPage.BuildernewBuilder(WebDetection.WebPageprototype)
Parameter
Name Description
prototype WebDetection.WebPage
Returns
Type Description
WebDetection.WebPage.Builder

parseDelimitedFrom(InputStream input)

publicstaticWebDetection.WebPageparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebPageparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticWebDetection.WebPageparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebPageparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticWebDetection.WebPageparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebPageparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticWebDetection.WebPageparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebPageparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticWebDetection.WebPageparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebPageparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticWebDetection.WebPageparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebPageparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebPage
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<WebDetection.WebPage>parser()
Returns
Type Description
Parser<WebPage>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicWebDetection.WebPagegetDefaultInstanceForType()
Returns
Type Description
WebDetection.WebPage

getFullMatchingImages(int index)

publicWebDetection.WebImagegetFullMatchingImages(intindex)

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;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage

getFullMatchingImagesCount()

publicintgetFullMatchingImagesCount()

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;

Returns
Type Description
int

getFullMatchingImagesList()

publicList<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;

Returns
Type Description
List<WebImage>

getFullMatchingImagesOrBuilder(int index)

publicWebDetection.WebImageOrBuildergetFullMatchingImagesOrBuilder(intindex)

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;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImageOrBuilder

getFullMatchingImagesOrBuilderList()

publicList<?extendsWebDetection.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;

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

getPageTitle()

publicStringgetPageTitle()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
Type Description
String

The pageTitle.

getPageTitleBytes()

publicByteStringgetPageTitleBytes()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
Type Description
ByteString

The bytes for pageTitle.

getParserForType()

publicParser<WebDetection.WebPage>getParserForType()
Returns
Type Description
Parser<WebPage>
Overrides

getPartialMatchingImages(int index)

publicWebDetection.WebImagegetPartialMatchingImages(intindex)

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;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage

getPartialMatchingImagesCount()

publicintgetPartialMatchingImagesCount()

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;

Returns
Type Description
int

getPartialMatchingImagesList()

publicList<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;

Returns
Type Description
List<WebImage>

getPartialMatchingImagesOrBuilder(int index)

publicWebDetection.WebImageOrBuildergetPartialMatchingImagesOrBuilder(intindex)

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;

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImageOrBuilder

getPartialMatchingImagesOrBuilderList()

publicList<?extendsWebDetection.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;

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

getScore()

publicfloatgetScore()

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Returns
Type Description
float

The score.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUrl()

publicStringgetUrl()

The result web page URL.

string url = 1;

Returns
Type Description
String

The url.

getUrlBytes()

publicByteStringgetUrlBytes()

The result web page URL.

string url = 1;

Returns
Type Description
ByteString

The bytes for url.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicWebDetection.WebPage.BuildernewBuilderForType()
Returns
Type Description
WebDetection.WebPage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedWebDetection.WebPage.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WebDetection.WebPage.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicWebDetection.WebPage.BuildertoBuilder()
Returns
Type Description
WebDetection.WebPage.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.