Class SearchNearestEntitiesResponse.Builder (3.47.0)

public static final class SearchNearestEntitiesResponse.Builder extends GeneratedMessageV3.Builder<SearchNearestEntitiesResponse.Builder> implements SearchNearestEntitiesResponseOrBuilder

Response message for FeatureOnlineStoreService.SearchNearestEntities

Protobuf type google.cloud.aiplatform.v1.SearchNearestEntitiesResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchNearestEntitiesResponse build()
Returns
Type Description
SearchNearestEntitiesResponse

buildPartial()

public SearchNearestEntitiesResponse buildPartial()
Returns
Type Description
SearchNearestEntitiesResponse

clear()

public SearchNearestEntitiesResponse.Builder clear()
Returns
Type Description
SearchNearestEntitiesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNearestNeighbors()

public SearchNearestEntitiesResponse.Builder clearNearestNeighbors()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
SearchNearestEntitiesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SearchNearestEntitiesResponse.Builder clone()
Returns
Type Description
SearchNearestEntitiesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchNearestEntitiesResponse getDefaultInstanceForType()
Returns
Type Description
SearchNearestEntitiesResponse

getDescriptorForType()

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

getNearestNeighbors()

public NearestNeighbors getNearestNeighbors()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
NearestNeighbors

The nearestNeighbors.

getNearestNeighborsBuilder()

public NearestNeighbors.Builder getNearestNeighborsBuilder()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
NearestNeighbors.Builder

getNearestNeighborsOrBuilder()

public NearestNeighborsOrBuilder getNearestNeighborsOrBuilder()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
NearestNeighborsOrBuilder

hasNearestNeighbors()

public boolean hasNearestNeighbors()

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
boolean

Whether the nearestNeighbors field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchNearestEntitiesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNearestNeighbors(NearestNeighbors value)

public SearchNearestEntitiesResponse.Builder mergeNearestNeighbors(NearestNeighbors value)

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Parameter
Name Description
value NearestNeighbors
Returns
Type Description
SearchNearestEntitiesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNearestNeighbors(NearestNeighbors value)

public SearchNearestEntitiesResponse.Builder setNearestNeighbors(NearestNeighbors value)

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Parameter
Name Description
value NearestNeighbors
Returns
Type Description
SearchNearestEntitiesResponse.Builder

setNearestNeighbors(NearestNeighbors.Builder builderForValue)

public SearchNearestEntitiesResponse.Builder setNearestNeighbors(NearestNeighbors.Builder builderForValue)

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1.NearestNeighbors nearest_neighbors = 1;

Parameter
Name Description
builderForValue NearestNeighbors.Builder
Returns
Type Description
SearchNearestEntitiesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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