Class Intent.Message.RbmSuggestedReply.Builder

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

public static final class Intent.Message.RbmSuggestedReply.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmSuggestedReply.Builder> implements Intent.Message.RbmSuggestedReplyOrBuilder
 Rich Business Messaging (RBM) suggested reply that the user can click
 instead of typing in their own response.
 
Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
  • 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.RbmSuggestedReply.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.RbmSuggestedReply.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.RbmSuggestedReply.Builder>
    • getDefaultInstanceForType

      public Intent.Message.RbmSuggestedReply 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

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

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

      public String getText()
       Suggested reply text.
       
      string text = 1;
      Specified by:
      getText in interface Intent.Message.RbmSuggestedReplyOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       Suggested reply text.
       
      string text = 1;
      Specified by:
      getTextBytes in interface Intent.Message.RbmSuggestedReplyOrBuilder
      Returns:
      The bytes for text.
    • setText

       Suggested reply text.
       
      string text = 1;
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

       Suggested reply text.
       
      string text = 1;
      Returns:
      This builder for chaining.
    • setTextBytes

      public Intent.Message.RbmSuggestedReply.Builder setTextBytes(com.google.protobuf.ByteString value)
       Suggested reply text.
       
      string text = 1;
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • getPostbackData

      public String getPostbackData()
       Opaque payload that the Dialogflow receives in a user event
       when the user taps the suggested reply. This data will be also
       forwarded to webhook to allow performing custom business logic.
       
      string postback_data = 2;
      Specified by:
      getPostbackData in interface Intent.Message.RbmSuggestedReplyOrBuilder
      Returns:
      The postbackData.
    • getPostbackDataBytes

      public com.google.protobuf.ByteString getPostbackDataBytes()
       Opaque payload that the Dialogflow receives in a user event
       when the user taps the suggested reply. This data will be also
       forwarded to webhook to allow performing custom business logic.
       
      string postback_data = 2;
      Specified by:
      getPostbackDataBytes in interface Intent.Message.RbmSuggestedReplyOrBuilder
      Returns:
      The bytes for postbackData.
    • setPostbackData

      public Intent.Message.RbmSuggestedReply.Builder setPostbackData(String value)
       Opaque payload that the Dialogflow receives in a user event
       when the user taps the suggested reply. This data will be also
       forwarded to webhook to allow performing custom business logic.
       
      string postback_data = 2;
      Parameters:
      value - The postbackData to set.
      Returns:
      This builder for chaining.
    • clearPostbackData

      public Intent.Message.RbmSuggestedReply.Builder clearPostbackData()
       Opaque payload that the Dialogflow receives in a user event
       when the user taps the suggested reply. This data will be also
       forwarded to webhook to allow performing custom business logic.
       
      string postback_data = 2;
      Returns:
      This builder for chaining.
    • setPostbackDataBytes

      public Intent.Message.RbmSuggestedReply.Builder setPostbackDataBytes(com.google.protobuf.ByteString value)
       Opaque payload that the Dialogflow receives in a user event
       when the user taps the suggested reply. This data will be also
       forwarded to webhook to allow performing custom business logic.
       
      string postback_data = 2;
      Parameters:
      value - The bytes for postbackData to set.
      Returns:
      This builder for chaining.