Class Intent.Message.Suggestions.Builder (4.5.11)

public static final class Intent.Message.Suggestions.Builder extends GeneratedMessageV3.Builder<Intent.Message.Suggestions.Builder> implements Intent.Message.SuggestionsOrBuilder

The collection of suggestions.

Protobuf type google.cloud.dialogflow.v2.Intent.Message.Suggestions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSuggestions(Iterable<? extends Intent.Message.Suggestion> values)

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];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.Intent.Message.Suggestion>
Returns
TypeDescription
Intent.Message.Suggestions.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.Suggestions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

addSuggestions(Intent.Message.Suggestion value)

public Intent.Message.Suggestions.Builder addSuggestions(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];

Parameter
NameDescription
valueIntent.Message.Suggestion
Returns
TypeDescription
Intent.Message.Suggestions.Builder

addSuggestions(Intent.Message.Suggestion.Builder builderForValue)

public Intent.Message.Suggestions.Builder addSuggestions(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];

Parameter
NameDescription
builderForValueIntent.Message.Suggestion.Builder
Returns
TypeDescription
Intent.Message.Suggestions.Builder

addSuggestions(int index, Intent.Message.Suggestion value)

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];

Parameters
NameDescription
indexint
valueIntent.Message.Suggestion
Returns
TypeDescription
Intent.Message.Suggestions.Builder

addSuggestions(int index, Intent.Message.Suggestion.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueIntent.Message.Suggestion.Builder
Returns
TypeDescription
Intent.Message.Suggestions.Builder

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];

Returns
TypeDescription
Intent.Message.Suggestion.Builder

addSuggestionsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.Suggestion.Builder

build()

public Intent.Message.Suggestions build()
Returns
TypeDescription
Intent.Message.Suggestions

buildPartial()

public Intent.Message.Suggestions buildPartial()
Returns
TypeDescription
Intent.Message.Suggestions

clear()

public Intent.Message.Suggestions.Builder clear()
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.Suggestions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.Suggestions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

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];

Returns
TypeDescription
Intent.Message.Suggestions.Builder

clone()

public Intent.Message.Suggestions.Builder clone()
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.Suggestions getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.Suggestions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSuggestions(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.Suggestion

getSuggestionsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.Suggestion.Builder

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];

Returns
TypeDescription
List<Builder>

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];

Returns
TypeDescription
int

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];

Returns
TypeDescription
List<Suggestion>

getSuggestionsOrBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.SuggestionOrBuilder

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];

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.Intent.Message.SuggestionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.Suggestions other)

public Intent.Message.Suggestions.Builder mergeFrom(Intent.Message.Suggestions other)
Parameter
NameDescription
otherIntent.Message.Suggestions
Returns
TypeDescription
Intent.Message.Suggestions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.Suggestions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Intent.Message.Suggestions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.Suggestions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

removeSuggestions(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.Suggestions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.Suggestions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Intent.Message.Suggestions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides

setSuggestions(int index, Intent.Message.Suggestion value)

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];

Parameters
NameDescription
indexint
valueIntent.Message.Suggestion
Returns
TypeDescription
Intent.Message.Suggestions.Builder

setSuggestions(int index, Intent.Message.Suggestion.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueIntent.Message.Suggestion.Builder
Returns
TypeDescription
Intent.Message.Suggestions.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.Suggestions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.Suggestions.Builder
Overrides