Class BidiStreamingAnalyzeContentRequest.TurnInput.Builder

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

public static final class BidiStreamingAnalyzeContentRequest.TurnInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder> implements BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
 Input that forms data for a single turn.
 
Protobuf type google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput
  • 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<BidiStreamingAnalyzeContentRequest.TurnInput.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<BidiStreamingAnalyzeContentRequest.TurnInput.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<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public BidiStreamingAnalyzeContentRequest.TurnInput.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<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
      Throws:
      IOException
    • getMainContentCase

      Specified by:
      getMainContentCase in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
    • clearMainContent

    • hasText

      public boolean hasText()
       The UTF-8 encoded natural language text to be processed.
       
      string text = 1;
      Specified by:
      hasText in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public String getText()
       The UTF-8 encoded natural language text to be processed.
       
      string text = 1;
      Specified by:
      getText in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       The UTF-8 encoded natural language text to be processed.
       
      string text = 1;
      Specified by:
      getTextBytes in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      The bytes for text.
    • setText

       The UTF-8 encoded natural language text to be processed.
       
      string text = 1;
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

       The UTF-8 encoded natural language text to be processed.
       
      string text = 1;
      Returns:
      This builder for chaining.
    • setTextBytes

      public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setTextBytes(com.google.protobuf.ByteString value)
       The UTF-8 encoded natural language text to be processed.
       
      string text = 1;
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • hasIntent

      public boolean hasIntent()
       The intent to be triggered on V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/
       <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
       used to trigger the Welcome intent id if the modality is text.
       
      string intent = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasIntent in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      Whether the intent field is set.
    • getIntent

      public String getIntent()
       The intent to be triggered on V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/
       <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
       used to trigger the Welcome intent id if the modality is text.
       
      string intent = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getIntent in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      The intent.
    • getIntentBytes

      public com.google.protobuf.ByteString getIntentBytes()
       The intent to be triggered on V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/
       <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
       used to trigger the Welcome intent id if the modality is text.
       
      string intent = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getIntentBytes in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      The bytes for intent.
    • setIntent

       The intent to be triggered on V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/
       <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
       used to trigger the Welcome intent id if the modality is text.
       
      string intent = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The intent to set.
      Returns:
      This builder for chaining.
    • clearIntent

       The intent to be triggered on V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/
       <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
       used to trigger the Welcome intent id if the modality is text.
       
      string intent = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setIntentBytes

      public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setIntentBytes(com.google.protobuf.ByteString value)
       The intent to be triggered on V3 agent.
       Format: `projects/<Project ID>/locations/<Location ID>/locations/
       <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
       used to trigger the Welcome intent id if the modality is text.
       
      string intent = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for intent to set.
      Returns:
      This builder for chaining.
    • hasEvent

      public boolean hasEvent()
       The input event name.
       This can only be sent once and would cancel the ongoing speech
       recognition if any. To trigger the Welcome intent use the
       event "WELCOME"
       
      string event = 3;
      Specified by:
      hasEvent in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      Whether the event field is set.
    • getEvent

      public String getEvent()
       The input event name.
       This can only be sent once and would cancel the ongoing speech
       recognition if any. To trigger the Welcome intent use the
       event "WELCOME"
       
      string event = 3;
      Specified by:
      getEvent in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      The event.
    • getEventBytes

      public com.google.protobuf.ByteString getEventBytes()
       The input event name.
       This can only be sent once and would cancel the ongoing speech
       recognition if any. To trigger the Welcome intent use the
       event "WELCOME"
       
      string event = 3;
      Specified by:
      getEventBytes in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      The bytes for event.
    • setEvent

       The input event name.
       This can only be sent once and would cancel the ongoing speech
       recognition if any. To trigger the Welcome intent use the
       event "WELCOME"
       
      string event = 3;
      Parameters:
      value - The event to set.
      Returns:
      This builder for chaining.
    • clearEvent

       The input event name.
       This can only be sent once and would cancel the ongoing speech
       recognition if any. To trigger the Welcome intent use the
       event "WELCOME"
       
      string event = 3;
      Returns:
      This builder for chaining.
    • setEventBytes

      public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setEventBytes(com.google.protobuf.ByteString value)
       The input event name.
       This can only be sent once and would cancel the ongoing speech
       recognition if any. To trigger the Welcome intent use the
       event "WELCOME"
       
      string event = 3;
      Parameters:
      value - The bytes for event to set.
      Returns:
      This builder for chaining.
    • hasVirtualAgentParameters

      public boolean hasVirtualAgentParameters()
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVirtualAgentParameters in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      Whether the virtualAgentParameters field is set.
    • getVirtualAgentParameters

      public com.google.protobuf.Struct getVirtualAgentParameters()
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVirtualAgentParameters in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
      Returns:
      The virtualAgentParameters.
    • setVirtualAgentParameters

      public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setVirtualAgentParameters(com.google.protobuf.Struct value)
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setVirtualAgentParameters

      public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setVirtualAgentParameters(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeVirtualAgentParameters

      public BidiStreamingAnalyzeContentRequest.TurnInput.Builder mergeVirtualAgentParameters(com.google.protobuf.Struct value)
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearVirtualAgentParameters

      public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clearVirtualAgentParameters()
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getVirtualAgentParametersBuilder

      public com.google.protobuf.Struct.Builder getVirtualAgentParametersBuilder()
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getVirtualAgentParametersOrBuilder

      public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder()
       Optional. Parameters to be passed to the virtual agent.
       
      .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVirtualAgentParametersOrBuilder in interface BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder