public static final class WebDetection.WebImage.Builder extends GeneratedMessage.Builder<WebDetection.WebImage.Builder> implements WebDetection.WebImageOrBuilderMetadata for online images.
Protobuf type google.cloud.vision.v1p2beta1.WebDetection.WebImage
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WebDetection.WebImage.BuilderImplements
WebDetection.WebImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public WebDetection.WebImage build()| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage |
|
buildPartial()
public WebDetection.WebImage buildPartial()| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage |
|
clear()
public WebDetection.WebImage.Builder clear()| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
|
clearScore()
public WebDetection.WebImage.Builder clearScore()(Deprecated) Overall relevancy score for the image.
float score = 2;
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
This builder for chaining. |
clearUrl()
public WebDetection.WebImage.Builder clearUrl()The result image URL.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public WebDetection.WebImage getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getScore()
public float getScore()(Deprecated) Overall relevancy score for the image.
float score = 2;
| Returns | |
|---|---|
| Type | Description |
float |
The score. |
getUrl()
public String getUrl()The result image URL.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The url. |
getUrlBytes()
public ByteString getUrlBytes()The result image URL.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for url. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(WebDetection.WebImage other)
public WebDetection.WebImage.Builder mergeFrom(WebDetection.WebImage other)| Parameter | |
|---|---|
| Name | Description |
other |
WebDetection.WebImage |
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WebDetection.WebImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WebDetection.WebImage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
|
setScore(float value)
public WebDetection.WebImage.Builder setScore(float value)(Deprecated) Overall relevancy score for the image.
float score = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe score to set. |
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
This builder for chaining. |
setUrl(String value)
public WebDetection.WebImage.Builder setUrl(String value)The result image URL.
string url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe url to set. |
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
This builder for chaining. |
setUrlBytes(ByteString value)
public WebDetection.WebImage.Builder setUrlBytes(ByteString value)The result image URL.
string url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
WebDetection.WebImage.Builder |
This builder for chaining. |