Package com.google.cloud.dialogflow.v2
Interface GenerateStatelessSuggestionRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GenerateStatelessSuggestionRequest,GenerateStatelessSuggestionRequest.Builder
@Generated
public interface GenerateStatelessSuggestionRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.Deprecated.intOptional.Optional.getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue) Optional.Optional.Optional.Optional.Uncreated generator.The resource name of the existing created generator.com.google.protobuf.ByteStringThe resource name of the existing created generator.Uncreated generator.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.getTriggerEvents(int index) Optional.intOptional.Optional.intgetTriggerEventsValue(int index) Optional.Optional.booleanOptional.booleanUncreated generator.booleanThe resource name of the existing created generator.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
String getParent()Required. The parent resource to charge for the Suggestion's generation. Format: `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The parent.
-
getParentBytes
com.google.protobuf.ByteString getParentBytes()Required. The parent resource to charge for the Suggestion's generation. Format: `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for parent.
-
hasGenerator
boolean hasGenerator()Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2;- Returns:
- Whether the generator field is set.
-
getGenerator
Generator getGenerator()Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2;- Returns:
- The generator.
-
getGeneratorOrBuilder
GeneratorOrBuilder getGeneratorOrBuilder()Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2; -
hasGeneratorName
boolean hasGeneratorName()The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Returns:
- Whether the generatorName field is set.
-
getGeneratorName
String getGeneratorName()The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Returns:
- The generatorName.
-
getGeneratorNameBytes
com.google.protobuf.ByteString getGeneratorNameBytes()The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Returns:
- The bytes for generatorName.
-
getContextReferencesCount
int getContextReferencesCount()Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.
map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 4 [(.google.api.field_behavior) = OPTIONAL]; -
containsContextReferences
Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.
map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getContextReferences
Deprecated.UsegetContextReferencesMap()instead. -
getContextReferencesMap
Map<String,Conversation.ContextReference> getContextReferencesMap()Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.
map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getContextReferencesOrDefault
Conversation.ContextReference getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue) Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.
map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getContextReferencesOrThrow
Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.
map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 4 [(.google.api.field_behavior) = OPTIONAL]; -
hasConversationContext
boolean hasConversationContext()Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the conversationContext field is set.
-
getConversationContext
ConversationContext getConversationContext()Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The conversationContext.
-
getConversationContextOrBuilder
ConversationContextOrBuilder getConversationContextOrBuilder()Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getTriggerEventsList
List<TriggerEvent> getTriggerEventsList()Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.
repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the triggerEvents.
-
getTriggerEventsCount
int getTriggerEventsCount()Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.
repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of triggerEvents.
-
getTriggerEvents
Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.
repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The triggerEvents at the given index.
-
getTriggerEventsValueList
Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.
repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the enum numeric values on the wire for triggerEvents.
-
getTriggerEventsValue
int getTriggerEventsValue(int index) Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.
repeated .google.cloud.dialogflow.v2.TriggerEvent trigger_events = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of triggerEvents at the given index.
-
getSecuritySettings
String getSecuritySettings()Optional. Name of the CX SecuritySettings which is used to redact generated response. If this field is empty, try to fetch v2 security_settings, which is a project level setting. If this field is empty and no v2 security_settings set up in this project, no redaction will be done. Format: `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The securitySettings.
-
getSecuritySettingsBytes
com.google.protobuf.ByteString getSecuritySettingsBytes()Optional. Name of the CX SecuritySettings which is used to redact generated response. If this field is empty, try to fetch v2 security_settings, which is a project level setting. If this field is empty and no v2 security_settings set up in this project, no redaction will be done. Format: `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for securitySettings.
-
getGeneratorResourceCase
GenerateStatelessSuggestionRequest.GeneratorResourceCase getGeneratorResourceCase()
-