Class Neighbor.Builder (3.38.0)

public static final class Neighbor.Builder extends GeneratedMessageV3.Builder<Neighbor.Builder> implements NeighborOrBuilder

Neighbors for example-based explanations.

Protobuf type google.cloud.aiplatform.v1beta1.Neighbor

Implements

NeighborOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Neighbor build()
Returns
TypeDescription
Neighbor

buildPartial()

public Neighbor buildPartial()
Returns
TypeDescription
Neighbor

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNeighborDistance()

public Neighbor.Builder clearNeighborDistance()

Output only. The neighbor distance.

double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Neighbor.Builder

This builder for chaining.

clearNeighborId()

public Neighbor.Builder clearNeighborId()

Output only. The neighbor id.

string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Neighbor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Neighbor getDefaultInstanceForType()
Returns
TypeDescription
Neighbor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNeighborDistance()

public double getNeighborDistance()

Output only. The neighbor distance.

double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
double

The neighborDistance.

getNeighborId()

public String getNeighborId()

Output only. The neighbor id.

string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The neighborId.

getNeighborIdBytes()

public ByteString getNeighborIdBytes()

Output only. The neighbor id.

string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for neighborId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Neighbor other)

public Neighbor.Builder mergeFrom(Neighbor other)
Parameter
NameDescription
otherNeighbor
Returns
TypeDescription
Neighbor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNeighborDistance(double value)

public Neighbor.Builder setNeighborDistance(double value)

Output only. The neighbor distance.

double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuedouble

The neighborDistance to set.

Returns
TypeDescription
Neighbor.Builder

This builder for chaining.

setNeighborId(String value)

public Neighbor.Builder setNeighborId(String value)

Output only. The neighbor id.

string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The neighborId to set.

Returns
TypeDescription
Neighbor.Builder

This builder for chaining.

setNeighborIdBytes(ByteString value)

public Neighbor.Builder setNeighborIdBytes(ByteString value)

Output only. The neighbor id.

string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for neighborId to set.

Returns
TypeDescription
Neighbor.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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