Class Intent.Message.Text.Builder

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

public static final class Intent.Message.Text.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.Text.Builder> implements Intent.Message.TextOrBuilder
 The text response message.
 
Protobuf type google.cloud.dialogflow.v2.Intent.Message.Text
  • 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<Intent.Message.Text.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<Intent.Message.Text.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<Intent.Message.Text.Builder>
    • getDefaultInstanceForType

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

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

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

      public Intent.Message.Text.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<Intent.Message.Text.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<Intent.Message.Text.Builder>
    • mergeFrom

      public Intent.Message.Text.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<Intent.Message.Text.Builder>
      Throws:
      IOException
    • getTextList

      public com.google.protobuf.ProtocolStringList getTextList()
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTextList in interface Intent.Message.TextOrBuilder
      Returns:
      A list containing the text.
    • getTextCount

      public int getTextCount()
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTextCount in interface Intent.Message.TextOrBuilder
      Returns:
      The count of text.
    • getText

      public String getText(int index)
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getText in interface Intent.Message.TextOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The text at the given index.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes(int index)
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTextBytes in interface Intent.Message.TextOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the text at the given index.
    • setText

      public Intent.Message.Text.Builder setText(int index, String value)
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The text to set.
      Returns:
      This builder for chaining.
    • addText

      public Intent.Message.Text.Builder addText(String value)
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The text to add.
      Returns:
      This builder for chaining.
    • addAllText

      public Intent.Message.Text.Builder addAllText(Iterable<String> values)
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The text to add.
      Returns:
      This builder for chaining.
    • clearText

      public Intent.Message.Text.Builder clearText()
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addTextBytes

      public Intent.Message.Text.Builder addTextBytes(com.google.protobuf.ByteString value)
       Optional. The collection of the agent's responses.
       
      repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the text to add.
      Returns:
      This builder for chaining.