Class WebDetection.WebPage (3.25.0)

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

Metadata for web pages.

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

Static Fields

FULL_MATCHING_IMAGES_FIELD_NUMBER

public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
TypeDescription
int

PAGE_TITLE_FIELD_NUMBER

public static final int PAGE_TITLE_FIELD_NUMBER
Field Value
TypeDescription
int

PARTIAL_MATCHING_IMAGES_FIELD_NUMBER

public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WebDetection.WebPage getDefaultInstance()
Returns
TypeDescription
WebDetection.WebPage

getDescriptor()

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

newBuilder()

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

newBuilder(WebDetection.WebPage prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WebDetection.WebImage

getFullMatchingImagesCount()

public int getFullMatchingImagesCount()

Fully matching images on the page. Can include resized copies of the query image.

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

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

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

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

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

getPageTitle()

public String getPageTitle()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
TypeDescription
String

The pageTitle.

getPageTitleBytes()

public ByteString getPageTitleBytes()

Title for the web page, may contain HTML markups.

string page_title = 3;

Returns
TypeDescription
ByteString

The bytes for pageTitle.

getParserForType()

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

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

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

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

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

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

getScore()

public float getScore()

(Deprecated) Overall relevancy score for the web page.

float score = 2;

Returns
TypeDescription
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUrl()

public String getUrl()

The result web page URL.

string url = 1;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The result web page URL.

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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