Class WidgetTool.TextResponseConfig.Builder (0.9.0)

public static final class WidgetTool.TextResponseConfig.Builder extends GeneratedMessage.Builder<WidgetTool.TextResponseConfig.Builder> implements WidgetTool.TextResponseConfigOrBuilder

Configuration for the text response returned with the widget.

Protobuf type google.cloud.ces.v1beta.WidgetTool.TextResponseConfig

Static Methods

getDescriptor()

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

Methods

build()

public WidgetTool.TextResponseConfig build()
Returns
Type Description
WidgetTool.TextResponseConfig

buildPartial()

public WidgetTool.TextResponseConfig buildPartial()
Returns
Type Description
WidgetTool.TextResponseConfig

clear()

public WidgetTool.TextResponseConfig.Builder clear()
Returns
Type Description
WidgetTool.TextResponseConfig.Builder
Overrides

clearStaticText()

public WidgetTool.TextResponseConfig.Builder clearStaticText()

Optional. The static text response to return when type is STATIC.

string static_text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

clearTextResponseInstruction()

public WidgetTool.TextResponseConfig.Builder clearTextResponseInstruction()

Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED.

string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

clearType()

public WidgetTool.TextResponseConfig.Builder clearType()

Optional. The strategy for providing the text response.

.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public WidgetTool.TextResponseConfig getDefaultInstanceForType()
Returns
Type Description
WidgetTool.TextResponseConfig

getDescriptorForType()

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

getStaticText()

public String getStaticText()

Optional. The static text response to return when type is STATIC.

string static_text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The staticText.

getStaticTextBytes()

public ByteString getStaticTextBytes()

Optional. The static text response to return when type is STATIC.

string static_text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for staticText.

getTextResponseInstruction()

public String getTextResponseInstruction()

Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED.

string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The textResponseInstruction.

getTextResponseInstructionBytes()

public ByteString getTextResponseInstructionBytes()

Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED.

string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for textResponseInstruction.

getType()

public WidgetTool.TextResponseConfig.Type getType()

Optional. The strategy for providing the text response.

.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetTool.TextResponseConfig.Type

The type.

getTypeValue()

public int getTypeValue()

Optional. The strategy for providing the text response.

.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetTool.TextResponseConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setStaticText(String value)

public WidgetTool.TextResponseConfig.Builder setStaticText(String value)

Optional. The static text response to return when type is STATIC.

string static_text = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The staticText to set.

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

setStaticTextBytes(ByteString value)

public WidgetTool.TextResponseConfig.Builder setStaticTextBytes(ByteString value)

Optional. The static text response to return when type is STATIC.

string static_text = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for staticText to set.

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

setTextResponseInstruction(String value)

public WidgetTool.TextResponseConfig.Builder setTextResponseInstruction(String value)

Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED.

string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The textResponseInstruction to set.

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

setTextResponseInstructionBytes(ByteString value)

public WidgetTool.TextResponseConfig.Builder setTextResponseInstructionBytes(ByteString value)

Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED.

string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for textResponseInstruction to set.

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

setType(WidgetTool.TextResponseConfig.Type value)

public WidgetTool.TextResponseConfig.Builder setType(WidgetTool.TextResponseConfig.Type value)

Optional. The strategy for providing the text response.

.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WidgetTool.TextResponseConfig.Type

The type to set.

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.

setTypeValue(int value)

public WidgetTool.TextResponseConfig.Builder setTypeValue(int value)

Optional. The strategy for providing the text response.

.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
WidgetTool.TextResponseConfig.Builder

This builder for chaining.