Class AssistantContent.ExecutableCode.Builder (0.79.0)

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

Code generated by the model that is meant to be executed by the model.

Protobuf type google.cloud.discoveryengine.v1.AssistantContent.ExecutableCode

Static Methods

getDescriptor()

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

Methods

build()

public AssistantContent.ExecutableCode build()
Returns
Type Description
AssistantContent.ExecutableCode

buildPartial()

public AssistantContent.ExecutableCode buildPartial()
Returns
Type Description
AssistantContent.ExecutableCode

clear()

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

clearCode()

public AssistantContent.ExecutableCode.Builder clearCode()

Required. The code content. Currently only supports Python.

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

Returns
Type Description
AssistantContent.ExecutableCode.Builder

This builder for chaining.

getCode()

public String getCode()

Required. The code content. Currently only supports Python.

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

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

Required. The code content. Currently only supports Python.

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

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public AssistantContent.ExecutableCode getDefaultInstanceForType()
Returns
Type Description
AssistantContent.ExecutableCode

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssistantContent.ExecutableCode other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(String value)

public AssistantContent.ExecutableCode.Builder setCode(String value)

Required. The code content. Currently only supports Python.

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

Parameter
Name Description
value String

The code to set.

Returns
Type Description
AssistantContent.ExecutableCode.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public AssistantContent.ExecutableCode.Builder setCodeBytes(ByteString value)

Required. The code content. Currently only supports Python.

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

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
AssistantContent.ExecutableCode.Builder

This builder for chaining.