Class WebDetection.WebPage (3.42.0)

public static final class WebDetection.WebPage extends GeneratedMessageV3 implements WebDetection.WebPageOrBuilder

Metadata for web pages.

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

Static Fields

FULL_MATCHING_IMAGES_FIELD_NUMBER

public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
Type Description
int

PAGE_TITLE_FIELD_NUMBER

public static final int PAGE_TITLE_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

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WebDetection.WebPage getDefaultInstance()
Returns
Type Description
WebDetection.WebPage

getDescriptor()

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

newBuilder()

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

newBuilder(WebDetection.WebPage prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public WebDetection.WebPage getDefaultInstanceForType()
Returns
Type Description
WebDetection.WebPage

getFullMatchingImages(int index)

public WebDetection.WebImage getFullMatchingImages(int index)

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()

public int getFullMatchingImagesCount()

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()

public List<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)

public WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder(int index)

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()

public List<? extends WebDetection.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()

public String getPageTitle()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
Type Description
String

The pageTitle.

getPageTitleBytes()

public ByteString getPageTitleBytes()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
Type Description
ByteString

The bytes for pageTitle.

getParserForType()

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

getPartialMatchingImages(int index)

public WebDetection.WebImage getPartialMatchingImages(int index)

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()

public int getPartialMatchingImagesCount()

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()

public List<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)

public WebDetection.WebImageOrBuilder getPartialMatchingImagesOrBuilder(int index)

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()

public List<? extends WebDetection.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()

public float getScore()

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Returns
Type Description
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUrl()

public String getUrl()

The result web page URL.

string url = 1;

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The result web page URL.

string url = 1;

Returns
Type Description
ByteString

The bytes for url.

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.WebPage.Builder newBuilderForType()
Returns
Type Description
WebDetection.WebPage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WebDetection.WebPage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WebDetection.WebPage.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.WebPage.Builder toBuilder()
Returns
Type Description
WebDetection.WebPage.Builder

writeTo(CodedOutputStream output)

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