Class Neighbor (3.12.0)

public final class Neighbor extends GeneratedMessageV3 implements NeighborOrBuilder

Neighbors for example-based explanations.

Protobuf type google.cloud.aiplatform.v1.Neighbor

Implements

NeighborOrBuilder

Static Fields

NEIGHBOR_DISTANCE_FIELD_NUMBER

public static final int NEIGHBOR_DISTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

NEIGHBOR_ID_FIELD_NUMBER

public static final int NEIGHBOR_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Neighbor getDefaultInstance()
Returns
TypeDescription
Neighbor

getDescriptor()

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

newBuilder()

public static Neighbor.Builder newBuilder()
Returns
TypeDescription
Neighbor.Builder

newBuilder(Neighbor prototype)

public static Neighbor.Builder newBuilder(Neighbor prototype)
Parameter
NameDescription
prototypeNeighbor
Returns
TypeDescription
Neighbor.Builder

parseDelimitedFrom(InputStream input)

public static Neighbor parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Neighbor parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Neighbor parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Neighbor parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Neighbor parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Neighbor parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Neighbor parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Neighbor parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Neighbor parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Neighbor parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Neighbor parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Neighbor parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Neighbor> parser()
Returns
TypeDescription
Parser<Neighbor>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Neighbor getDefaultInstanceForType()
Returns
TypeDescription
Neighbor

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.

getParserForType()

public Parser<Neighbor> getParserForType()
Returns
TypeDescription
Parser<Neighbor>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Neighbor.Builder newBuilderForType()
Returns
TypeDescription
Neighbor.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Neighbor.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Neighbor.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Neighbor.Builder toBuilder()
Returns
TypeDescription
Neighbor.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException