NAME

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

SYNOPSIS

use Google::Cloud::Ces::V1beta::PythonFunction;

my $msg = Google::Cloud::Ces::V1beta::PythonFunction::PythonFunction->new({
    name => $name,
    python_code => $python_code,
    description => $description,
    service_directory_config => $service_directory_config,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/ces/v1beta/python_function.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::PythonFunction::PythonFunction

A Python function tool.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

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

    Type: String

    Optional. The Python code to execute for the tool.

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

    Type: String

    Output only. The description of the Python function, parsed from the python code's docstring.

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

    Type: Message (Google::Cloud::Ces::V1beta::Common::ServiceDirectoryConfig)

    Optional. Service Directory configuration for the tool.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.