Class SearchNearestEntitiesResponse.Builder (3.84.0)

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

Response message for FeatureOnlineStoreService.SearchNearestEntities

Protobuf type google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse

Static Methods

getDescriptor()

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

Methods

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

clearNearestNeighbors()

public SearchNearestEntitiesResponse.Builder clearNearestNeighbors()

The nearest neighbors of the query entity.

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

Returns
Type Description
SearchNearestEntitiesResponse.Builder

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.v1beta1.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.v1beta1.NearestNeighbors nearest_neighbors = 1;

Returns
Type Description
NearestNeighbors.Builder

getNearestNeighborsOrBuilder()

public NearestNeighborsOrBuilder getNearestNeighborsOrBuilder()

The nearest neighbors of the query entity.

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

Returns
Type Description
NearestNeighborsOrBuilder

hasNearestNeighbors()

public boolean hasNearestNeighbors()

The nearest neighbors of the query entity.

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

Returns
Type Description
boolean

Whether the nearestNeighbors field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.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.v1beta1.NearestNeighbors nearest_neighbors = 1;

Parameter
Name Description
value NearestNeighbors
Returns
Type Description
SearchNearestEntitiesResponse.Builder

setNearestNeighbors(NearestNeighbors value)

public SearchNearestEntitiesResponse.Builder setNearestNeighbors(NearestNeighbors value)

The nearest neighbors of the query entity.

.google.cloud.aiplatform.v1beta1.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.v1beta1.NearestNeighbors nearest_neighbors = 1;

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