[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eNeighbor\u003c/code\u003e class, part of the Vertex AI v1beta1 API, is used for defining neighbors in example-based explanations within the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace, as seen in the latest version 1.0.0-beta21.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNeighbor\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it compatible with various Protobuf and .NET functionalities.\u003c/p\u003e\n"],["\u003cp\u003eIt provides two constructors, a default one and another that accepts a \u003ccode\u003eNeighbor\u003c/code\u003e instance for copying, allowing for flexible instantiation.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two main properties, \u003ccode\u003eNeighborDistance\u003c/code\u003e (a double representing the distance to the neighbor) and \u003ccode\u003eNeighborId\u003c/code\u003e (a string representing the neighbor's identifier), both of which are output-only.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation is located within the Google.Cloud.AIPlatform.V1Beta1.dll assembly.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class Neighbor (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Neighbor)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.Neighbor) \n\n public sealed class Neighbor : IMessage\u003cNeighbor\u003e, IEquatable\u003cNeighbor\u003e, IDeepCloneable\u003cNeighbor\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class Neighbor.\n\nNeighbors for example-based explanations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Neighbor \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Neighbor](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Neighbor), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Neighbor](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Neighbor), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Neighbor](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Neighbor), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### Neighbor()\n\n public Neighbor()\n\n### Neighbor(Neighbor)\n\n public Neighbor(Neighbor other)\n\nProperties\n----------\n\n### NeighborDistance\n\n public double NeighborDistance { get; set; }\n\nOutput only. The neighbor distance.\n\n### NeighborId\n\n public string NeighborId { get; set; }\n\nOutput only. The neighbor id."]]