Class FreeFormContext.Builder (4.89.0)

public static final class FreeFormContext.Builder extends GeneratedMessage.Builder<FreeFormContext.Builder> implements FreeFormContextOrBuilder

Free form generator context that customer can configure.

Protobuf type google.cloud.dialogflow.v2beta1.FreeFormContext

Static Methods

getDescriptor()

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

Methods

build()

public FreeFormContext build()
Returns
Type Description
FreeFormContext

buildPartial()

public FreeFormContext buildPartial()
Returns
Type Description
FreeFormContext

clear()

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

clearText()

public FreeFormContext.Builder clearText()

Optional. Free form text input to LLM.

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

Returns
Type Description
FreeFormContext.Builder

This builder for chaining.

getDefaultInstanceForType()

public FreeFormContext getDefaultInstanceForType()
Returns
Type Description
FreeFormContext

getDescriptorForType()

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

getText()

public String getText()

Optional. Free form text input to LLM.

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

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Optional. Free form text input to LLM.

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

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FreeFormContext other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setText(String value)

public FreeFormContext.Builder setText(String value)

Optional. Free form text input to LLM.

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

Parameter
Name Description
value String

The text to set.

Returns
Type Description
FreeFormContext.Builder

This builder for chaining.

setTextBytes(ByteString value)

public FreeFormContext.Builder setTextBytes(ByteString value)

Optional. Free form text input to LLM.

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

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
FreeFormContext.Builder

This builder for chaining.