Class SearchNearestEntitiesRequest.Builder (3.35.0)

public static final class SearchNearestEntitiesRequest.Builder extends GeneratedMessageV3.Builder<SearchNearestEntitiesRequest.Builder> implements SearchNearestEntitiesRequestOrBuilder

The request message for FeatureOnlineStoreService.SearchNearestEntities.

Protobuf type google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchNearestEntitiesRequest build()
Returns
TypeDescription
SearchNearestEntitiesRequest

buildPartial()

public SearchNearestEntitiesRequest buildPartial()
Returns
TypeDescription
SearchNearestEntitiesRequest

clear()

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

clearFeatureView()

public SearchNearestEntitiesRequest.Builder clearFeatureView()

Required. FeatureView resource format projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}

string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuery()

public SearchNearestEntitiesRequest.Builder clearQuery()

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

clearReturnFullEntity()

public SearchNearestEntitiesRequest.Builder clearReturnFullEntity()

Optional. If set to true, the full entities (including all vector values and metadata) of the nearest neighbors are returned; otherwise only entity id of the nearest neighbors will be returned. Note that returning full entities will significantly increase the latency and cost of the query.

bool return_full_entity = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SearchNearestEntitiesRequest getDefaultInstanceForType()
Returns
TypeDescription
SearchNearestEntitiesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFeatureView()

public String getFeatureView()

Required. FeatureView resource format projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}

string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The featureView.

getFeatureViewBytes()

public ByteString getFeatureViewBytes()

Required. FeatureView resource format projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}

string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for featureView.

getQuery()

public NearestNeighborQuery getQuery()

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NearestNeighborQuery

The query.

getQueryBuilder()

public NearestNeighborQuery.Builder getQueryBuilder()

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NearestNeighborQuery.Builder

getQueryOrBuilder()

public NearestNeighborQueryOrBuilder getQueryOrBuilder()

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NearestNeighborQueryOrBuilder

getReturnFullEntity()

public boolean getReturnFullEntity()

Optional. If set to true, the full entities (including all vector values and metadata) of the nearest neighbors are returned; otherwise only entity id of the nearest neighbors will be returned. Note that returning full entities will significantly increase the latency and cost of the query.

bool return_full_entity = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The returnFullEntity.

hasQuery()

public boolean hasQuery()

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the query field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchNearestEntitiesRequest other)

public SearchNearestEntitiesRequest.Builder mergeFrom(SearchNearestEntitiesRequest other)
Parameter
NameDescription
otherSearchNearestEntitiesRequest
Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuery(NearestNeighborQuery value)

public SearchNearestEntitiesRequest.Builder mergeQuery(NearestNeighborQuery value)

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNearestNeighborQuery
Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFeatureView(String value)

public SearchNearestEntitiesRequest.Builder setFeatureView(String value)

Required. FeatureView resource format projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}

string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The featureView to set.

Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

This builder for chaining.

setFeatureViewBytes(ByteString value)

public SearchNearestEntitiesRequest.Builder setFeatureViewBytes(ByteString value)

Required. FeatureView resource format projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}

string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for featureView to set.

Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setQuery(NearestNeighborQuery value)

public SearchNearestEntitiesRequest.Builder setQuery(NearestNeighborQuery value)

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNearestNeighborQuery
Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

setQuery(NearestNeighborQuery.Builder builderForValue)

public SearchNearestEntitiesRequest.Builder setQuery(NearestNeighborQuery.Builder builderForValue)

Required. The query.

.google.cloud.aiplatform.v1beta1.NearestNeighborQuery query = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueNearestNeighborQuery.Builder
Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

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

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

setReturnFullEntity(boolean value)

public SearchNearestEntitiesRequest.Builder setReturnFullEntity(boolean value)

Optional. If set to true, the full entities (including all vector values and metadata) of the nearest neighbors are returned; otherwise only entity id of the nearest neighbors will be returned. Note that returning full entities will significantly increase the latency and cost of the query.

bool return_full_entity = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The returnFullEntity to set.

Returns
TypeDescription
SearchNearestEntitiesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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