Class HumanAgentAssistantEvent.Builder

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

public static final class HumanAgentAssistantEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<HumanAgentAssistantEvent.Builder> implements HumanAgentAssistantEventOrBuilder
 Represents a notification sent to Cloud Pub/Sub subscribers for
 human agent assistant events in a specific conversation.
 
Protobuf type google.cloud.dialogflow.v2.HumanAgentAssistantEvent
  • 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<HumanAgentAssistantEvent.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<HumanAgentAssistantEvent.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<HumanAgentAssistantEvent.Builder>
    • getDefaultInstanceForType

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

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

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

      public HumanAgentAssistantEvent.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<HumanAgentAssistantEvent.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<HumanAgentAssistantEvent.Builder>
    • mergeFrom

      public HumanAgentAssistantEvent.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<HumanAgentAssistantEvent.Builder>
      Throws:
      IOException
    • getConversation

      public String getConversation()
       The conversation this notification refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Specified by:
      getConversation in interface HumanAgentAssistantEventOrBuilder
      Returns:
      The conversation.
    • getConversationBytes

      public com.google.protobuf.ByteString getConversationBytes()
       The conversation this notification refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Specified by:
      getConversationBytes in interface HumanAgentAssistantEventOrBuilder
      Returns:
      The bytes for conversation.
    • setConversation

      public HumanAgentAssistantEvent.Builder setConversation(String value)
       The conversation this notification refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Parameters:
      value - The conversation to set.
      Returns:
      This builder for chaining.
    • clearConversation

      public HumanAgentAssistantEvent.Builder clearConversation()
       The conversation this notification refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Returns:
      This builder for chaining.
    • setConversationBytes

      public HumanAgentAssistantEvent.Builder setConversationBytes(com.google.protobuf.ByteString value)
       The conversation this notification refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Parameters:
      value - The bytes for conversation to set.
      Returns:
      This builder for chaining.
    • getParticipant

      public String getParticipant()
       The participant that the suggestion is compiled for.
       Format: `projects/<Project ID>/conversations/<Conversation
       ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
       
      string participant = 3;
      Specified by:
      getParticipant in interface HumanAgentAssistantEventOrBuilder
      Returns:
      The participant.
    • getParticipantBytes

      public com.google.protobuf.ByteString getParticipantBytes()
       The participant that the suggestion is compiled for.
       Format: `projects/<Project ID>/conversations/<Conversation
       ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
       
      string participant = 3;
      Specified by:
      getParticipantBytes in interface HumanAgentAssistantEventOrBuilder
      Returns:
      The bytes for participant.
    • setParticipant

      public HumanAgentAssistantEvent.Builder setParticipant(String value)
       The participant that the suggestion is compiled for.
       Format: `projects/<Project ID>/conversations/<Conversation
       ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
       
      string participant = 3;
      Parameters:
      value - The participant to set.
      Returns:
      This builder for chaining.
    • clearParticipant

      public HumanAgentAssistantEvent.Builder clearParticipant()
       The participant that the suggestion is compiled for.
       Format: `projects/<Project ID>/conversations/<Conversation
       ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
       
      string participant = 3;
      Returns:
      This builder for chaining.
    • setParticipantBytes

      public HumanAgentAssistantEvent.Builder setParticipantBytes(com.google.protobuf.ByteString value)
       The participant that the suggestion is compiled for.
       Format: `projects/<Project ID>/conversations/<Conversation
       ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
       
      string participant = 3;
      Parameters:
      value - The bytes for participant to set.
      Returns:
      This builder for chaining.
    • getSuggestionResultsList

      public List<SuggestionResult> getSuggestionResultsList()
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
      Specified by:
      getSuggestionResultsList in interface HumanAgentAssistantEventOrBuilder
    • getSuggestionResultsCount

      public int getSuggestionResultsCount()
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
      Specified by:
      getSuggestionResultsCount in interface HumanAgentAssistantEventOrBuilder
    • getSuggestionResults

      public SuggestionResult getSuggestionResults(int index)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
      Specified by:
      getSuggestionResults in interface HumanAgentAssistantEventOrBuilder
    • setSuggestionResults

      public HumanAgentAssistantEvent.Builder setSuggestionResults(int index, SuggestionResult value)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • setSuggestionResults

      public HumanAgentAssistantEvent.Builder setSuggestionResults(int index, SuggestionResult.Builder builderForValue)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • addSuggestionResults

      public HumanAgentAssistantEvent.Builder addSuggestionResults(SuggestionResult value)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • addSuggestionResults

      public HumanAgentAssistantEvent.Builder addSuggestionResults(int index, SuggestionResult value)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • addSuggestionResults

      public HumanAgentAssistantEvent.Builder addSuggestionResults(SuggestionResult.Builder builderForValue)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • addSuggestionResults

      public HumanAgentAssistantEvent.Builder addSuggestionResults(int index, SuggestionResult.Builder builderForValue)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • addAllSuggestionResults

      public HumanAgentAssistantEvent.Builder addAllSuggestionResults(Iterable<? extends SuggestionResult> values)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • clearSuggestionResults

      public HumanAgentAssistantEvent.Builder clearSuggestionResults()
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • removeSuggestionResults

      public HumanAgentAssistantEvent.Builder removeSuggestionResults(int index)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • getSuggestionResultsBuilder

      public SuggestionResult.Builder getSuggestionResultsBuilder(int index)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • getSuggestionResultsOrBuilder

      public SuggestionResultOrBuilder getSuggestionResultsOrBuilder(int index)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
      Specified by:
      getSuggestionResultsOrBuilder in interface HumanAgentAssistantEventOrBuilder
    • getSuggestionResultsOrBuilderList

      public List<? extends SuggestionResultOrBuilder> getSuggestionResultsOrBuilderList()
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
      Specified by:
      getSuggestionResultsOrBuilderList in interface HumanAgentAssistantEventOrBuilder
    • addSuggestionResultsBuilder

      public SuggestionResult.Builder addSuggestionResultsBuilder()
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • addSuggestionResultsBuilder

      public SuggestionResult.Builder addSuggestionResultsBuilder(int index)
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
    • getSuggestionResultsBuilderList

      public List<SuggestionResult.Builder> getSuggestionResultsBuilderList()
       The suggestion results payload that this notification refers to.
       
      repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;