Google Cloud Ai Platform V1 Client - Class ExecutableCode (1.21.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ExecutableCode.

Code generated by the model that is meant to be executed, and the result returned to the model.

Generated when using the [FunctionDeclaration] tool and [FunctionCallingConfig] mode is set to [Mode.CODE].

Generated from protobuf message google.cloud.aiplatform.v1.ExecutableCode

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ language int

Required. Programming language of the code.

↳ code string

Required. The code to be executed.

getLanguage

Required. Programming language of the code.

Returns
Type Description
int

setLanguage

Required. Programming language of the code.

Parameter
Name Description
var int
Returns
Type Description
$this

getCode

Required. The code to be executed.

Returns
Type Description
string

setCode

Required. The code to be executed.

Parameter
Name Description
var string
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.