Class Intent.Message.Card.Builder

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

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

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

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

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

      public String getTitle()
       Optional. The title of the card.
       
      string title = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTitle in interface Intent.Message.CardOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Optional. The title of the card.
       
      string title = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTitleBytes in interface Intent.Message.CardOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public Intent.Message.Card.Builder setTitle(String value)
       Optional. The title of the card.
       
      string title = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public Intent.Message.Card.Builder clearTitle()
       Optional. The title of the card.
       
      string title = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Intent.Message.Card.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Optional. The title of the card.
       
      string title = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getSubtitle

      public String getSubtitle()
       Optional. The subtitle of the card.
       
      string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubtitle in interface Intent.Message.CardOrBuilder
      Returns:
      The subtitle.
    • getSubtitleBytes

      public com.google.protobuf.ByteString getSubtitleBytes()
       Optional. The subtitle of the card.
       
      string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubtitleBytes in interface Intent.Message.CardOrBuilder
      Returns:
      The bytes for subtitle.
    • setSubtitle

      public Intent.Message.Card.Builder setSubtitle(String value)
       Optional. The subtitle of the card.
       
      string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The subtitle to set.
      Returns:
      This builder for chaining.
    • clearSubtitle

      public Intent.Message.Card.Builder clearSubtitle()
       Optional. The subtitle of the card.
       
      string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSubtitleBytes

      public Intent.Message.Card.Builder setSubtitleBytes(com.google.protobuf.ByteString value)
       Optional. The subtitle of the card.
       
      string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for subtitle to set.
      Returns:
      This builder for chaining.
    • getImageUri

      public String getImageUri()
       Optional. The public URI to an image file for the card.
       
      string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImageUri in interface Intent.Message.CardOrBuilder
      Returns:
      The imageUri.
    • getImageUriBytes

      public com.google.protobuf.ByteString getImageUriBytes()
       Optional. The public URI to an image file for the card.
       
      string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImageUriBytes in interface Intent.Message.CardOrBuilder
      Returns:
      The bytes for imageUri.
    • setImageUri

      public Intent.Message.Card.Builder setImageUri(String value)
       Optional. The public URI to an image file for the card.
       
      string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The imageUri to set.
      Returns:
      This builder for chaining.
    • clearImageUri

      public Intent.Message.Card.Builder clearImageUri()
       Optional. The public URI to an image file for the card.
       
      string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setImageUriBytes

      public Intent.Message.Card.Builder setImageUriBytes(com.google.protobuf.ByteString value)
       Optional. The public URI to an image file for the card.
       
      string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for imageUri to set.
      Returns:
      This builder for chaining.
    • getButtonsList

      public List<Intent.Message.Card.Button> getButtonsList()
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getButtonsList in interface Intent.Message.CardOrBuilder
    • getButtonsCount

      public int getButtonsCount()
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getButtonsCount in interface Intent.Message.CardOrBuilder
    • getButtons

      public Intent.Message.Card.Button getButtons(int index)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getButtons in interface Intent.Message.CardOrBuilder
    • setButtons

      public Intent.Message.Card.Builder setButtons(int index, Intent.Message.Card.Button value)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setButtons

      public Intent.Message.Card.Builder setButtons(int index, Intent.Message.Card.Button.Builder builderForValue)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addButtons

       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addButtons

      public Intent.Message.Card.Builder addButtons(int index, Intent.Message.Card.Button value)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addButtons

       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addButtons

      public Intent.Message.Card.Builder addButtons(int index, Intent.Message.Card.Button.Builder builderForValue)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addAllButtons

      public Intent.Message.Card.Builder addAllButtons(Iterable<? extends Intent.Message.Card.Button> values)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearButtons

      public Intent.Message.Card.Builder clearButtons()
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • removeButtons

      public Intent.Message.Card.Builder removeButtons(int index)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getButtonsBuilder

      public Intent.Message.Card.Button.Builder getButtonsBuilder(int index)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getButtonsOrBuilder

      public Intent.Message.Card.ButtonOrBuilder getButtonsOrBuilder(int index)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getButtonsOrBuilder in interface Intent.Message.CardOrBuilder
    • getButtonsOrBuilderList

      public List<? extends Intent.Message.Card.ButtonOrBuilder> getButtonsOrBuilderList()
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getButtonsOrBuilderList in interface Intent.Message.CardOrBuilder
    • addButtonsBuilder

      public Intent.Message.Card.Button.Builder addButtonsBuilder()
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addButtonsBuilder

      public Intent.Message.Card.Button.Builder addButtonsBuilder(int index)
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getButtonsBuilderList

      public List<Intent.Message.Card.Button.Builder> getButtonsBuilderList()
       Optional. The collection of card buttons.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL];