NAME

Google::Cloud::Ces::V1::FileSearchTool - Compiled Protocol Buffers messages for google/cloud/ces/v1/file_search_tool.proto

SYNOPSIS

use Google::Cloud::Ces::V1::FileSearchTool;

my $msg = Google::Cloud::Ces::V1::FileSearchTool::FileSearchTool->new({
    corpus_type => $corpus_type,
    name => $name,
    description => $description,
    file_corpus => $file_corpus,
});

# Read or update a field
my $val = $msg->corpus_type();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::FileSearchTool::FileSearchTool->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/file_search_tool.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Ces::V1::FileSearchTool::FileSearchTool

The file search tool allows the agent to search across the files uploaded by the app/agent developer. It has presets to give relatively good quality search over the uploaded files and summarization of the retrieved results.

Inherits from Protobuf::Message.

Accessors

  • $msg->corpus_type() / $msg->corpus_type($value)

    Type: Enum (Google::Cloud::Ces::V1::FileSearchTool::CorpusType)

    Optional. The type of the corpus. Default is FULLY_MANAGED.

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The tool name.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. The tool description.

  • $msg->file_corpus() / $msg->file_corpus($value)

    Type: String

    Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

Enum: FileSearchTool::CorpusType

  • CORPUS_TYPE_UNSPECIFIED => 0

  • USER_OWNED => 1

  • FULLY_MANAGED => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::FileSearchTool::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.