public final class Similarity extends GeneratedMessageV3 implements SimilarityOrBuilder
Similarity explainability that returns the nearest neighbors from the
provided dataset.
Protobuf type google.cloud.aiplatform.v1beta1.Similarity
Static Fields
public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
public static final int NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER
Field Value
Static Methods
public static Similarity getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Similarity.Builder newBuilder()
Returns
public static Similarity.Builder newBuilder(Similarity prototype)
Parameter
Returns
public static Similarity parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Similarity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Similarity parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Similarity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Similarity parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Similarity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Similarity parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Similarity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Similarity parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Similarity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Similarity parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Similarity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Similarity> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Similarity getDefaultInstanceForType()
Returns
public GcsSource getGcsSource()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
public GcsSourceOrBuilder getGcsSourceOrBuilder()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
public Value getNearestNeighborSearchConfig()
The configuration for the generated index, the semantics are the same as
metadata and should match NearestNeighborSearchConfig.
.google.protobuf.Value nearest_neighbor_search_config = 2;
Returns
Type | Description |
Value | The nearestNeighborSearchConfig.
|
public ValueOrBuilder getNearestNeighborSearchConfigOrBuilder()
The configuration for the generated index, the semantics are the same as
metadata and should match NearestNeighborSearchConfig.
.google.protobuf.Value nearest_neighbor_search_config = 2;
Returns
public Parser<Similarity> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasGcsSource()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
Type | Description |
boolean | Whether the gcsSource field is set.
|
public boolean hasNearestNeighborSearchConfig()
The configuration for the generated index, the semantics are the same as
metadata and should match NearestNeighborSearchConfig.
.google.protobuf.Value nearest_neighbor_search_config = 2;
Returns
Type | Description |
boolean | Whether the nearestNeighborSearchConfig field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Similarity.Builder newBuilderForType()
Returns
protected Similarity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Similarity.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions