Class GeneratorSuggestion.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GeneratorSuggestion.Builder>
com.google.cloud.dialogflow.v2.GeneratorSuggestion.Builder
All Implemented Interfaces:
GeneratorSuggestionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GeneratorSuggestion

public static final class GeneratorSuggestion.Builder extends com.google.protobuf.GeneratedMessage.Builder<GeneratorSuggestion.Builder> implements GeneratorSuggestionOrBuilder
 Suggestion generated using a Generator.
 
Protobuf type google.cloud.dialogflow.v2.GeneratorSuggestion
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GeneratorSuggestion.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GeneratorSuggestion.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GeneratorSuggestion.Builder>
    • getDefaultInstanceForType

      public GeneratorSuggestion getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GeneratorSuggestion build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GeneratorSuggestion buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GeneratorSuggestion.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeneratorSuggestion.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GeneratorSuggestion.Builder>
    • mergeFrom

      public GeneratorSuggestion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeneratorSuggestion.Builder>
      Throws:
      IOException
    • getSuggestionCase

      public GeneratorSuggestion.SuggestionCase getSuggestionCase()
      Specified by:
      getSuggestionCase in interface GeneratorSuggestionOrBuilder
    • clearSuggestion

      public GeneratorSuggestion.Builder clearSuggestion()
    • hasFreeFormSuggestion

      public boolean hasFreeFormSuggestion()
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFreeFormSuggestion in interface GeneratorSuggestionOrBuilder
      Returns:
      Whether the freeFormSuggestion field is set.
    • getFreeFormSuggestion

      public FreeFormSuggestion getFreeFormSuggestion()
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFreeFormSuggestion in interface GeneratorSuggestionOrBuilder
      Returns:
      The freeFormSuggestion.
    • setFreeFormSuggestion

      public GeneratorSuggestion.Builder setFreeFormSuggestion(FreeFormSuggestion value)
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setFreeFormSuggestion

      public GeneratorSuggestion.Builder setFreeFormSuggestion(FreeFormSuggestion.Builder builderForValue)
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFreeFormSuggestion

      public GeneratorSuggestion.Builder mergeFreeFormSuggestion(FreeFormSuggestion value)
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearFreeFormSuggestion

      public GeneratorSuggestion.Builder clearFreeFormSuggestion()
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getFreeFormSuggestionBuilder

      public FreeFormSuggestion.Builder getFreeFormSuggestionBuilder()
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getFreeFormSuggestionOrBuilder

      public FreeFormSuggestionOrBuilder getFreeFormSuggestionOrBuilder()
       Optional. Free form suggestion.
       
      .google.cloud.dialogflow.v2.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFreeFormSuggestionOrBuilder in interface GeneratorSuggestionOrBuilder
    • hasSummarySuggestion

      public boolean hasSummarySuggestion()
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSummarySuggestion in interface GeneratorSuggestionOrBuilder
      Returns:
      Whether the summarySuggestion field is set.
    • getSummarySuggestion

      public SummarySuggestion getSummarySuggestion()
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSummarySuggestion in interface GeneratorSuggestionOrBuilder
      Returns:
      The summarySuggestion.
    • setSummarySuggestion

      public GeneratorSuggestion.Builder setSummarySuggestion(SummarySuggestion value)
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setSummarySuggestion

      public GeneratorSuggestion.Builder setSummarySuggestion(SummarySuggestion.Builder builderForValue)
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSummarySuggestion

      public GeneratorSuggestion.Builder mergeSummarySuggestion(SummarySuggestion value)
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearSummarySuggestion

      public GeneratorSuggestion.Builder clearSummarySuggestion()
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSummarySuggestionBuilder

      public SummarySuggestion.Builder getSummarySuggestionBuilder()
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSummarySuggestionOrBuilder

      public SummarySuggestionOrBuilder getSummarySuggestionOrBuilder()
       Optional. Suggested summary.
       
      .google.cloud.dialogflow.v2.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSummarySuggestionOrBuilder in interface GeneratorSuggestionOrBuilder
    • hasAgentCoachingSuggestion

      public boolean hasAgentCoachingSuggestion()
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAgentCoachingSuggestion in interface GeneratorSuggestionOrBuilder
      Returns:
      Whether the agentCoachingSuggestion field is set.
    • getAgentCoachingSuggestion

      public AgentCoachingSuggestion getAgentCoachingSuggestion()
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentCoachingSuggestion in interface GeneratorSuggestionOrBuilder
      Returns:
      The agentCoachingSuggestion.
    • setAgentCoachingSuggestion

      public GeneratorSuggestion.Builder setAgentCoachingSuggestion(AgentCoachingSuggestion value)
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setAgentCoachingSuggestion

      public GeneratorSuggestion.Builder setAgentCoachingSuggestion(AgentCoachingSuggestion.Builder builderForValue)
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAgentCoachingSuggestion

      public GeneratorSuggestion.Builder mergeAgentCoachingSuggestion(AgentCoachingSuggestion value)
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearAgentCoachingSuggestion

      public GeneratorSuggestion.Builder clearAgentCoachingSuggestion()
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getAgentCoachingSuggestionBuilder

      public AgentCoachingSuggestion.Builder getAgentCoachingSuggestionBuilder()
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getAgentCoachingSuggestionOrBuilder

      public AgentCoachingSuggestionOrBuilder getAgentCoachingSuggestionOrBuilder()
       Optional. Suggestion to coach the agent.
       
      .google.cloud.dialogflow.v2.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentCoachingSuggestionOrBuilder in interface GeneratorSuggestionOrBuilder
    • getToolCallInfoList

      public List<GeneratorSuggestion.ToolCallInfo> getToolCallInfoList()
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolCallInfoList in interface GeneratorSuggestionOrBuilder
    • getToolCallInfoCount

      public int getToolCallInfoCount()
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolCallInfoCount in interface GeneratorSuggestionOrBuilder
    • getToolCallInfo

      public GeneratorSuggestion.ToolCallInfo getToolCallInfo(int index)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolCallInfo in interface GeneratorSuggestionOrBuilder
    • setToolCallInfo

      public GeneratorSuggestion.Builder setToolCallInfo(int index, GeneratorSuggestion.ToolCallInfo value)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • setToolCallInfo

      public GeneratorSuggestion.Builder setToolCallInfo(int index, GeneratorSuggestion.ToolCallInfo.Builder builderForValue)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • addToolCallInfo

       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • addToolCallInfo

      public GeneratorSuggestion.Builder addToolCallInfo(int index, GeneratorSuggestion.ToolCallInfo value)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • addToolCallInfo

       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • addToolCallInfo

      public GeneratorSuggestion.Builder addToolCallInfo(int index, GeneratorSuggestion.ToolCallInfo.Builder builderForValue)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • addAllToolCallInfo

      public GeneratorSuggestion.Builder addAllToolCallInfo(Iterable<? extends GeneratorSuggestion.ToolCallInfo> values)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • clearToolCallInfo

      public GeneratorSuggestion.Builder clearToolCallInfo()
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • removeToolCallInfo

      public GeneratorSuggestion.Builder removeToolCallInfo(int index)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getToolCallInfoBuilder

      public GeneratorSuggestion.ToolCallInfo.Builder getToolCallInfoBuilder(int index)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getToolCallInfoOrBuilder

      public GeneratorSuggestion.ToolCallInfoOrBuilder getToolCallInfoOrBuilder(int index)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolCallInfoOrBuilder in interface GeneratorSuggestionOrBuilder
    • getToolCallInfoOrBuilderList

      public List<? extends GeneratorSuggestion.ToolCallInfoOrBuilder> getToolCallInfoOrBuilderList()
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolCallInfoOrBuilderList in interface GeneratorSuggestionOrBuilder
    • addToolCallInfoBuilder

      public GeneratorSuggestion.ToolCallInfo.Builder addToolCallInfoBuilder()
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • addToolCallInfoBuilder

      public GeneratorSuggestion.ToolCallInfo.Builder addToolCallInfoBuilder(int index)
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getToolCallInfoBuilderList

      public List<GeneratorSuggestion.ToolCallInfo.Builder> getToolCallInfoBuilderList()
       Optional. List of request and response for tool calls executed.
       
      repeated .google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL];