Class FindNeighborsResponse.NearestNeighbors.Builder (3.23.0)

public static final class FindNeighborsResponse.NearestNeighbors.Builder extends GeneratedMessageV3.Builder<FindNeighborsResponse.NearestNeighbors.Builder> implements FindNeighborsResponse.NearestNeighborsOrBuilder

Nearest neighbors for one query.

Protobuf type google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors

Static Methods

getDescriptor()

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

Methods

addAllNeighbors(Iterable<? extends FindNeighborsResponse.Neighbor> values)

public FindNeighborsResponse.NearestNeighbors.Builder addAllNeighbors(Iterable<? extends FindNeighborsResponse.Neighbor> values)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor>
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(FindNeighborsResponse.Neighbor value)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor value)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
valueFindNeighborsResponse.Neighbor
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(FindNeighborsResponse.Neighbor.Builder builderForValue)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor.Builder builderForValue)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
builderForValueFindNeighborsResponse.Neighbor.Builder
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(int index, FindNeighborsResponse.Neighbor value)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor value)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
NameDescription
indexint
valueFindNeighborsResponse.Neighbor
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

addNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
NameDescription
indexint
builderForValueFindNeighborsResponse.Neighbor.Builder
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

addNeighborsBuilder()

public FindNeighborsResponse.Neighbor.Builder addNeighborsBuilder()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder

addNeighborsBuilder(int index)

public FindNeighborsResponse.Neighbor.Builder addNeighborsBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FindNeighborsResponse.NearestNeighbors build()
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors

buildPartial()

public FindNeighborsResponse.NearestNeighbors buildPartial()
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors

clear()

public FindNeighborsResponse.NearestNeighbors.Builder clear()
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public FindNeighborsResponse.NearestNeighbors.Builder clearId()

The ID of the query datapoint.

string id = 1;

Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

This builder for chaining.

clearNeighbors()

public FindNeighborsResponse.NearestNeighbors.Builder clearNeighbors()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public FindNeighborsResponse.NearestNeighbors.Builder clone()
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder
Overrides

getDefaultInstanceForType()

public FindNeighborsResponse.NearestNeighbors getDefaultInstanceForType()
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

The ID of the query datapoint.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the query datapoint.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getNeighbors(int index)

public FindNeighborsResponse.Neighbor getNeighbors(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.Neighbor

getNeighborsBuilder(int index)

public FindNeighborsResponse.Neighbor.Builder getNeighborsBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder

getNeighborsBuilderList()

public List<FindNeighborsResponse.Neighbor.Builder> getNeighborsBuilderList()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
List<Builder>

getNeighborsCount()

public int getNeighborsCount()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
int

getNeighborsList()

public List<FindNeighborsResponse.Neighbor> getNeighborsList()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
List<Neighbor>

getNeighborsOrBuilder(int index)

public FindNeighborsResponse.NeighborOrBuilder getNeighborsOrBuilder(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NeighborOrBuilder

getNeighborsOrBuilderList()

public List<? extends FindNeighborsResponse.NeighborOrBuilder> getNeighborsOrBuilderList()

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NeighborOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FindNeighborsResponse.NearestNeighbors other)

public FindNeighborsResponse.NearestNeighbors.Builder mergeFrom(FindNeighborsResponse.NearestNeighbors other)
Parameter
NameDescription
otherFindNeighborsResponse.NearestNeighbors
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNeighbors(int index)

public FindNeighborsResponse.NearestNeighbors.Builder removeNeighbors(int index)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public FindNeighborsResponse.NearestNeighbors.Builder setId(String value)

The ID of the query datapoint.

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

This builder for chaining.

setIdBytes(ByteString value)

public FindNeighborsResponse.NearestNeighbors.Builder setIdBytes(ByteString value)

The ID of the query datapoint.

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

This builder for chaining.

setNeighbors(int index, FindNeighborsResponse.Neighbor value)

public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor value)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
NameDescription
indexint
valueFindNeighborsResponse.Neighbor
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

setNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)

All its neighbors.

repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;

Parameters
NameDescription
indexint
builderForValueFindNeighborsResponse.Neighbor.Builder
Returns
TypeDescription
FindNeighborsResponse.NearestNeighbors.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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