Class Intent.Message.Suggestions.Builder

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

public static final class Intent.Message.Suggestions.Builder extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.Suggestions.Builder> implements Intent.Message.SuggestionsOrBuilder
 The collection of suggestions.
 
Protobuf type google.cloud.dialogflow.v2.Intent.Message.Suggestions
  • 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.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.GeneratedMessage.Builder<Intent.Message.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<Intent.Message.Suggestions.Builder>
    • getDefaultInstanceForType

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

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

      public List<Intent.Message.Suggestion> getSuggestionsList()
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSuggestionsList in interface Intent.Message.SuggestionsOrBuilder
    • getSuggestionsCount

      public int getSuggestionsCount()
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSuggestionsCount in interface Intent.Message.SuggestionsOrBuilder
    • getSuggestions

      public Intent.Message.Suggestion getSuggestions(int index)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSuggestions in interface Intent.Message.SuggestionsOrBuilder
    • setSuggestions

      public Intent.Message.Suggestions.Builder setSuggestions(int index, Intent.Message.Suggestion value)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • setSuggestions

      public Intent.Message.Suggestions.Builder setSuggestions(int index, Intent.Message.Suggestion.Builder builderForValue)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addSuggestions

       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addSuggestions

      public Intent.Message.Suggestions.Builder addSuggestions(int index, Intent.Message.Suggestion value)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addSuggestions

       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addSuggestions

      public Intent.Message.Suggestions.Builder addSuggestions(int index, Intent.Message.Suggestion.Builder builderForValue)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllSuggestions

      public Intent.Message.Suggestions.Builder addAllSuggestions(Iterable<? extends Intent.Message.Suggestion> values)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearSuggestions

      public Intent.Message.Suggestions.Builder clearSuggestions()
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeSuggestions

      public Intent.Message.Suggestions.Builder removeSuggestions(int index)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSuggestionsBuilder

      public Intent.Message.Suggestion.Builder getSuggestionsBuilder(int index)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSuggestionsOrBuilder

      public Intent.Message.SuggestionOrBuilder getSuggestionsOrBuilder(int index)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSuggestionsOrBuilder in interface Intent.Message.SuggestionsOrBuilder
    • getSuggestionsOrBuilderList

      public List<? extends Intent.Message.SuggestionOrBuilder> getSuggestionsOrBuilderList()
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSuggestionsOrBuilderList in interface Intent.Message.SuggestionsOrBuilder
    • addSuggestionsBuilder

      public Intent.Message.Suggestion.Builder addSuggestionsBuilder()
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • addSuggestionsBuilder

      public Intent.Message.Suggestion.Builder addSuggestionsBuilder(int index)
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSuggestionsBuilderList

      public List<Intent.Message.Suggestion.Builder> getSuggestionsBuilderList()
       Required. The list of suggested replies.
       
      repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];