Interface FewShotExampleOrBuilder (4.60.0)

public interface FewShotExampleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsExtraInfo(String key)

public abstract boolean containsExtraInfo(String key)

Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">

map<string, string> extra_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getConversationContext()

public abstract ConversationContext getConversationContext()

Optional. Conversation transcripts.

.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConversationContext

The conversationContext.

getConversationContextOrBuilder()

public abstract ConversationContextOrBuilder getConversationContextOrBuilder()

Optional. Conversation transcripts.

.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConversationContextOrBuilder

getExtraInfo() (deprecated)

public abstract Map<String,String> getExtraInfo()

Use #getExtraInfoMap() instead.

Returns
Type Description
Map<String,String>

getExtraInfoCount()

public abstract int getExtraInfoCount()

Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">

map<string, string> extra_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getExtraInfoMap()

public abstract Map<String,String> getExtraInfoMap()

Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">

map<string, string> extra_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getExtraInfoOrDefault(String key, String defaultValue)

public abstract String getExtraInfoOrDefault(String key, String defaultValue)

Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">

map<string, string> extra_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getExtraInfoOrThrow(String key)

public abstract String getExtraInfoOrThrow(String key)

Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">

map<string, string> extra_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getInstructionListCase()

public abstract FewShotExample.InstructionListCase getInstructionListCase()
Returns
Type Description
FewShotExample.InstructionListCase

getOutput()

public abstract GeneratorSuggestion getOutput()

Required. Example output of the model.

.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GeneratorSuggestion

The output.

getOutputOrBuilder()

public abstract GeneratorSuggestionOrBuilder getOutputOrBuilder()

Required. Example output of the model.

.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GeneratorSuggestionOrBuilder

getSummarizationSectionList()

public abstract SummarizationSectionList getSummarizationSectionList()

Summarization sections.

.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;

Returns
Type Description
SummarizationSectionList

The summarizationSectionList.

getSummarizationSectionListOrBuilder()

public abstract SummarizationSectionListOrBuilder getSummarizationSectionListOrBuilder()

Summarization sections.

.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;

Returns
Type Description
SummarizationSectionListOrBuilder

hasConversationContext()

public abstract boolean hasConversationContext()

Optional. Conversation transcripts.

.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the conversationContext field is set.

hasOutput()

public abstract boolean hasOutput()

Required. Example output of the model.

.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the output field is set.

hasSummarizationSectionList()

public abstract boolean hasSummarizationSectionList()

Summarization sections.

.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;

Returns
Type Description
boolean

Whether the summarizationSectionList field is set.