Class Intent.Message.RbmCardContent.Builder

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

public static final class Intent.Message.RbmCardContent.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.Builder> implements Intent.Message.RbmCardContentOrBuilder
 Rich Business Messaging (RBM) Card content
 
Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
  • 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.RbmCardContent.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.RbmCardContent.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.RbmCardContent.Builder>
    • getDefaultInstanceForType

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

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

      public String getTitle()
       Optional. Title of the card (at most 200 bytes).
      
       At least one of the title, description or media must be set.
       
      string title = 1;
      Specified by:
      getTitle in interface Intent.Message.RbmCardContentOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Optional. Title of the card (at most 200 bytes).
      
       At least one of the title, description or media must be set.
       
      string title = 1;
      Specified by:
      getTitleBytes in interface Intent.Message.RbmCardContentOrBuilder
      Returns:
      The bytes for title.
    • setTitle

       Optional. Title of the card (at most 200 bytes).
      
       At least one of the title, description or media must be set.
       
      string title = 1;
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

       Optional. Title of the card (at most 200 bytes).
      
       At least one of the title, description or media must be set.
       
      string title = 1;
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Intent.Message.RbmCardContent.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Optional. Title of the card (at most 200 bytes).
      
       At least one of the title, description or media must be set.
       
      string title = 1;
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Description of the card (at most 2000 bytes).
      
       At least one of the title, description or media must be set.
       
      string description = 2;
      Specified by:
      getDescription in interface Intent.Message.RbmCardContentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the card (at most 2000 bytes).
      
       At least one of the title, description or media must be set.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface Intent.Message.RbmCardContentOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Intent.Message.RbmCardContent.Builder setDescription(String value)
       Optional. Description of the card (at most 2000 bytes).
      
       At least one of the title, description or media must be set.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Intent.Message.RbmCardContent.Builder clearDescription()
       Optional. Description of the card (at most 2000 bytes).
      
       At least one of the title, description or media must be set.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Intent.Message.RbmCardContent.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the card (at most 2000 bytes).
      
       At least one of the title, description or media must be set.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasMedia

      public boolean hasMedia()
       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
      Specified by:
      hasMedia in interface Intent.Message.RbmCardContentOrBuilder
      Returns:
      Whether the media field is set.
    • getMedia

       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
      Specified by:
      getMedia in interface Intent.Message.RbmCardContentOrBuilder
      Returns:
      The media.
    • setMedia

       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
    • setMedia

       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
    • mergeMedia

       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
    • clearMedia

       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
    • getMediaBuilder

       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
    • getMediaOrBuilder

       Optional. However at least one of the title, description or media must
       be set. Media (image, GIF or a video) to include in the card.
       
      .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
      Specified by:
      getMediaOrBuilder in interface Intent.Message.RbmCardContentOrBuilder
    • getSuggestionsList

      public List<Intent.Message.RbmSuggestion> getSuggestionsList()
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
      Specified by:
      getSuggestionsList in interface Intent.Message.RbmCardContentOrBuilder
    • getSuggestionsCount

      public int getSuggestionsCount()
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
      Specified by:
      getSuggestionsCount in interface Intent.Message.RbmCardContentOrBuilder
    • getSuggestions

      public Intent.Message.RbmSuggestion getSuggestions(int index)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
      Specified by:
      getSuggestions in interface Intent.Message.RbmCardContentOrBuilder
    • setSuggestions

      public Intent.Message.RbmCardContent.Builder setSuggestions(int index, Intent.Message.RbmSuggestion value)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • setSuggestions

      public Intent.Message.RbmCardContent.Builder setSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • addSuggestions

       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • addSuggestions

      public Intent.Message.RbmCardContent.Builder addSuggestions(int index, Intent.Message.RbmSuggestion value)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • addSuggestions

       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • addSuggestions

      public Intent.Message.RbmCardContent.Builder addSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • addAllSuggestions

      public Intent.Message.RbmCardContent.Builder addAllSuggestions(Iterable<? extends Intent.Message.RbmSuggestion> values)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • clearSuggestions

      public Intent.Message.RbmCardContent.Builder clearSuggestions()
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • removeSuggestions

      public Intent.Message.RbmCardContent.Builder removeSuggestions(int index)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • getSuggestionsBuilder

      public Intent.Message.RbmSuggestion.Builder getSuggestionsBuilder(int index)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • getSuggestionsOrBuilder

      public Intent.Message.RbmSuggestionOrBuilder getSuggestionsOrBuilder(int index)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
      Specified by:
      getSuggestionsOrBuilder in interface Intent.Message.RbmCardContentOrBuilder
    • getSuggestionsOrBuilderList

      public List<? extends Intent.Message.RbmSuggestionOrBuilder> getSuggestionsOrBuilderList()
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
      Specified by:
      getSuggestionsOrBuilderList in interface Intent.Message.RbmCardContentOrBuilder
    • addSuggestionsBuilder

      public Intent.Message.RbmSuggestion.Builder addSuggestionsBuilder()
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • addSuggestionsBuilder

      public Intent.Message.RbmSuggestion.Builder addSuggestionsBuilder(int index)
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
    • getSuggestionsBuilderList

      public List<Intent.Message.RbmSuggestion.Builder> getSuggestionsBuilderList()
       Optional. List of suggestions to include in the card.
       
      repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;