Class WebDetection.WebEntity (2.1.2)

public static final class WebDetection.WebEntity extends GeneratedMessageV3 implements WebDetection.WebEntityOrBuilder

Entity deduced from similar images on the Internet.

Protobuf type google.cloud.vision.v1p1beta1.WebDetection.WebEntity

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_ID_FIELD_NUMBER

public static final int ENTITY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(WebDetection.WebEntity prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getDescription()

public String getDescription()

Canonical description of the entity, in English.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Canonical description of the entity, in English.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getEntityId()

public String getEntityId()

Opaque entity ID.

string entity_id = 1;

Returns
TypeDescription
String

The entityId.

getEntityIdBytes()

public ByteString getEntityIdBytes()

Opaque entity ID.

string entity_id = 1;

Returns
TypeDescription
ByteString

The bytes for entityId.

getParserForType()

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

getScore()

public float getScore()

Overall relevancy score for the entity. Not normalized and not comparable across different image queries.

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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