Class Tool.ParallelAiSearch (3.100.0)

public static final class Tool.ParallelAiSearch extends GeneratedMessage implements Tool.ParallelAiSearchOrBuilder

ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding.

Protobuf type google.cloud.aiplatform.v1beta1.Tool.ParallelAiSearch

Static Fields

API_KEY_FIELD_NUMBER

public static final int API_KEY_FIELD_NUMBER
Field Value
Type Description
int

CUSTOM_CONFIGS_FIELD_NUMBER

public static final int CUSTOM_CONFIGS_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_ZERO_DATA_RETENTION_FIELD_NUMBER

public static final int ENABLE_ZERO_DATA_RETENTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Tool.ParallelAiSearch getDefaultInstance()
Returns
Type Description
Tool.ParallelAiSearch

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Tool.ParallelAiSearch.Builder newBuilder()
Returns
Type Description
Tool.ParallelAiSearch.Builder

newBuilder(Tool.ParallelAiSearch prototype)

public static Tool.ParallelAiSearch.Builder newBuilder(Tool.ParallelAiSearch prototype)
Parameter
Name Description
prototype Tool.ParallelAiSearch
Returns
Type Description
Tool.ParallelAiSearch.Builder

parseDelimitedFrom(InputStream input)

public static Tool.ParallelAiSearch parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.ParallelAiSearch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Tool.ParallelAiSearch parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Tool.ParallelAiSearch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Tool.ParallelAiSearch parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Tool.ParallelAiSearch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Tool.ParallelAiSearch parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.ParallelAiSearch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Tool.ParallelAiSearch parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.ParallelAiSearch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Tool.ParallelAiSearch parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Tool.ParallelAiSearch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ParallelAiSearch
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Tool.ParallelAiSearch> parser()
Returns
Type Description
Parser<ParallelAiSearch>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApiKey()

public String getApiKey()

Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.

string api_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The apiKey.

getApiKeyBytes()

public ByteString getApiKeyBytes()

Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.

string api_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for apiKey.

getCustomConfigs()

public Struct getCustomConfigs()

Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only source_policy, excerpts, max_results, mode, fetch_policy can be set via this field. For example: { "source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } }

.google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The customConfigs.

getCustomConfigsOrBuilder()

public StructOrBuilder getCustomConfigsOrBuilder()

Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only source_policy, excerpts, max_results, mode, fetch_policy can be set via this field. For example: { "source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } }

.google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public Tool.ParallelAiSearch getDefaultInstanceForType()
Returns
Type Description
Tool.ParallelAiSearch

getEnableZeroDataRetention()

public boolean getEnableZeroDataRetention()

Optional. Instructs Vertex Grounding to use Parallel's Zero Data Retention Marketplace product. If this value is "false" or omitted, the Parallel Web Search for Grounding standard subscription will be used. If this value is "true", the Parallel Web Search for Grounding - ZDR subscription will be used.

bool enable_zero_data_retention = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableZeroDataRetention.

getParserForType()

public Parser<Tool.ParallelAiSearch> getParserForType()
Returns
Type Description
Parser<ParallelAiSearch>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCustomConfigs()

public boolean hasCustomConfigs()

Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only source_policy, excerpts, max_results, mode, fetch_policy can be set via this field. For example: { "source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } }

.google.protobuf.Struct custom_configs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customConfigs field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Tool.ParallelAiSearch.Builder newBuilderForType()
Returns
Type Description
Tool.ParallelAiSearch.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Tool.ParallelAiSearch.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Tool.ParallelAiSearch.Builder
Overrides

toBuilder()

public Tool.ParallelAiSearch.Builder toBuilder()
Returns
Type Description
Tool.ParallelAiSearch.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException