Send feedback
Class SearchExamplesResponse.SimilarExample (3.64.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class SearchExamplesResponse . SimilarExample extends GeneratedMessageV3 implements SearchExamplesResponse . SimilarExampleOrBuilder
The result of the similar example.
Protobuf type google.cloud.aiplatform.v1beta1.SearchExamplesResponse.SimilarExample
Inherited Members
com.google.protobuf.GeneratedMessageV3.makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.emptyList(java.lang.Class)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int EXAMPLE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int SIMILARITY_SCORE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static SearchExamplesResponse . SimilarExample getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static SearchExamplesResponse . SimilarExample . Builder newBuilder ()
public static SearchExamplesResponse . SimilarExample . Builder newBuilder ( SearchExamplesResponse . SimilarExample prototype )
public static SearchExamplesResponse . SimilarExample parseDelimitedFrom ( InputStream input )
public static SearchExamplesResponse . SimilarExample parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SearchExamplesResponse . SimilarExample parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static SearchExamplesResponse . SimilarExample parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static SearchExamplesResponse . SimilarExample parseFrom ( ByteString data )
public static SearchExamplesResponse . SimilarExample parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static SearchExamplesResponse . SimilarExample parseFrom ( CodedInputStream input )
public static SearchExamplesResponse . SimilarExample parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static SearchExamplesResponse . SimilarExample parseFrom ( InputStream input )
public static SearchExamplesResponse . SimilarExample parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SearchExamplesResponse . SimilarExample parseFrom ( ByteBuffer data )
public static SearchExamplesResponse . SimilarExample parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser. SimilarExample > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public SearchExamplesResponse . SimilarExample getDefaultInstanceForType ()
public Example getExample ()
The example that is similar to the searched query.
.google.cloud.aiplatform.v1beta1.Example example = 1;
Returns
Type
Description
Example
The example.
public ExampleOrBuilder getExampleOrBuilder ()
The example that is similar to the searched query.
.google.cloud.aiplatform.v1beta1.Example example = 1;
public Parser. SimilarExample > getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public float getSimilarityScore ()
The similarity score of this example.
float similarity_score = 2;
Returns
Type
Description
float
The similarityScore.
public boolean hasExample ()
The example that is similar to the searched query.
.google.cloud.aiplatform.v1beta1.Example example = 1;
Returns
Type
Description
boolean
Whether the example field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SearchExamplesResponse . SimilarExample . Builder newBuilderForType ()
protected SearchExamplesResponse . SimilarExample . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public SearchExamplesResponse . SimilarExample . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-12 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[],[]]