NAME

Google::Cloud::Ces::V1beta::Mocks - Compiled Protocol Buffers messages for google/cloud/ces/v1beta/mocks.proto

SYNOPSIS

use Google::Cloud::Ces::V1beta::Mocks;

my $msg = Google::Cloud::Ces::V1beta::Mocks::MockedToolCall->new({
    tool_id => $tool_id,
    toolset => $toolset,
    tool => $tool,
    expected_args_pattern => $expected_args_pattern,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/ces/v1beta/mocks.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::V1beta::Mocks::MockedToolCall

A mocked tool call.

Expresses the target tool + a pattern to match against that tool's args / inputs. If the pattern matches, then the mock response will be returned.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The name of the tool to mock. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`

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

    Type: Message (Google::Cloud::Ces::V1beta::ToolsetTool::ToolsetTool)

    Optional. The toolset to mock.

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

    Type: String

    Optional. Deprecated. Use tool_identifier instead.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Required. A pattern to match against the args / inputs of all dispatched tool calls. If the tool call inputs match this pattern, then mock output will be returned.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. The mock response / output to return if the tool call args / inputs match the pattern.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Ces::V1beta::Mocks::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.