Class WebDetection (3.49.0)

public final class WebDetection extends GeneratedMessageV3 implements WebDetectionOrBuilder

Relevant information for the image from the Internet.

Protobuf type google.cloud.vision.v1p2beta1.WebDetection

Static Fields

BEST_GUESS_LABELS_FIELD_NUMBER

public static final int BEST_GUESS_LABELS_FIELD_NUMBER
Field Value
Type Description
int

FULL_MATCHING_IMAGES_FIELD_NUMBER

public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER

public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

PARTIAL_MATCHING_IMAGES_FIELD_NUMBER

public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER

public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

WEB_ENTITIES_FIELD_NUMBER

public static final int WEB_ENTITIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WebDetection getDefaultInstance()
Returns
Type Description
WebDetection

getDescriptor()

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

newBuilder()

public static WebDetection.Builder newBuilder()
Returns
Type Description
WebDetection.Builder

newBuilder(WebDetection prototype)

public static WebDetection.Builder newBuilder(WebDetection prototype)
Parameter
Name Description
prototype WebDetection
Returns
Type Description
WebDetection.Builder

parseDelimitedFrom(InputStream input)

public static WebDetection parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WebDetection parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WebDetection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WebDetection parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WebDetection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WebDetection parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WebDetection parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WebDetection parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WebDetection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WebDetection> parser()
Returns
Type Description
Parser<WebDetection>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBestGuessLabels(int index)

public WebDetection.WebLabel getBestGuessLabels(int index)

Best guess text labels for the request image.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebLabel

getBestGuessLabelsCount()

public int getBestGuessLabelsCount()

Best guess text labels for the request image.

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

Returns
Type Description
int

getBestGuessLabelsList()

public List<WebDetection.WebLabel> getBestGuessLabelsList()

Best guess text labels for the request image.

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

Returns
Type Description
List<WebLabel>

getBestGuessLabelsOrBuilder(int index)

public WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(int index)

Best guess text labels for the request image.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebLabelOrBuilder

getBestGuessLabelsOrBuilderList()

public List<? extends WebDetection.WebLabelOrBuilder> getBestGuessLabelsOrBuilderList()

Best guess text labels for the request image.

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

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

getDefaultInstanceForType()

public WebDetection getDefaultInstanceForType()
Returns
Type Description
WebDetection

getFullMatchingImages(int index)

public WebDetection.WebImage getFullMatchingImages(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage

getFullMatchingImagesCount()

public int getFullMatchingImagesCount()

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

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

Returns
Type Description
int

getFullMatchingImagesList()

public List<WebDetection.WebImage> getFullMatchingImagesList()

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

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

Returns
Type Description
List<WebImage>

getFullMatchingImagesOrBuilder(int index)

public WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImageOrBuilder

getFullMatchingImagesOrBuilderList()

public List<? extends WebDetection.WebImageOrBuilder> getFullMatchingImagesOrBuilderList()

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

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

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

getPagesWithMatchingImages(int index)

public WebDetection.WebPage getPagesWithMatchingImages(int index)

Web pages containing the matching images from the Internet.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebPage

getPagesWithMatchingImagesCount()

public int getPagesWithMatchingImagesCount()

Web pages containing the matching images from the Internet.

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

Returns
Type Description
int

getPagesWithMatchingImagesList()

public List<WebDetection.WebPage> getPagesWithMatchingImagesList()

Web pages containing the matching images from the Internet.

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

Returns
Type Description
List<WebPage>

getPagesWithMatchingImagesOrBuilder(int index)

public WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder(int index)

Web pages containing the matching images from the Internet.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebPageOrBuilder

getPagesWithMatchingImagesOrBuilderList()

public List<? extends WebDetection.WebPageOrBuilder> getPagesWithMatchingImagesOrBuilderList()

Web pages containing the matching images from the Internet.

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

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

getParserForType()

public Parser<WebDetection> getParserForType()
Returns
Type Description
Parser<WebDetection>
Overrides

getPartialMatchingImages(int index)

public WebDetection.WebImage getPartialMatchingImages(int index)

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage

getPartialMatchingImagesCount()

public int getPartialMatchingImagesCount()

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

Returns
Type Description
int

getPartialMatchingImagesList()

public List<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.v1p2beta1.WebDetection.WebImage partial_matching_images = 3;

Returns
Type Description
List<WebImage>

getPartialMatchingImagesOrBuilder(int index)

public WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImageOrBuilder

getPartialMatchingImagesOrBuilderList()

public List<? extends WebDetection.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.v1p2beta1.WebDetection.WebImage partial_matching_images = 3;

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVisuallySimilarImages(int index)

public WebDetection.WebImage getVisuallySimilarImages(int index)

The visually similar image results.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImage

getVisuallySimilarImagesCount()

public int getVisuallySimilarImagesCount()

The visually similar image results.

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

Returns
Type Description
int

getVisuallySimilarImagesList()

public List<WebDetection.WebImage> getVisuallySimilarImagesList()

The visually similar image results.

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

Returns
Type Description
List<WebImage>

getVisuallySimilarImagesOrBuilder(int index)

public WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder(int index)

The visually similar image results.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebImageOrBuilder

getVisuallySimilarImagesOrBuilderList()

public List<? extends WebDetection.WebImageOrBuilder> getVisuallySimilarImagesOrBuilderList()

The visually similar image results.

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

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

getWebEntities(int index)

public WebDetection.WebEntity getWebEntities(int index)

Deduced entities from similar images on the Internet.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebEntity

getWebEntitiesCount()

public int getWebEntitiesCount()

Deduced entities from similar images on the Internet.

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

Returns
Type Description
int

getWebEntitiesList()

public List<WebDetection.WebEntity> getWebEntitiesList()

Deduced entities from similar images on the Internet.

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

Returns
Type Description
List<WebEntity>

getWebEntitiesOrBuilder(int index)

public WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder(int index)

Deduced entities from similar images on the Internet.

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

Parameter
Name Description
index int
Returns
Type Description
WebDetection.WebEntityOrBuilder

getWebEntitiesOrBuilderList()

public List<? extends WebDetection.WebEntityOrBuilder> getWebEntitiesOrBuilderList()

Deduced entities from similar images on the Internet.

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

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WebDetection.Builder newBuilderForType()
Returns
Type Description
WebDetection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WebDetection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WebDetection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WebDetection.Builder toBuilder()
Returns
Type Description
WebDetection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException