Class CodeBlock.Builder (0.94.0)

public static final class CodeBlock.Builder extends GeneratedMessage.Builder<CodeBlock.Builder> implements CodeBlockOrBuilder

Represents a code block.

Protobuf type google.cloud.dialogflow.cx.v3.CodeBlock

Implements

CodeBlockOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public CodeBlock build()
Returns
Type Description
CodeBlock

buildPartial()

public CodeBlock buildPartial()
Returns
Type Description
CodeBlock

clear()

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

clearCode()

public CodeBlock.Builder clearCode()

Optional. Source code of the block in Python.

string code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CodeBlock.Builder

This builder for chaining.

getCode()

public String getCode()

Optional. Source code of the block in Python.

string code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

Optional. Source code of the block in Python.

string code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public CodeBlock getDefaultInstanceForType()
Returns
Type Description
CodeBlock

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(CodeBlock other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(String value)

public CodeBlock.Builder setCode(String value)

Optional. Source code of the block in Python.

string code = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The code to set.

Returns
Type Description
CodeBlock.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public CodeBlock.Builder setCodeBytes(ByteString value)

Optional. Source code of the block in Python.

string code = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
CodeBlock.Builder

This builder for chaining.