public static final class WebDetection.WebImage extends GeneratedMessageV3 implements WebDetection.WebImageOrBuilder
Metadata for online images.
Protobuf type google.cloud.vision.v1.WebDetection.WebImage
Static Fields
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.WebImage getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static WebDetection.WebImage.Builder newBuilder()
Returns
newBuilder(WebDetection.WebImage prototype)
public static WebDetection.WebImage.Builder newBuilder(WebDetection.WebImage prototype)
Parameter
Returns
public static WebDetection.WebImage parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebDetection.WebImage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static WebDetection.WebImage parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebImage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static WebDetection.WebImage parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebImage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebDetection.WebImage parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static WebDetection.WebImage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebDetection.WebImage parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebDetection.WebImage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static WebDetection.WebImage parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WebDetection.WebImage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<WebDetection.WebImage> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public WebDetection.WebImage getDefaultInstanceForType()
Returns
getParserForType()
public Parser<WebDetection.WebImage> getParserForType()
Returns
Overrides
getScore()
(Deprecated) Overall relevancy score for the image.
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 image URL.
string url = 1;
Returns
getUrlBytes()
public ByteString getUrlBytes()
The result image 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.WebImage.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WebDetection.WebImage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public WebDetection.WebImage.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions