Class WebDetection (3.1.3)

public final class WebDetection extends GeneratedMessageV3 implements WebDetectionOrBuilder

Relevant information for the image from the Internet.

Protobuf type google.cloud.vision.v1p1beta1.WebDetection

Static Fields

BEST_GUESS_LABELS_FIELD_NUMBER

public static final int BEST_GUESS_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

FULL_MATCHING_IMAGES_FIELD_NUMBER

public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
TypeDescription
int

PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER

public static final int PAGES_WITH_MATCHING_IMAGES_FIELD_NUMBER
Field Value
TypeDescription
int

PARTIAL_MATCHING_IMAGES_FIELD_NUMBER

public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
TypeDescription
int

VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER

public static final int VISUALLY_SIMILAR_IMAGES_FIELD_NUMBER
Field Value
TypeDescription
int

WEB_ENTITIES_FIELD_NUMBER

public static final int WEB_ENTITIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WebDetection getDefaultInstance()
Returns
TypeDescription
WebDetection

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static WebDetection.Builder newBuilder()
Returns
TypeDescription
WebDetection.Builder

newBuilder(WebDetection prototype)

public static WebDetection.Builder newBuilder(WebDetection prototype)
Parameter
NameDescription
prototypeWebDetection
Returns
TypeDescription
WebDetection.Builder

parseDelimitedFrom(InputStream input)

public static WebDetection parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static WebDetection parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WebDetection parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WebDetection parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static WebDetection parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static WebDetection parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WebDetection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebDetection
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<WebDetection> parser()
Returns
TypeDescription
Parser<WebDetection>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBestGuessLabels(int index)

public WebDetection.WebLabel getBestGuessLabels(int index)

Best guess text labels for the request image.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebLabel

getBestGuessLabelsCount()

public int getBestGuessLabelsCount()

Best guess text labels for the request image.

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

Returns
TypeDescription
int

getBestGuessLabelsList()

public List<WebDetection.WebLabel> getBestGuessLabelsList()

Best guess text labels for the request image.

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

Returns
TypeDescription
List<WebLabel>

getBestGuessLabelsOrBuilder(int index)

public WebDetection.WebLabelOrBuilder getBestGuessLabelsOrBuilder(int index)

Best guess text labels for the request image.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebLabelOrBuilder

getBestGuessLabelsOrBuilderList()

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

Best guess text labels for the request image.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebLabelOrBuilder>

getDefaultInstanceForType()

public WebDetection getDefaultInstanceForType()
Returns
TypeDescription
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.v1p1beta1.WebDetection.WebImage full_matching_images = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebImage

getFullMatchingImagesCount()

public int getFullMatchingImagesCount()

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

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

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

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

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

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

getPagesWithMatchingImages(int index)

public WebDetection.WebPage getPagesWithMatchingImages(int index)

Web pages containing the matching images from the Internet.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebPage

getPagesWithMatchingImagesCount()

public int getPagesWithMatchingImagesCount()

Web pages containing the matching images from the Internet.

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

Returns
TypeDescription
int

getPagesWithMatchingImagesList()

public List<WebDetection.WebPage> getPagesWithMatchingImagesList()

Web pages containing the matching images from the Internet.

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

Returns
TypeDescription
List<WebPage>

getPagesWithMatchingImagesOrBuilder(int index)

public WebDetection.WebPageOrBuilder getPagesWithMatchingImagesOrBuilder(int index)

Web pages containing the matching images from the Internet.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebPageOrBuilder

getPagesWithMatchingImagesOrBuilderList()

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

Web pages containing the matching images from the Internet.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebPageOrBuilder>

getParserForType()

public Parser<WebDetection> getParserForType()
Returns
TypeDescription
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.v1p1beta1.WebDetection.WebImage partial_matching_images = 3;

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

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

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

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

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVisuallySimilarImages(int index)

public WebDetection.WebImage getVisuallySimilarImages(int index)

The visually similar image results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebImage

getVisuallySimilarImagesCount()

public int getVisuallySimilarImagesCount()

The visually similar image results.

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

Returns
TypeDescription
int

getVisuallySimilarImagesList()

public List<WebDetection.WebImage> getVisuallySimilarImagesList()

The visually similar image results.

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

Returns
TypeDescription
List<WebImage>

getVisuallySimilarImagesOrBuilder(int index)

public WebDetection.WebImageOrBuilder getVisuallySimilarImagesOrBuilder(int index)

The visually similar image results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebImageOrBuilder

getVisuallySimilarImagesOrBuilderList()

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

The visually similar image results.

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

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

getWebEntities(int index)

public WebDetection.WebEntity getWebEntities(int index)

Deduced entities from similar images on the Internet.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebEntity

getWebEntitiesCount()

public int getWebEntitiesCount()

Deduced entities from similar images on the Internet.

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

Returns
TypeDescription
int

getWebEntitiesList()

public List<WebDetection.WebEntity> getWebEntitiesList()

Deduced entities from similar images on the Internet.

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

Returns
TypeDescription
List<WebEntity>

getWebEntitiesOrBuilder(int index)

public WebDetection.WebEntityOrBuilder getWebEntitiesOrBuilder(int index)

Deduced entities from similar images on the Internet.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebEntityOrBuilder

getWebEntitiesOrBuilderList()

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

Deduced entities from similar images on the Internet.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebEntityOrBuilder>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public WebDetection.Builder newBuilderForType()
Returns
TypeDescription
WebDetection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WebDetection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
WebDetection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public WebDetection.Builder toBuilder()
Returns
TypeDescription
WebDetection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException