Class WebDetection (3.56.0)

publicfinalclass WebDetectionextendsGeneratedMessageV3implementsWebDetectionOrBuilder

Relevant information for the image from the Internet.

Protobuf type google.cloud.vision.v1.WebDetection

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

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
WebDetection

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticWebDetection.BuildernewBuilder()
Returns
Type Description
WebDetection.Builder

newBuilder(WebDetection prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticWebDetectionparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetectionparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
WebDetection.WebLabel

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
List<WebLabel>

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
WebDetection.WebLabelOrBuilder

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
WebDetection

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
WebDetection.WebImage

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
List<WebImage>

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
WebDetection.WebImageOrBuilder

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
WebDetection.WebPage

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
List<WebPage>

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
WebDetection.WebPageOrBuilder

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
Parser<WebDetection>
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
WebDetection.WebImage

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
List<WebImage>

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
WebDetection.WebImageOrBuilder

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

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
WebDetection.WebImage

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
List<WebImage>

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
WebDetection.WebImageOrBuilder

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
WebDetection.WebEntity

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
List<WebEntity>

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
WebDetection.WebEntityOrBuilder

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
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicWebDetection.BuildernewBuilderForType()
Returns
Type Description
WebDetection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicWebDetection.BuildertoBuilder()
Returns
Type Description
WebDetection.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.