public static final class Similarity.Builder extends GeneratedMessageV3.Builder<Similarity.Builder> implements SimilarityOrBuilder
Similarity explainability that returns the nearest neighbors from the
provided dataset.
Protobuf type google.cloud.aiplatform.v1beta1.Similarity
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Similarity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Similarity build()
Returns
public Similarity buildPartial()
Returns
public Similarity.Builder clear()
Returns
Overrides
public Similarity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Similarity.Builder clearGcsSource()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
public Similarity.Builder clearNearestNeighborSearchConfig()
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 Similarity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Similarity.Builder clone()
Returns
Overrides
public Similarity getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public GcsSource getGcsSource()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
public GcsSource.Builder getGcsSourceBuilder()
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 Value.Builder getNearestNeighborSearchConfigBuilder()
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 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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Similarity.Builder mergeFrom(Similarity other)
Parameter
Returns
public Similarity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Similarity.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public Similarity.Builder mergeGcsSource(GcsSource value)
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Parameter
Returns
public Similarity.Builder mergeNearestNeighborSearchConfig(Value value)
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;
Parameter
Name | Description |
value | Value
|
Returns
public final Similarity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Similarity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Similarity.Builder setGcsSource(GcsSource value)
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Parameter
Returns
public Similarity.Builder setGcsSource(GcsSource.Builder builderForValue)
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Parameter
Returns
public Similarity.Builder setNearestNeighborSearchConfig(Value value)
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;
Parameter
Name | Description |
value | Value
|
Returns
public Similarity.Builder setNearestNeighborSearchConfig(Value.Builder builderForValue)
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;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public Similarity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Similarity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides