Class WidgetTool.TextResponseConfig (0.9.0)

public static final class WidgetTool.TextResponseConfig extends GeneratedMessage implements WidgetTool.TextResponseConfigOrBuilder

Configuration for the text response returned with the widget.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > WidgetTool.TextResponseConfig

Static Fields

STATIC_TEXT_FIELD_NUMBER

public static final int STATIC_TEXT_FIELD_NUMBER
Field Value
Type Description
int

TEXT_RESPONSE_INSTRUCTION_FIELD_NUMBER

public static final int TEXT_RESPONSE_INSTRUCTION_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetTool.TextResponseConfig getDefaultInstance()
Returns
Type Description
WidgetTool.TextResponseConfig

getDescriptor()

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

newBuilder()

public static WidgetTool.TextResponseConfig.Builder newBuilder()
Returns
Type Description
WidgetTool.TextResponseConfig.Builder

newBuilder(WidgetTool.TextResponseConfig prototype)

public static WidgetTool.TextResponseConfig.Builder newBuilder(WidgetTool.TextResponseConfig prototype)
Parameter
Name Description
prototype WidgetTool.TextResponseConfig
Returns
Type Description
WidgetTool.TextResponseConfig.Builder

parseDelimitedFrom(InputStream input)

public static WidgetTool.TextResponseConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetTool.TextResponseConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetTool.TextResponseConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetTool.TextResponseConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetTool.TextResponseConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetTool.TextResponseConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetTool.TextResponseConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetTool.TextResponseConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetTool.TextResponseConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetTool.TextResponseConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetTool.TextResponseConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetTool.TextResponseConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool.TextResponseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetTool.TextResponseConfig> parser()
Returns
Type Description
Parser<TextResponseConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<WidgetTool.TextResponseConfig> getParserForType()
Returns
Type Description
Parser<TextResponseConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WidgetTool.TextResponseConfig.Builder newBuilderForType()
Returns
Type Description
WidgetTool.TextResponseConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected WidgetTool.TextResponseConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetTool.TextResponseConfig.Builder
Overrides

toBuilder()

public WidgetTool.TextResponseConfig.Builder toBuilder()
Returns
Type Description
WidgetTool.TextResponseConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException