Class SearchRequest.ImageQuery.Builder (0.23.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.v1beta.SearchRequest.ImageQuery

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ImageQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

build()

public SearchRequest.ImageQuery build()
Returns
TypeDescription
SearchRequest.ImageQuery

buildPartial()

public SearchRequest.ImageQuery buildPartial()
Returns
TypeDescription
SearchRequest.ImageQuery

clear()

public SearchRequest.ImageQuery.Builder clear()
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.ImageQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

clearImage()

public SearchRequest.ImageQuery.Builder clearImage()
Returns
TypeDescription
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
TypeDescription
SearchRequest.ImageQuery.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.ImageQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

clone()

public SearchRequest.ImageQuery.Builder clone()
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

getDefaultInstanceForType()

public SearchRequest.ImageQuery getDefaultInstanceForType()
Returns
TypeDescription
SearchRequest.ImageQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImageBytes()

public String getImageBytes()

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

string image_bytes = 1;

Returns
TypeDescription
String

The imageBytes.

getImageBytesBytes()

public ByteString getImageBytesBytes()

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

string image_bytes = 1;

Returns
TypeDescription
ByteString

The bytes for imageBytes.

getImageCase()

public SearchRequest.ImageQuery.ImageCase getImageCase()
Returns
TypeDescription
SearchRequest.ImageQuery.ImageCase

hasImageBytes()

public boolean hasImageBytes()

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

string image_bytes = 1;

Returns
TypeDescription
boolean

Whether the imageBytes field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchRequest.ImageQuery other)

public SearchRequest.ImageQuery.Builder mergeFrom(SearchRequest.ImageQuery other)
Parameter
NameDescription
otherSearchRequest.ImageQuery
Returns
TypeDescription
SearchRequest.ImageQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.ImageQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchRequest.ImageQuery.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ImageQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ImageQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The imageBytes to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for imageBytes to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ImageQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchRequest.ImageQuery.Builder
Overrides