Package com.google.cloud.dialogflow.v2
Class GenerateStatelessSuggestionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
com.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest.Builder
- All Implemented Interfaces:
GenerateStatelessSuggestionRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateStatelessSuggestionRequest
public static final class GenerateStatelessSuggestionRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
implements GenerateStatelessSuggestionRequestOrBuilder
The request message for [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion].Protobuf type
google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllTriggerEvents(Iterable<? extends TriggerEvent> values) Optional.addAllTriggerEventsValue(Iterable<Integer> values) Optional.addTriggerEvents(TriggerEvent value) Optional.addTriggerEventsValue(int value) Optional.build()clear()Optional.Uncreated generator.The resource name of the existing created generator.Required.Optional.Optional.booleanOptional.Deprecated.intOptional.Optional.getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue) Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUncreated generator.Uncreated generator.The resource name of the existing created generator.com.google.protobuf.ByteStringThe resource name of the existing created generator.Uncreated generator.Deprecated.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanOptional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGenerator(Generator value) Uncreated generator.Optional.putContextReferences(String key, Conversation.ContextReference value) Optional.Optional.Optional.Optional.setConversationContext(ConversationContext.Builder builderForValue) Optional.setGenerator(Generator value) Uncreated generator.setGenerator(Generator.Builder builderForValue) Uncreated generator.setGeneratorName(String value) The resource name of the existing created generator.setGeneratorNameBytes(com.google.protobuf.ByteString value) The resource name of the existing created generator.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setSecuritySettings(String value) Optional.setSecuritySettingsBytes(com.google.protobuf.ByteString value) Optional.setTriggerEvents(int index, TriggerEvent value) Optional.setTriggerEventsValue(int index, int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
-
mergeFrom
public GenerateStatelessSuggestionRequest.Builder mergeFrom(GenerateStatelessSuggestionRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateStatelessSuggestionRequest.Builder>
-
mergeFrom
public GenerateStatelessSuggestionRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateStatelessSuggestionRequest.Builder>- Throws:
IOException
-
getGeneratorResourceCase
- Specified by:
getGeneratorResourceCasein interfaceGenerateStatelessSuggestionRequestOrBuilder
-
clearGeneratorResource
-
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) = { ... }- Specified by:
getParentin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public 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) = { ... }- Specified by:
getParentBytesin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
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) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
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:
- This builder for chaining.
-
setParentBytes
public GenerateStatelessSuggestionRequest.Builder setParentBytes(com.google.protobuf.ByteString value) 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) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasGenerator
public boolean hasGenerator()Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2;- Specified by:
hasGeneratorin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- Whether the generator field is set.
-
getGenerator
Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2;- Specified by:
getGeneratorin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The generator.
-
setGenerator
Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2; -
setGenerator
Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2; -
mergeGenerator
Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2; -
clearGenerator
Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2; -
getGeneratorBuilder
Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2; -
getGeneratorOrBuilder
Uncreated generator. It should be a complete generator that includes all information about the generator.
.google.cloud.dialogflow.v2.Generator generator = 2;- Specified by:
getGeneratorOrBuilderin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
hasGeneratorName
public boolean hasGeneratorName()The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Specified by:
hasGeneratorNamein interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- Whether the generatorName field is set.
-
getGeneratorName
The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Specified by:
getGeneratorNamein interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The generatorName.
-
getGeneratorNameBytes
public 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;- Specified by:
getGeneratorNameBytesin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The bytes for generatorName.
-
setGeneratorName
The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Parameters:
value- The generatorName to set.- Returns:
- This builder for chaining.
-
clearGeneratorName
The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Returns:
- This builder for chaining.
-
setGeneratorNameBytes
public GenerateStatelessSuggestionRequest.Builder setGeneratorNameBytes(com.google.protobuf.ByteString value) The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
string generator_name = 3;- Parameters:
value- The bytes for generatorName to set.- Returns:
- This builder for chaining.
-
getContextReferencesCount
public int getContextReferencesCount()Description copied from interface:GenerateStatelessSuggestionRequestOrBuilderOptional. 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];- Specified by:
getContextReferencesCountin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
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];- Specified by:
containsContextReferencesin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
getContextReferences
Deprecated.UsegetContextReferencesMap()instead.- Specified by:
getContextReferencesin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
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];- Specified by:
getContextReferencesMapin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
getContextReferencesOrDefault
public 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];- Specified by:
getContextReferencesOrDefaultin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
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];- Specified by:
getContextReferencesOrThrowin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
clearContextReferences
-
removeContextReferences
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]; -
getMutableContextReferences
Deprecated.Use alternate mutation accessors instead. -
putContextReferences
public GenerateStatelessSuggestionRequest.Builder putContextReferences(String key, Conversation.ContextReference value) 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]; -
putAllContextReferences
public GenerateStatelessSuggestionRequest.Builder putAllContextReferences(Map<String, Conversation.ContextReference> values) 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]; -
putContextReferencesBuilderIfAbsent
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
public boolean hasConversationContext()Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasConversationContextin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- Whether the conversationContext field is set.
-
getConversationContext
Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getConversationContextin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The conversationContext.
-
setConversationContext
Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setConversationContext
public GenerateStatelessSuggestionRequest.Builder setConversationContext(ConversationContext.Builder builderForValue) Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeConversationContext
public GenerateStatelessSuggestionRequest.Builder mergeConversationContext(ConversationContext value) Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearConversationContext
Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getConversationContextBuilder
Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getConversationContextOrBuilder
Optional. Context of the conversation, including transcripts.
.google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getConversationContextOrBuilderin interfaceGenerateStatelessSuggestionRequestOrBuilder
-
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];- Specified by:
getTriggerEventsListin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- A list containing the triggerEvents.
-
getTriggerEventsCount
public 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];- Specified by:
getTriggerEventsCountin interfaceGenerateStatelessSuggestionRequestOrBuilder- 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];- Specified by:
getTriggerEventsin interfaceGenerateStatelessSuggestionRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The triggerEvents at the given index.
-
setTriggerEvents
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 to set the value at.value- The triggerEvents to set.- Returns:
- This builder for chaining.
-
addTriggerEvents
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:
value- The triggerEvents to add.- Returns:
- This builder for chaining.
-
addAllTriggerEvents
public GenerateStatelessSuggestionRequest.Builder addAllTriggerEvents(Iterable<? extends TriggerEvent> values) 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:
values- The triggerEvents to add.- Returns:
- This builder for chaining.
-
clearTriggerEvents
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:
- This builder for chaining.
-
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];- Specified by:
getTriggerEventsValueListin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for triggerEvents.
-
getTriggerEventsValue
public 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];- Specified by:
getTriggerEventsValuein interfaceGenerateStatelessSuggestionRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of triggerEvents at the given index.
-
setTriggerEventsValue
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 to set the value at.value- The enum numeric value on the wire for triggerEvents to set.- Returns:
- This builder for chaining.
-
addTriggerEventsValue
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:
value- The enum numeric value on the wire for triggerEvents to add.- Returns:
- This builder for chaining.
-
addAllTriggerEventsValue
public GenerateStatelessSuggestionRequest.Builder addAllTriggerEventsValue(Iterable<Integer> values) 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:
values- The enum numeric values on the wire for triggerEvents to add.- Returns:
- This builder for chaining.
-
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];- Specified by:
getSecuritySettingsin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The securitySettings.
-
getSecuritySettingsBytes
public 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];- Specified by:
getSecuritySettingsBytesin interfaceGenerateStatelessSuggestionRequestOrBuilder- Returns:
- The bytes for securitySettings.
-
setSecuritySettings
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];- Parameters:
value- The securitySettings to set.- Returns:
- This builder for chaining.
-
clearSecuritySettings
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:
- This builder for chaining.
-
setSecuritySettingsBytes
public GenerateStatelessSuggestionRequest.Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) 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];- Parameters:
value- The bytes for securitySettings to set.- Returns:
- This builder for chaining.
-