- 4.84.0 (latest)
- 4.82.0
- 4.81.0
- 4.80.0
- 4.79.0
- 4.78.0
- 4.76.0
- 4.74.0
- 4.73.0
- 4.70.0
- 4.69.0
- 4.68.0
- 4.66.0
- 4.65.0
- 4.64.0
- 4.63.0
- 4.62.0
- 4.61.0
- 4.60.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class GenerateSuggestionsRequest.Builder extends GeneratedMessageV3.Builder<GenerateSuggestionsRequest.Builder> implements GenerateSuggestionsRequestOrBuilderThe request message for Conversations.GenerateSuggestions.
 Protobuf type google.cloud.dialogflow.v2.GenerateSuggestionsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerateSuggestionsRequest.BuilderImplements
GenerateSuggestionsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addAllTriggerEvents(Iterable<? extends TriggerEvent> values)
public GenerateSuggestionsRequest.Builder addAllTriggerEvents(Iterable<? extends TriggerEvent> values)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<? extends com.google.cloud.dialogflow.v2.TriggerEvent>The triggerEvents to add. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
addAllTriggerEventsValue(Iterable<Integer> values)
public GenerateSuggestionsRequest.Builder addAllTriggerEventsValue(Iterable<Integer> values)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<Integer>The enum numeric values on the wire for triggerEvents to add. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateSuggestionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
addTriggerEvents(TriggerEvent value)
public GenerateSuggestionsRequest.Builder addTriggerEvents(TriggerEvent value)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | TriggerEventThe triggerEvents to add. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
addTriggerEventsValue(int value)
public GenerateSuggestionsRequest.Builder addTriggerEventsValue(int value)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe enum numeric value on the wire for triggerEvents to add. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
build()
public GenerateSuggestionsRequest build()| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest | |
buildPartial()
public GenerateSuggestionsRequest buildPartial()| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest | |
clear()
public GenerateSuggestionsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
clearConversation()
public GenerateSuggestionsRequest.Builder clearConversation() Required. The conversation for which the suggestions are generated. Format:
 projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
 
 string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
clearField(Descriptors.FieldDescriptor field)
public GenerateSuggestionsRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
clearLatestMessage()
public GenerateSuggestionsRequest.Builder clearLatestMessage() Optional. The name of the latest conversation message for which the request
 is triggered. Format: projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>/messages/<Message ID>.
 
 string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateSuggestionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
clearTriggerEvents()
public GenerateSuggestionsRequest.Builder clearTriggerEvents()Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
clone()
public GenerateSuggestionsRequest.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
getConversation()
public String getConversation() Required. The conversation for which the suggestions are generated. Format:
 projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
 
 string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| String | The conversation. | 
getConversationBytes()
public ByteString getConversationBytes() Required. The conversation for which the suggestions are generated. Format:
 projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
 
 string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for conversation. | 
getDefaultInstanceForType()
public GenerateSuggestionsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getLatestMessage()
public String getLatestMessage() Optional. The name of the latest conversation message for which the request
 is triggered. Format: projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>/messages/<Message ID>.
 
 string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| String | The latestMessage. | 
getLatestMessageBytes()
public ByteString getLatestMessageBytes() Optional. The name of the latest conversation message for which the request
 is triggered. Format: projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>/messages/<Message ID>.
 
 string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for latestMessage. | 
getTriggerEvents(int index)
public TriggerEvent getTriggerEvents(int index)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| index | intThe index of the element to return. | 
| Returns | |
|---|---|
| Type | Description | 
| TriggerEvent | The triggerEvents at the given index. | 
getTriggerEventsCount()
public int getTriggerEventsCount()Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| int | The count of triggerEvents. | 
getTriggerEventsList()
public List<TriggerEvent> getTriggerEventsList()Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| List<TriggerEvent> | A list containing the triggerEvents. | 
getTriggerEventsValue(int index)
public int getTriggerEventsValue(int index)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| index | intThe index of the value to return. | 
| Returns | |
|---|---|
| Type | Description | 
| int | The enum numeric value on the wire of triggerEvents at the given index. | 
getTriggerEventsValueList()
public List<Integer> getTriggerEventsValueList()Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| List<Integer> | A list containing the enum numeric values on the wire for triggerEvents. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeFrom(GenerateSuggestionsRequest other)
public GenerateSuggestionsRequest.Builder mergeFrom(GenerateSuggestionsRequest other)| Parameter | |
|---|---|
| Name | Description | 
| other | GenerateSuggestionsRequest | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateSuggestionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public GenerateSuggestionsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateSuggestionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
setConversation(String value)
public GenerateSuggestionsRequest.Builder setConversation(String value) Required. The conversation for which the suggestions are generated. Format:
 projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
 
 string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe conversation to set. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
setConversationBytes(ByteString value)
public GenerateSuggestionsRequest.Builder setConversationBytes(ByteString value) Required. The conversation for which the suggestions are generated. Format:
 projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
 
 string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for conversation to set. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateSuggestionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
setLatestMessage(String value)
public GenerateSuggestionsRequest.Builder setLatestMessage(String value) Optional. The name of the latest conversation message for which the request
 is triggered. Format: projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>/messages/<Message ID>.
 
 string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe latestMessage to set. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
setLatestMessageBytes(ByteString value)
public GenerateSuggestionsRequest.Builder setLatestMessageBytes(ByteString value) Optional. The name of the latest conversation message for which the request
 is triggered. Format: projects/<Project ID>/locations/<Location
 ID>/conversations/<Conversation ID>/messages/<Message ID>.
 
 string latest_message = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for latestMessage to set. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateSuggestionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |
setTriggerEvents(int index, TriggerEvent value)
public GenerateSuggestionsRequest.Builder setTriggerEvents(int index, TriggerEvent value)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameters | |
|---|---|
| Name | Description | 
| index | intThe index to set the value at. | 
| value | TriggerEventThe triggerEvents to set. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
setTriggerEventsValue(int index, int value)
public GenerateSuggestionsRequest.Builder setTriggerEventsValue(int index, int value)Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
 
 repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameters | |
|---|---|
| Name | Description | 
| index | intThe index to set the value at. | 
| value | intThe enum numeric value on the wire for triggerEvents to set. | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | This builder for chaining. | 
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateSuggestionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| GenerateSuggestionsRequest.Builder | |