Class WebDetection.WebImage (3.15.0)

public static final class WebDetection.WebImage extends GeneratedMessageV3 implements WebDetection.WebImageOrBuilder

Metadata for online images.

Protobuf type google.cloud.vision.v1p4beta1.WebDetection.WebImage

Static Fields

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.WebImage getDefaultInstance()
Returns
TypeDescription
WebDetection.WebImage

getDescriptor()

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

newBuilder()

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

newBuilder(WebDetection.WebImage prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public WebDetection.WebImage getDefaultInstanceForType()
Returns
TypeDescription
WebDetection.WebImage

getParserForType()

public Parser<WebDetection.WebImage> getParserForType()
Returns
TypeDescription
Parser<WebImage>
Overrides

getScore()

public float getScore()

(Deprecated) Overall relevancy score for the image.

float score = 2;

Returns
TypeDescription
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUrl()

public String getUrl()

The result image URL.

string url = 1;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The result image 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.WebImage.Builder newBuilderForType()
Returns
TypeDescription
WebDetection.WebImage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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