public static final class ImageQuery.Builder extends GeneratedMessageV3.Builder<ImageQuery.Builder> implements ImageQueryOrBuilder
Image query for search endpoint request.
Protobuf type google.cloud.visionai.v1.ImageQuery
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImageQuery build()
buildPartial()
public ImageQuery buildPartial()
clear()
public ImageQuery.Builder clear()
Overrides
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) = { ... }
clearField(Descriptors.FieldDescriptor field)
public ImageQuery.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearImage()
public ImageQuery.Builder clearImage()
public ImageQuery.Builder clearInputImage()
Input image in raw bytes.
bytes input_image = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ImageQuery.Builder clone()
Overrides
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getImageCase()
public ImageQuery.ImageCase getImageCase()
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.
|
public boolean hasInputImage()
Input image in raw bytes.
bytes input_image = 1;
Returns |
Type |
Description |
boolean |
Whether the inputImage field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ImageQuery other)
public ImageQuery.Builder mergeFrom(ImageQuery other)
public ImageQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImageQuery.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 |
String
The asset to set.
|
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 |
ByteString
The bytes for asset to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ImageQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ImageQuery.Builder setInputImage(ByteString value)
Input image in raw bytes.
bytes input_image = 1;
Parameter |
Name |
Description |
value |
ByteString
The inputImage to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides