Package com.google.cloud.dialogflow.v2
Class GenerateStatelessSuggestionRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest
- All Implemented Interfaces:
GenerateStatelessSuggestionRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class GenerateStatelessSuggestionRequest
extends com.google.protobuf.GeneratedMessage
implements GenerateStatelessSuggestionRequestOrBuilder
The request message for [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion].Protobuf type
google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe request message for [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion].static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.booleanDeprecated.intOptional.Optional.getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue) Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.DescriptorUncreated 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.com.google.protobuf.Parser<GenerateStatelessSuggestionRequest>Optional.com.google.protobuf.ByteStringOptional.intgetTriggerEvents(int index) Optional.intOptional.Optional.intgetTriggerEventsValue(int index) Optional.Optional.booleanOptional.booleanUncreated generator.booleanThe resource name of the existing created generator.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(GenerateStatelessSuggestionRequest prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GenerateStatelessSuggestionRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER- See Also:
-
GENERATOR_FIELD_NUMBER
public static final int GENERATOR_FIELD_NUMBER- See Also:
-
GENERATOR_NAME_FIELD_NUMBER
public static final int GENERATOR_NAME_FIELD_NUMBER- See Also:
-
CONTEXT_REFERENCES_FIELD_NUMBER
public static final int CONTEXT_REFERENCES_FIELD_NUMBER- See Also:
-
CONVERSATION_CONTEXT_FIELD_NUMBER
public static final int CONVERSATION_CONTEXT_FIELD_NUMBER- See Also:
-
TRIGGER_EVENTS_FIELD_NUMBER
public static final int TRIGGER_EVENTS_FIELD_NUMBER- See Also:
-
SECURITY_SETTINGS_FIELD_NUMBER
public static final int SECURITY_SETTINGS_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getGeneratorResourceCase
- Specified by:
getGeneratorResourceCasein interfaceGenerateStatelessSuggestionRequestOrBuilder
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GenerateStatelessSuggestionRequest parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GenerateStatelessSuggestionRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateStatelessSuggestionRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static GenerateStatelessSuggestionRequest.Builder newBuilder(GenerateStatelessSuggestionRequest prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerateStatelessSuggestionRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-