Class Retrieval (3.38.0)

public final class Retrieval extends GeneratedMessageV3 implements RetrievalOrBuilder

Defines a retrieval tool that model can call to access external knowledge.

Protobuf type google.cloud.aiplatform.v1beta1.Retrieval

Implements

RetrievalOrBuilder

Static Fields

DISABLE_ATTRIBUTION_FIELD_NUMBER

public static final int DISABLE_ATTRIBUTION_FIELD_NUMBER
Field Value
TypeDescription
int

VERTEX_AI_SEARCH_FIELD_NUMBER

public static final int VERTEX_AI_SEARCH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Retrieval getDefaultInstance()
Returns
TypeDescription
Retrieval

getDescriptor()

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

newBuilder()

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

newBuilder(Retrieval prototype)

public static Retrieval.Builder newBuilder(Retrieval prototype)
Parameter
NameDescription
prototypeRetrieval
Returns
TypeDescription
Retrieval.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Retrieval getDefaultInstanceForType()
Returns
TypeDescription
Retrieval

getDisableAttribution()

public boolean getDisableAttribution()

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The disableAttribution.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceCase()

public Retrieval.SourceCase getSourceCase()
Returns
TypeDescription
Retrieval.SourceCase

getVertexAiSearch()

public VertexAISearch getVertexAiSearch()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1beta1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
VertexAISearch

The vertexAiSearch.

getVertexAiSearchOrBuilder()

public VertexAISearchOrBuilder getVertexAiSearchOrBuilder()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1beta1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
VertexAISearchOrBuilder

hasVertexAiSearch()

public boolean hasVertexAiSearch()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1beta1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
boolean

Whether the vertexAiSearch field is set.

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 Retrieval.Builder newBuilderForType()
Returns
TypeDescription
Retrieval.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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