Package com.google.cloud.dialogflow.v2
Class FewShotExample.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
com.google.cloud.dialogflow.v2.FewShotExample.Builder
- All Implemented Interfaces:
FewShotExampleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FewShotExample
public static final class FewShotExample.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
implements FewShotExampleOrBuilder
Providing 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.v2.FewShotExample-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Summarization sections.booleancontainsExtraInfo(String key) Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intOptional.Optional.getExtraInfoOrDefault(String key, String defaultValue) Optional.Optional.Deprecated.Required.Required.Required.Summarization sections.Summarization sections.Summarization sections.booleanOptional.booleanRequired.booleanSummarization sections.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanOptional.mergeFrom(FewShotExample other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOutput(GeneratorSuggestion value) Required.Summarization sections.putAllExtraInfo(Map<String, String> values) Optional.putExtraInfo(String key, String value) Optional.removeExtraInfo(String key) Optional.Optional.setConversationContext(ConversationContext.Builder builderForValue) Optional.setOutput(GeneratorSuggestion value) Required.setOutput(GeneratorSuggestion.Builder builderForValue) Required.Summarization sections.setSummarizationSectionList(SummarizationSectionList.Builder builderForValue) Summarization sections.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FewShotExample.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FewShotExample.Builder>
-
mergeFrom
public FewShotExample.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FewShotExample.Builder>- Throws:
IOException
-
getInstructionListCase
- Specified by:
getInstructionListCasein interfaceFewShotExampleOrBuilder
-
clearInstructionList
-
hasConversationContext
public boolean hasConversationContext()Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasConversationContextin interfaceFewShotExampleOrBuilder- Returns:
- Whether the conversationContext field is set.
-
getConversationContext
Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getConversationContextin interfaceFewShotExampleOrBuilder- Returns:
- The conversationContext.
-
setConversationContext
Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setConversationContext
Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeConversationContext
Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearConversationContext
Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getConversationContextBuilder
Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getConversationContextOrBuilder
Optional. Conversation transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getConversationContextOrBuilderin interfaceFewShotExampleOrBuilder
-
getExtraInfoCount
public int getExtraInfoCount()Description copied from interface:FewShotExampleOrBuilderOptional. 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];- Specified by:
getExtraInfoCountin interfaceFewShotExampleOrBuilder
-
containsExtraInfo
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];- Specified by:
containsExtraInfoin interfaceFewShotExampleOrBuilder
-
getExtraInfo
Deprecated.UsegetExtraInfoMap()instead.- Specified by:
getExtraInfoin interfaceFewShotExampleOrBuilder
-
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];- Specified by:
getExtraInfoMapin interfaceFewShotExampleOrBuilder
-
getExtraInfoOrDefault
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];- Specified by:
getExtraInfoOrDefaultin interfaceFewShotExampleOrBuilder
-
getExtraInfoOrThrow
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];- Specified by:
getExtraInfoOrThrowin interfaceFewShotExampleOrBuilder
-
clearExtraInfo
-
removeExtraInfo
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]; -
getMutableExtraInfo
Deprecated.Use alternate mutation accessors instead. -
putExtraInfo
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]; -
putAllExtraInfo
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]; -
hasSummarizationSectionList
public boolean hasSummarizationSectionList()Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;- Specified by:
hasSummarizationSectionListin interfaceFewShotExampleOrBuilder- Returns:
- Whether the summarizationSectionList field is set.
-
getSummarizationSectionList
Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;- Specified by:
getSummarizationSectionListin interfaceFewShotExampleOrBuilder- Returns:
- The summarizationSectionList.
-
setSummarizationSectionList
Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6; -
setSummarizationSectionList
public FewShotExample.Builder setSummarizationSectionList(SummarizationSectionList.Builder builderForValue) Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6; -
mergeSummarizationSectionList
Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6; -
clearSummarizationSectionList
Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6; -
getSummarizationSectionListBuilder
Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6; -
getSummarizationSectionListOrBuilder
Summarization sections.
.google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;- Specified by:
getSummarizationSectionListOrBuilderin interfaceFewShotExampleOrBuilder
-
hasOutput
public boolean hasOutput()Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasOutputin interfaceFewShotExampleOrBuilder- Returns:
- Whether the output field is set.
-
getOutput
Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputin interfaceFewShotExampleOrBuilder- Returns:
- The output.
-
setOutput
Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED]; -
setOutput
Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED]; -
mergeOutput
Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED]; -
clearOutput
Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED]; -
getOutputBuilder
Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED]; -
getOutputOrBuilder
Required. Example output of the model.
.google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputOrBuilderin interfaceFewShotExampleOrBuilder
-