- 4.89.0 (latest)
- 4.88.0
- 4.87.0
- 4.86.0
- 4.84.0
- 4.82.0
- 4.81.0
- 4.80.0
- 4.79.0
- 4.78.0
- 4.76.0
- 4.74.0
- 4.73.0
- 4.70.0
- 4.69.0
- 4.68.0
- 4.66.0
- 4.65.0
- 4.64.0
- 4.63.0
- 4.62.0
- 4.61.0
- 4.60.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class FewShotExample.Builder extends GeneratedMessage.Builder<FewShotExample.Builder> implements FewShotExampleOrBuilderProviding examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response.
Protobuf type google.cloud.dialogflow.v2beta1.FewShotExample
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FewShotExample.BuilderImplements
FewShotExampleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FewShotExample build()| Returns | |
|---|---|
| Type | Description |
FewShotExample |
|
buildPartial()
public FewShotExample buildPartial()| Returns | |
|---|---|
| Type | Description |
FewShotExample |
|
clear()
public FewShotExample.Builder clear()| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
clearConversationContext()
public FewShotExample.Builder clearConversationContext()Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
clearExtraInfo()
public FewShotExample.Builder clearExtraInfo()| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
clearInstructionList()
public FewShotExample.Builder clearInstructionList()| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
clearOutput()
public FewShotExample.Builder clearOutput()Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
clearSummarizationSectionList()
public FewShotExample.Builder clearSummarizationSectionList()Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
containsExtraInfo(String key)
public 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 ConversationContext getConversationContext()Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationContext |
The conversationContext. |
getConversationContextBuilder()
public ConversationContext.Builder getConversationContextBuilder()Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationContext.Builder |
|
getConversationContextOrBuilder()
public ConversationContextOrBuilder getConversationContextOrBuilder()Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationContextOrBuilder |
|
getDefaultInstanceForType()
public FewShotExample getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FewShotExample |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExtraInfo() (deprecated)
public Map<String,String> getExtraInfo()Use #getExtraInfoMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getExtraInfoCount()
public 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 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 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 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 FewShotExample.InstructionListCase getInstructionListCase()| Returns | |
|---|---|
| Type | Description |
FewShotExample.InstructionListCase |
|
getMutableExtraInfo() (deprecated)
public Map<String,String> getMutableExtraInfo()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getOutput()
public GeneratorSuggestion getOutput()Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GeneratorSuggestion |
The output. |
getOutputBuilder()
public GeneratorSuggestion.Builder getOutputBuilder()Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GeneratorSuggestion.Builder |
|
getOutputOrBuilder()
public GeneratorSuggestionOrBuilder getOutputOrBuilder()Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GeneratorSuggestionOrBuilder |
|
getSummarizationSectionList()
public SummarizationSectionList getSummarizationSectionList()Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Returns | |
|---|---|
| Type | Description |
SummarizationSectionList |
The summarizationSectionList. |
getSummarizationSectionListBuilder()
public SummarizationSectionList.Builder getSummarizationSectionListBuilder()Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Returns | |
|---|---|
| Type | Description |
SummarizationSectionList.Builder |
|
getSummarizationSectionListOrBuilder()
public SummarizationSectionListOrBuilder getSummarizationSectionListOrBuilder()Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Returns | |
|---|---|
| Type | Description |
SummarizationSectionListOrBuilder |
|
hasConversationContext()
public boolean hasConversationContext()Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the conversationContext field is set. |
hasOutput()
public boolean hasOutput()Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the output field is set. |
hasSummarizationSectionList()
public boolean hasSummarizationSectionList()Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the summarizationSectionList field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeConversationContext(ConversationContext value)
public FewShotExample.Builder mergeConversationContext(ConversationContext value)Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ConversationContext |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
mergeFrom(FewShotExample other)
public FewShotExample.Builder mergeFrom(FewShotExample other)| Parameter | |
|---|---|
| Name | Description |
other |
FewShotExample |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FewShotExample.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FewShotExample.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
mergeOutput(GeneratorSuggestion value)
public FewShotExample.Builder mergeOutput(GeneratorSuggestion value)Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
GeneratorSuggestion |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
mergeSummarizationSectionList(SummarizationSectionList value)
public FewShotExample.Builder mergeSummarizationSectionList(SummarizationSectionList value)Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
SummarizationSectionList |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
putAllExtraInfo(Map<String,String> values)
public FewShotExample.Builder putAllExtraInfo(Map<String,String> values)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 |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
putExtraInfo(String key, String value)
public FewShotExample.Builder putExtraInfo(String key, String value)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 |
value |
String |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
removeExtraInfo(String key)
public FewShotExample.Builder removeExtraInfo(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 |
FewShotExample.Builder |
|
setConversationContext(ConversationContext value)
public FewShotExample.Builder setConversationContext(ConversationContext value)Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ConversationContext |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
setConversationContext(ConversationContext.Builder builderForValue)
public FewShotExample.Builder setConversationContext(ConversationContext.Builder builderForValue)Optional. Conversation transcripts.
.google.cloud.dialogflow.v2beta1.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ConversationContext.Builder |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
setOutput(GeneratorSuggestion value)
public FewShotExample.Builder setOutput(GeneratorSuggestion value)Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
GeneratorSuggestion |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
setOutput(GeneratorSuggestion.Builder builderForValue)
public FewShotExample.Builder setOutput(GeneratorSuggestion.Builder builderForValue)Required. Example output of the model.
.google.cloud.dialogflow.v2beta1.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GeneratorSuggestion.Builder |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
setSummarizationSectionList(SummarizationSectionList value)
public FewShotExample.Builder setSummarizationSectionList(SummarizationSectionList value)Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
SummarizationSectionList |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|
setSummarizationSectionList(SummarizationSectionList.Builder builderForValue)
public FewShotExample.Builder setSummarizationSectionList(SummarizationSectionList.Builder builderForValue)Summarization sections.
.google.cloud.dialogflow.v2beta1.SummarizationSectionList summarization_section_list = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SummarizationSectionList.Builder |
| Returns | |
|---|---|
| Type | Description |
FewShotExample.Builder |
|