Class ExecutableCode.Builder (3.55.0)

public static final class ExecutableCode.Builder extends GeneratedMessageV3.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.v1beta1.ExecutableCode

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExecutableCode.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExecutableCode.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public ExecutableCode.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExecutableCode.Builder
Overrides

clearLanguage()

public ExecutableCode.Builder clearLanguage()

Required. Programming language of the code.

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

Returns
Type Description
ExecutableCode.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExecutableCode.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExecutableCode.Builder
Overrides

clone()

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

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.v1beta1.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.v1beta1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for language.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExecutableCode.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public ExecutableCode.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExecutableCode.Builder
Overrides

setLanguage(ExecutableCode.Language value)

public ExecutableCode.Builder setLanguage(ExecutableCode.Language value)

Required. Programming language of the code.

.google.cloud.aiplatform.v1beta1.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.v1beta1.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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExecutableCode.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExecutableCode.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExecutableCode.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExecutableCode.Builder
Overrides