Class Intent.Message.BasicCard.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.BasicCard.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.GeneratedMessageV3.Builder<Intent.Message.BasicCard.Builder>
      • getDefaultInstanceForType

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

        public Intent.Message.BasicCard 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.BasicCard buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public Intent.Message.BasicCard.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.BasicCard.Builder>
      • addRepeatedField

        public Intent.Message.BasicCard.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.BasicCard.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.BasicCard.Builder>
      • mergeFrom

        public Intent.Message.BasicCard.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.BasicCard.Builder>
        Throws:
        IOException
      • 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.BasicCardOrBuilder
        Returns:
        The bytes for title.
      • setTitle

        public Intent.Message.BasicCard.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.BasicCard.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.BasicCard.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.
      • 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.BasicCardOrBuilder
        Returns:
        The bytes for subtitle.
      • setSubtitle

        public Intent.Message.BasicCard.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.BasicCard.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.BasicCard.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.
      • getFormattedTextBytes

        public com.google.protobuf.ByteString getFormattedTextBytes()
         Required, unless image is present. The body text of the card.
         
        string formatted_text = 3;
        Specified by:
        getFormattedTextBytes in interface Intent.Message.BasicCardOrBuilder
        Returns:
        The bytes for formattedText.
      • setFormattedText

        public Intent.Message.BasicCard.Builder setFormattedText​(String value)
         Required, unless image is present. The body text of the card.
         
        string formatted_text = 3;
        Parameters:
        value - The formattedText to set.
        Returns:
        This builder for chaining.
      • clearFormattedText

        public Intent.Message.BasicCard.Builder clearFormattedText()
         Required, unless image is present. The body text of the card.
         
        string formatted_text = 3;
        Returns:
        This builder for chaining.
      • setFormattedTextBytes

        public Intent.Message.BasicCard.Builder setFormattedTextBytes​(com.google.protobuf.ByteString value)
         Required, unless image is present. The body text of the card.
         
        string formatted_text = 3;
        Parameters:
        value - The bytes for formattedText to set.
        Returns:
        This builder for chaining.
      • hasImage

        public boolean hasImage()
         Optional. The image for the card.
         
        .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasImage in interface Intent.Message.BasicCardOrBuilder
        Returns:
        Whether the image field is set.
      • clearImage

        public Intent.Message.BasicCard.Builder clearImage()
         Optional. The image for the card.
         
        .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getImageBuilder

        public Intent.Message.Image.Builder getImageBuilder()
         Optional. The image for the card.
         
        .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getButtonsCount

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

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

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

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

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

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

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

        public final Intent.Message.BasicCard.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.BasicCard.Builder>
      • mergeUnknownFields

        public final Intent.Message.BasicCard.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.BasicCard.Builder>