Class SearchNearestEntitiesResponse.Builder (3.35.0)

public static final class SearchNearestEntitiesResponse.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchNearestEntitiesResponse build()
Returns
TypeDescription
SearchNearestEntitiesResponse

buildPartial()

public SearchNearestEntitiesResponse buildPartial()
Returns
TypeDescription
SearchNearestEntitiesResponse

clear()

public SearchNearestEntitiesResponse.Builder clear()
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNearestNeighbors()

public SearchNearestEntitiesResponse.Builder clearNearestNeighbors()

The nearest neighbors of the query entity.

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

Returns
TypeDescription
SearchNearestEntitiesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SearchNearestEntitiesResponse.Builder clone()
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchNearestEntitiesResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchNearestEntitiesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNearestNeighbors()

public NearestNeighbors getNearestNeighbors()

The nearest neighbors of the query entity.

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

Returns
TypeDescription
NearestNeighbors

The nearestNeighbors.

getNearestNeighborsBuilder()

public NearestNeighbors.Builder getNearestNeighborsBuilder()

The nearest neighbors of the query entity.

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

Returns
TypeDescription
NearestNeighbors.Builder

getNearestNeighborsOrBuilder()

public NearestNeighborsOrBuilder getNearestNeighborsOrBuilder()

The nearest neighbors of the query entity.

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

Returns
TypeDescription
NearestNeighborsOrBuilder

hasNearestNeighbors()

public boolean hasNearestNeighbors()

The nearest neighbors of the query entity.

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

Returns
TypeDescription
boolean

Whether the nearestNeighbors field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchNearestEntitiesResponse other)

public SearchNearestEntitiesResponse.Builder mergeFrom(SearchNearestEntitiesResponse other)
Parameter
NameDescription
otherSearchNearestEntitiesResponse
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SearchNearestEntitiesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNearestNeighbors
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public SearchNearestEntitiesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder
Overrides

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
NameDescription
valueNearestNeighbors
Returns
TypeDescription
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
NameDescription
builderForValueNearestNeighbors.Builder
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder

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

public SearchNearestEntitiesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchNearestEntitiesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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