Class FewShotExample

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.FewShotExample
All Implemented Interfaces:
FewShotExampleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class FewShotExample extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • CONVERSATION_CONTEXT_FIELD_NUMBER

      public static final int CONVERSATION_CONTEXT_FIELD_NUMBER
      See Also:
    • EXTRA_INFO_FIELD_NUMBER

      public static final int EXTRA_INFO_FIELD_NUMBER
      See Also:
    • SUMMARIZATION_SECTION_LIST_FIELD_NUMBER

      public static final int SUMMARIZATION_SECTION_LIST_FIELD_NUMBER
      See Also:
    • OUTPUT_FIELD_NUMBER

      public static final int OUTPUT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getInstructionListCase

      public FewShotExample.InstructionListCase getInstructionListCase()
      Specified by:
      getInstructionListCase in interface FewShotExampleOrBuilder
    • hasConversationContext

      public boolean hasConversationContext()
       Optional. Conversation transcripts.
       
      .google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasConversationContext in interface FewShotExampleOrBuilder
      Returns:
      Whether the conversationContext field is set.
    • getConversationContext

      public ConversationContext getConversationContext()
       Optional. Conversation transcripts.
       
      .google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationContext in interface FewShotExampleOrBuilder
      Returns:
      The conversationContext.
    • getConversationContextOrBuilder

      public ConversationContextOrBuilder getConversationContextOrBuilder()
       Optional. Conversation transcripts.
       
      .google.cloud.dialogflow.v2.ConversationContext conversation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationContextOrBuilder in interface FewShotExampleOrBuilder
    • getExtraInfoCount

      public int getExtraInfoCount()
      Description copied from interface: FewShotExampleOrBuilder
       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:
      getExtraInfoCount in interface FewShotExampleOrBuilder
    • containsExtraInfo

      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];
      Specified by:
      containsExtraInfo in interface FewShotExampleOrBuilder
    • getExtraInfo

      @Deprecated public Map<String,String> getExtraInfo()
      Deprecated.
      Use getExtraInfoMap() instead.
      Specified by:
      getExtraInfo in interface FewShotExampleOrBuilder
    • 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];
      Specified by:
      getExtraInfoMap in interface FewShotExampleOrBuilder
    • getExtraInfoOrDefault

      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];
      Specified by:
      getExtraInfoOrDefault in interface FewShotExampleOrBuilder
    • getExtraInfoOrThrow

      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];
      Specified by:
      getExtraInfoOrThrow in interface FewShotExampleOrBuilder
    • hasSummarizationSectionList

      public boolean hasSummarizationSectionList()
       Summarization sections.
       
      .google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;
      Specified by:
      hasSummarizationSectionList in interface FewShotExampleOrBuilder
      Returns:
      Whether the summarizationSectionList field is set.
    • getSummarizationSectionList

      public SummarizationSectionList getSummarizationSectionList()
       Summarization sections.
       
      .google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;
      Specified by:
      getSummarizationSectionList in interface FewShotExampleOrBuilder
      Returns:
      The summarizationSectionList.
    • getSummarizationSectionListOrBuilder

      public SummarizationSectionListOrBuilder getSummarizationSectionListOrBuilder()
       Summarization sections.
       
      .google.cloud.dialogflow.v2.SummarizationSectionList summarization_section_list = 6;
      Specified by:
      getSummarizationSectionListOrBuilder in interface FewShotExampleOrBuilder
    • hasOutput

      public boolean hasOutput()
       Required. Example output of the model.
       
      .google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOutput in interface FewShotExampleOrBuilder
      Returns:
      Whether the output field is set.
    • getOutput

      public GeneratorSuggestion getOutput()
       Required. Example output of the model.
       
      .google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutput in interface FewShotExampleOrBuilder
      Returns:
      The output.
    • getOutputOrBuilder

      public GeneratorSuggestionOrBuilder getOutputOrBuilder()
       Required. Example output of the model.
       
      .google.cloud.dialogflow.v2.GeneratorSuggestion output = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputOrBuilder in interface FewShotExampleOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static FewShotExample parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FewShotExample parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FewShotExample parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FewShotExample parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FewShotExample parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FewShotExample parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FewShotExample parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FewShotExample parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FewShotExample parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FewShotExample parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FewShotExample parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FewShotExample parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public FewShotExample.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static FewShotExample.Builder newBuilder()
    • newBuilder

      public static FewShotExample.Builder newBuilder(FewShotExample prototype)
    • toBuilder

      public FewShotExample.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FewShotExample.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static FewShotExample getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FewShotExample> parser()
    • getParserForType

      public com.google.protobuf.Parser<FewShotExample> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public FewShotExample getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder