Class SearchRequest.ImageQuery.Builder (0.50.0)

public static final class SearchRequest.ImageQuery.Builder extends GeneratedMessageV3.Builder<SearchRequest.ImageQuery.Builder> implements SearchRequest.ImageQueryOrBuilder

Specifies the image query input.

Protobuf type google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ImageQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

build()

public SearchRequest.ImageQuery build()
Returns
Type Description
SearchRequest.ImageQuery

buildPartial()

public SearchRequest.ImageQuery buildPartial()
Returns
Type Description
SearchRequest.ImageQuery

clear()

public SearchRequest.ImageQuery.Builder clear()
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.ImageQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

clearImage()

public SearchRequest.ImageQuery.Builder clearImage()
Returns
Type Description
SearchRequest.ImageQuery.Builder

clearImageBytes()

public SearchRequest.ImageQuery.Builder clearImageBytes()

Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP.

string image_bytes = 1;

Returns
Type Description
SearchRequest.ImageQuery.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.ImageQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

clone()

public SearchRequest.ImageQuery.Builder clone()
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

getDefaultInstanceForType()

public SearchRequest.ImageQuery getDefaultInstanceForType()
Returns
Type Description
SearchRequest.ImageQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImageBytes()

public String getImageBytes()

Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP.

string image_bytes = 1;

Returns
Type Description
String

The imageBytes.

getImageBytesBytes()

public ByteString getImageBytesBytes()

Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP.

string image_bytes = 1;

Returns
Type Description
ByteString

The bytes for imageBytes.

getImageCase()

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

hasImageBytes()

public boolean hasImageBytes()

Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP.

string image_bytes = 1;

Returns
Type Description
boolean

Whether the imageBytes field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchRequest.ImageQuery other)

public SearchRequest.ImageQuery.Builder mergeFrom(SearchRequest.ImageQuery other)
Parameter
Name Description
other SearchRequest.ImageQuery
Returns
Type Description
SearchRequest.ImageQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.ImageQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchRequest.ImageQuery.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ImageQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ImageQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

setImageBytes(String value)

public SearchRequest.ImageQuery.Builder setImageBytes(String value)

Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP.

string image_bytes = 1;

Parameter
Name Description
value String

The imageBytes to set.

Returns
Type Description
SearchRequest.ImageQuery.Builder

This builder for chaining.

setImageBytesBytes(ByteString value)

public SearchRequest.ImageQuery.Builder setImageBytesBytes(ByteString value)

Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP.

string image_bytes = 1;

Parameter
Name Description
value ByteString

The bytes for imageBytes to set.

Returns
Type Description
SearchRequest.ImageQuery.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchRequest.ImageQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ImageQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.ImageQuery.Builder
Overrides