Class Suggestions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Suggestions.Builder>
com.google.protobuf.GeneratedMessage.Builder<Suggestions.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Suggestions.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Suggestions.Builder>
com.google.apps.card.v1.Suggestions.Builder
All Implemented Interfaces:
SuggestionsOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Suggestions

public static final class Suggestions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Suggestions.Builder> implements SuggestionsOrBuilder
 Suggested values that users can enter. These values appear when users click
 inside the text input field. As users type, the suggested values
 dynamically filter to match what the users have typed.

 For example, a text input field for programming language might suggest
 Java, JavaScript, Python, and C++. When users start typing `Jav`, the list
 of suggestions filters to show `Java` and `JavaScript`.

 Suggested values help guide users to enter values that your app can make
 sense of. When referring to JavaScript, some users might enter `javascript`
 and others `java script`. Suggesting `JavaScript` can standardize how users
 interact with your app.

 When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set
 to `MULTIPLE_LINE`.

 [Google Workspace
 Add-ons and Chat apps](https://developers.google.com/workspace/extend):
 
Protobuf type google.apps.card.v1.Suggestions
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestions.Builder>
    • clear

      public Suggestions.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.GeneratedMessageV3.Builder<Suggestions.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<Suggestions.Builder>
    • getDefaultInstanceForType

      public Suggestions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

      public Suggestions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Suggestions.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestions.Builder>
    • setField

      public Suggestions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestions.Builder>
    • clearField

      public Suggestions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestions.Builder>
    • clearOneof

      public Suggestions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestions.Builder>
    • setRepeatedField

      public Suggestions.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<Suggestions.Builder>
    • addRepeatedField

      public Suggestions.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<Suggestions.Builder>
    • mergeFrom

      public Suggestions.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<Suggestions.Builder>
    • mergeFrom

      public Suggestions.Builder mergeFrom(Suggestions other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Suggestions.Builder>
    • mergeFrom

      public Suggestions.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<Suggestions.Builder>
      Throws:
      IOException
    • getItemsList

      public List<Suggestions.SuggestionItem> getItemsList()
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
      Specified by:
      getItemsList in interface SuggestionsOrBuilder
    • getItemsCount

      public int getItemsCount()
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
      Specified by:
      getItemsCount in interface SuggestionsOrBuilder
    • getItems

      public Suggestions.SuggestionItem getItems(int index)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
      Specified by:
      getItems in interface SuggestionsOrBuilder
    • setItems

      public Suggestions.Builder setItems(int index, Suggestions.SuggestionItem value)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • setItems

      public Suggestions.Builder setItems(int index, Suggestions.SuggestionItem.Builder builderForValue)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • addItems

       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • addItems

      public Suggestions.Builder addItems(int index, Suggestions.SuggestionItem value)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • addItems

      public Suggestions.Builder addItems(Suggestions.SuggestionItem.Builder builderForValue)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • addItems

      public Suggestions.Builder addItems(int index, Suggestions.SuggestionItem.Builder builderForValue)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • addAllItems

      public Suggestions.Builder addAllItems(Iterable<? extends Suggestions.SuggestionItem> values)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • clearItems

      public Suggestions.Builder clearItems()
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • removeItems

      public Suggestions.Builder removeItems(int index)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • getItemsBuilder

      public Suggestions.SuggestionItem.Builder getItemsBuilder(int index)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • getItemsOrBuilder

      public Suggestions.SuggestionItemOrBuilder getItemsOrBuilder(int index)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
      Specified by:
      getItemsOrBuilder in interface SuggestionsOrBuilder
    • getItemsOrBuilderList

      public List<? extends Suggestions.SuggestionItemOrBuilder> getItemsOrBuilderList()
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
      Specified by:
      getItemsOrBuilderList in interface SuggestionsOrBuilder
    • addItemsBuilder

      public Suggestions.SuggestionItem.Builder addItemsBuilder()
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • addItemsBuilder

      public Suggestions.SuggestionItem.Builder addItemsBuilder(int index)
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • getItemsBuilderList

      public List<Suggestions.SuggestionItem.Builder> getItemsBuilderList()
       A list of suggestions used for autocomplete recommendations in text input
       fields.
       
      repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
    • setUnknownFields

      public final Suggestions.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<Suggestions.Builder>
    • mergeUnknownFields

      public final Suggestions.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<Suggestions.Builder>