Interface ImageQueryOrBuilder (0.2.0)

public interface ImageQueryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAsset()

public abstract 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 abstract 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.

getImageCase()

public abstract ImageQuery.ImageCase getImageCase()
Returns
Type Description
ImageQuery.ImageCase

getInputImage()

public abstract ByteString getInputImage()

Input image in raw bytes.

bytes input_image = 1;

Returns
Type Description
ByteString

The inputImage.

hasAsset()

public abstract 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 abstract boolean hasInputImage()

Input image in raw bytes.

bytes input_image = 1;

Returns
Type Description
boolean

Whether the inputImage field is set.