public static final class ImageQuery.Builder extends GeneratedMessage.Builder<ImageQuery.Builder> implements ImageQueryOrBuilderImage query for search endpoint request.
Protobuf type google.cloud.visionai.v1.ImageQuery
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ImageQuery.BuilderImplements
ImageQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ImageQuery build()| Returns | |
|---|---|
| Type | Description |
ImageQuery |
|
buildPartial()
public ImageQuery buildPartial()| Returns | |
|---|---|
| Type | Description |
ImageQuery |
|
clear()
public ImageQuery.Builder clear()| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
|
clearAsset()
public ImageQuery.Builder clearAsset() Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
This builder for chaining. |
clearImage()
public ImageQuery.Builder clearImage()| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
|
clearInputImage()
public ImageQuery.Builder clearInputImage()Input image in raw bytes.
bytes input_image = 1;
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
This builder for chaining. |
getAsset()
public String getAsset() Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The asset. |
getAssetBytes()
public ByteString getAssetBytes() Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for asset. |
getDefaultInstanceForType()
public ImageQuery getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ImageQuery |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getImageCase()
public ImageQuery.ImageCase getImageCase()| Returns | |
|---|---|
| Type | Description |
ImageQuery.ImageCase |
|
getInputImage()
public ByteString getInputImage()Input image in raw bytes.
bytes input_image = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The inputImage. |
hasAsset()
public boolean hasAsset() Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the asset field is set. |
hasInputImage()
public boolean hasInputImage()Input image in raw bytes.
bytes input_image = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inputImage field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ImageQuery other)
public ImageQuery.Builder mergeFrom(ImageQuery other)| Parameter | |
|---|---|
| Name | Description |
other |
ImageQuery |
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImageQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ImageQuery.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
|
setAsset(String value)
public ImageQuery.Builder setAsset(String value) Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 2 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe asset to set. |
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
This builder for chaining. |
setAssetBytes(ByteString value)
public ImageQuery.Builder setAssetBytes(ByteString value) Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string asset = 2 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for asset to set. |
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
This builder for chaining. |
setInputImage(ByteString value)
public ImageQuery.Builder setInputImage(ByteString value)Input image in raw bytes.
bytes input_image = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe inputImage to set. |
| Returns | |
|---|---|
| Type | Description |
ImageQuery.Builder |
This builder for chaining. |