public static final class WebDetection.WebPage extends GeneratedMessageV3 implements WebDetection.WebPageOrBuilder
Metadata for web pages.
Protobuf type google.cloud.vision.v1p1beta1.WebDetection.WebPage
Static Fields
FULL_MATCHING_IMAGES_FIELD_NUMBER
public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
PAGE_TITLE_FIELD_NUMBER
public static final int PAGE_TITLE_FIELD_NUMBER
Field Value
PARTIAL_MATCHING_IMAGES_FIELD_NUMBER
public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER
Field Value
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value
URL_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static WebDetection.WebPage getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static WebDetection.WebPage.Builder newBuilder()
Returns
newBuilder(WebDetection.WebPage prototype)
public static WebDetection.WebPage.Builder newBuilder(WebDetection.WebPage prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static WebDetection.WebPage parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebPage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static WebDetection.WebPage parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebPage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static WebDetection.WebPage parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebPage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static WebDetection.WebPage parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebPage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static WebDetection.WebPage parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebPage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static WebDetection.WebPage parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebPage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<WebDetection.WebPage> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public WebDetection.WebPage getDefaultInstanceForType()
Returns
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.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
Parameter
Returns
getFullMatchingImagesCount()
public int getFullMatchingImagesCount()
Fully matching images on the page.
Can include resized copies of the query image.
repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
Returns
getFullMatchingImagesList()
public List<WebDetection.WebImage> getFullMatchingImagesList()
Fully matching images on the page.
Can include resized copies of the query image.
repeated .google.cloud.vision.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
Returns
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.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
Parameter
Returns
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.v1p1beta1.WebDetection.WebImage full_matching_images = 4;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p1beta1.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
getParserForType()
public Parser<WebDetection.WebPage> getParserForType()
Returns
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.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
Parameter
Returns
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.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
Returns
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.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
Returns
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.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
Parameter
Returns
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.v1p1beta1.WebDetection.WebImage partial_matching_images = 5;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p1beta1.WebDetection.WebImageOrBuilder> | |
getScore()
(Deprecated) Overall relevancy score for the web page.
float score = 2;
Returns
Type | Description |
float | The score.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUrl()
The result web page URL.
string url = 1;
Returns
getUrlBytes()
public ByteString getUrlBytes()
The result web page URL.
string url = 1;
Returns
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public WebDetection.WebPage.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WebDetection.WebPage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public WebDetection.WebPage.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions