Class WebDetection (3.6.0)

publicfinalclass WebDetectionextendsGeneratedMessageV3implementsWebDetectionOrBuilder

Relevant information for the image from the Internet.

Protobuf type google.cloud.vision.v1.WebDetection

Inherited Members

Static Fields

BEST_GUESS_LABELS_FIELD_NUMBER

publicstaticfinalintBEST_GUESS_LABELS_FIELD_NUMBER
Field Value
Type Description
int

FULL_MATCHING_IMAGES_FIELD_NUMBER

publicstaticfinalintFULL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER

publicstaticfinalintPAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

PARTIAL_MATCHING_IMAGES_FIELD_NUMBER

publicstaticfinalintPARTIAL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER

publicstaticfinalintVISUALLY_SIMILAR_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

WEB_ENTITIES_FIELD_NUMBER

publicstaticfinalintWEB_ENTITIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticWebDetectiongetDefaultInstance()
Returns
Type Description

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

newBuilder()

publicstaticWebDetection.BuildernewBuilder()
Returns
Type Description

newBuilder(WebDetection prototype)

publicstaticWebDetection.BuildernewBuilder(WebDetectionprototype)
Parameter
Name Description
prototype WebDetection
Returns
Type Description

parseDelimitedFrom(InputStream input)

publicstaticWebDetectionparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetectionparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data)

publicstaticWebDetectionparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetectionparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteString data)

publicstaticWebDetectionparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetectionparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input)

publicstaticWebDetectionparseFrom(CodedInputStreaminput)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetectionparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input)

publicstaticWebDetectionparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetectionparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data)

publicstaticWebDetectionparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetectionparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parser()

publicstaticParser<WebDetection>parser()
Returns
Type Description

Methods

equals(Object obj)

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

getBestGuessLabels(int index)

publicWebDetection.WebLabelgetBestGuessLabels(intindex)

The service's best guess as to the topic of the request image. Inferred from similar images on the open web.

repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;

Parameter
Name Description
index int
Returns
Type Description

getBestGuessLabelsCount()

publicintgetBestGuessLabelsCount()

The service's best guess as to the topic of the request image. Inferred from similar images on the open web.

repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;

Returns
Type Description
int

getBestGuessLabelsList()

publicList<WebDetection.WebLabel>getBestGuessLabelsList()

The service's best guess as to the topic of the request image. Inferred from similar images on the open web.

repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;

Returns
Type Description

getBestGuessLabelsOrBuilder(int index)

publicWebDetection.WebLabelOrBuildergetBestGuessLabelsOrBuilder(intindex)

The service's best guess as to the topic of the request image. Inferred from similar images on the open web.

repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;

Parameter
Name Description
index int
Returns
Type Description

getBestGuessLabelsOrBuilderList()

publicList<?extendsWebDetection.WebLabelOrBuilder>getBestGuessLabelsOrBuilderList()

The service's best guess as to the topic of the request image. Inferred from similar images on the open web.

repeated .google.cloud.vision.v1.WebDetection.WebLabel best_guess_labels = 8;

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

getDefaultInstanceForType()

publicWebDetectiongetDefaultInstanceForType()
Returns
Type Description

getFullMatchingImages(int index)

publicWebDetection.WebImagegetFullMatchingImages(intindex)

Fully matching images from the Internet. Can include resized copies of the query image.

repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;

Parameter
Name Description
index int
Returns
Type Description

getFullMatchingImagesCount()

publicintgetFullMatchingImagesCount()

Fully matching images from the Internet. Can include resized copies of the query image.

repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;

Returns
Type Description
int

getFullMatchingImagesList()

publicList<WebDetection.WebImage>getFullMatchingImagesList()

Fully matching images from the Internet. Can include resized copies of the query image.

repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;

Returns
Type Description

getFullMatchingImagesOrBuilder(int index)

publicWebDetection.WebImageOrBuildergetFullMatchingImagesOrBuilder(intindex)

Fully matching images from the Internet. Can include resized copies of the query image.

repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;

Parameter
Name Description
index int
Returns
Type Description

getFullMatchingImagesOrBuilderList()

publicList<?extendsWebDetection.WebImageOrBuilder>getFullMatchingImagesOrBuilderList()

Fully matching images from the Internet. Can include resized copies of the query image.

repeated .google.cloud.vision.v1.WebDetection.WebImage full_matching_images = 2;

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

getPagesWithMatchingImages(int index)

publicWebDetection.WebPagegetPagesWithMatchingImages(intindex)

Web pages containing the matching images from the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4;

Parameter
Name Description
index int
Returns
Type Description

getPagesWithMatchingImagesCount()

publicintgetPagesWithMatchingImagesCount()

Web pages containing the matching images from the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4;

Returns
Type Description
int

getPagesWithMatchingImagesList()

publicList<WebDetection.WebPage>getPagesWithMatchingImagesList()

Web pages containing the matching images from the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4;

Returns
Type Description

getPagesWithMatchingImagesOrBuilder(int index)

publicWebDetection.WebPageOrBuildergetPagesWithMatchingImagesOrBuilder(intindex)

Web pages containing the matching images from the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4;

Parameter
Name Description
index int
Returns
Type Description

getPagesWithMatchingImagesOrBuilderList()

publicList<?extendsWebDetection.WebPageOrBuilder>getPagesWithMatchingImagesOrBuilderList()

Web pages containing the matching images from the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebPage pages_with_matching_images = 4;

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

getParserForType()

publicParser<WebDetection>getParserForType()
Returns
Type Description
Overrides

getPartialMatchingImages(int index)

publicWebDetection.WebImagegetPartialMatchingImages(intindex)

Partial matching images from the Internet. 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 = 3;

Parameter
Name Description
index int
Returns
Type Description

getPartialMatchingImagesCount()

publicintgetPartialMatchingImagesCount()

Partial matching images from the Internet. 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 = 3;

Returns
Type Description
int

getPartialMatchingImagesList()

publicList<WebDetection.WebImage>getPartialMatchingImagesList()

Partial matching images from the Internet. 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 = 3;

Returns
Type Description

getPartialMatchingImagesOrBuilder(int index)

publicWebDetection.WebImageOrBuildergetPartialMatchingImagesOrBuilder(intindex)

Partial matching images from the Internet. 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 = 3;

Parameter
Name Description
index int
Returns
Type Description

getPartialMatchingImagesOrBuilderList()

publicList<?extendsWebDetection.WebImageOrBuilder>getPartialMatchingImagesOrBuilderList()

Partial matching images from the Internet. 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 = 3;

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
Overrides

getVisuallySimilarImages(int index)

publicWebDetection.WebImagegetVisuallySimilarImages(intindex)

The visually similar image results.

repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6;

Parameter
Name Description
index int
Returns
Type Description

getVisuallySimilarImagesCount()

publicintgetVisuallySimilarImagesCount()

The visually similar image results.

repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6;

Returns
Type Description
int

getVisuallySimilarImagesList()

publicList<WebDetection.WebImage>getVisuallySimilarImagesList()

The visually similar image results.

repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6;

Returns
Type Description

getVisuallySimilarImagesOrBuilder(int index)

publicWebDetection.WebImageOrBuildergetVisuallySimilarImagesOrBuilder(intindex)

The visually similar image results.

repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6;

Parameter
Name Description
index int
Returns
Type Description

getVisuallySimilarImagesOrBuilderList()

publicList<?extendsWebDetection.WebImageOrBuilder>getVisuallySimilarImagesOrBuilderList()

The visually similar image results.

repeated .google.cloud.vision.v1.WebDetection.WebImage visually_similar_images = 6;

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

getWebEntities(int index)

publicWebDetection.WebEntitygetWebEntities(intindex)

Deduced entities from similar images on the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1;

Parameter
Name Description
index int
Returns
Type Description

getWebEntitiesCount()

publicintgetWebEntitiesCount()

Deduced entities from similar images on the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1;

Returns
Type Description
int

getWebEntitiesList()

publicList<WebDetection.WebEntity>getWebEntitiesList()

Deduced entities from similar images on the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1;

Returns
Type Description

getWebEntitiesOrBuilder(int index)

publicWebDetection.WebEntityOrBuildergetWebEntitiesOrBuilder(intindex)

Deduced entities from similar images on the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1;

Parameter
Name Description
index int
Returns
Type Description

getWebEntitiesOrBuilderList()

publicList<?extendsWebDetection.WebEntityOrBuilder>getWebEntitiesOrBuilderList()

Deduced entities from similar images on the Internet.

repeated .google.cloud.vision.v1.WebDetection.WebEntity web_entities = 1;

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

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

newBuilderForType()

publicWebDetection.BuildernewBuilderForType()
Returns
Type Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicWebDetection.BuildertoBuilder()
Returns
Type Description

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
Overrides Exceptions
Type Description

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.