Class ExecutableCode.Builder (3.84.0)

public static final class ExecutableCode.Builder extends GeneratedMessage.Builder<ExecutableCode.Builder> implements ExecutableCodeOrBuilder

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].

Protobuf type google.cloud.aiplatform.v1.ExecutableCode

Static Methods

getDescriptor()

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

Methods

build()

public ExecutableCode build()
Returns
Type Description
ExecutableCode

buildPartial()

public ExecutableCode buildPartial()
Returns
Type Description
ExecutableCode

clear()

public ExecutableCode.Builder clear()
Returns
Type Description
ExecutableCode.Builder
Overrides

clearCode()

public ExecutableCode.Builder clearCode()

Required. The code to be executed.

string code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExecutableCode.Builder

This builder for chaining.

clearLanguage()

public ExecutableCode.Builder clearLanguage()

Required. Programming language of the code.

.google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExecutableCode.Builder

This builder for chaining.

getCode()

public String getCode()

Required. The code to be executed.

string code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

Required. The code to be executed.

string code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public ExecutableCode getDefaultInstanceForType()
Returns
Type Description
ExecutableCode

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLanguage()

public ExecutableCode.Language getLanguage()

Required. Programming language of the code.

.google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExecutableCode.Language

The language.

getLanguageValue()

public int getLanguageValue()

Required. Programming language of the code.

.google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for language.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExecutableCode other)

public ExecutableCode.Builder mergeFrom(ExecutableCode other)
Parameter
Name Description
other ExecutableCode
Returns
Type Description
ExecutableCode.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExecutableCode.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecutableCode.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExecutableCode.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExecutableCode.Builder
Overrides

setCode(String value)

public ExecutableCode.Builder setCode(String value)

Required. The code to be executed.

string code = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The code to set.

Returns
Type Description
ExecutableCode.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public ExecutableCode.Builder setCodeBytes(ByteString value)

Required. The code to be executed.

string code = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
ExecutableCode.Builder

This builder for chaining.

setLanguage(ExecutableCode.Language value)

public ExecutableCode.Builder setLanguage(ExecutableCode.Language value)

Required. Programming language of the code.

.google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ExecutableCode.Language

The language to set.

Returns
Type Description
ExecutableCode.Builder

This builder for chaining.

setLanguageValue(int value)

public ExecutableCode.Builder setLanguageValue(int value)

Required. Programming language of the code.

.google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for language to set.

Returns
Type Description
ExecutableCode.Builder

This builder for chaining.