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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getGeneratorResourceCase

      Specified by:
      getGeneratorResourceCase in interface GenerateStatelessSuggestionRequestOrBuilder
    • getParent

      public 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) = { ... }
      Specified by:
      getParent in interface GenerateStatelessSuggestionRequestOrBuilder
      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:
      getParentBytes in interface GenerateStatelessSuggestionRequestOrBuilder
      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:
      hasGenerator in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      Whether the generator field is set.
    • getGenerator

      public Generator 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:
      getGenerator in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      The generator.
    • getGeneratorOrBuilder

      public GeneratorOrBuilder 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:
      getGeneratorOrBuilder in interface GenerateStatelessSuggestionRequestOrBuilder
    • 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:
      hasGeneratorName in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      Whether the generatorName field is set.
    • getGeneratorName

      public String 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:
      getGeneratorName in interface GenerateStatelessSuggestionRequestOrBuilder
      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:
      getGeneratorNameBytes in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      The bytes for generatorName.
    • getContextReferencesCount

      public int getContextReferencesCount()
      Description copied from interface: GenerateStatelessSuggestionRequestOrBuilder
       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:
      getContextReferencesCount in interface GenerateStatelessSuggestionRequestOrBuilder
    • containsContextReferences

      public boolean containsContextReferences(String key)
       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:
      containsContextReferences in interface GenerateStatelessSuggestionRequestOrBuilder
    • getContextReferences

      @Deprecated public Map<String,Conversation.ContextReference> getContextReferences()
      Deprecated.
      Specified by:
      getContextReferences in interface GenerateStatelessSuggestionRequestOrBuilder
    • getContextReferencesMap

      public 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];
      Specified by:
      getContextReferencesMap in interface GenerateStatelessSuggestionRequestOrBuilder
    • 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:
      getContextReferencesOrDefault in interface GenerateStatelessSuggestionRequestOrBuilder
    • getContextReferencesOrThrow

      public Conversation.ContextReference getContextReferencesOrThrow(String key)
       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:
      getContextReferencesOrThrow in interface GenerateStatelessSuggestionRequestOrBuilder
    • 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:
      hasConversationContext in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      Whether the conversationContext field is set.
    • getConversationContext

      public ConversationContext getConversationContext()
       Optional. Context of the conversation, including transcripts.
       
      .google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationContext in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      The conversationContext.
    • getConversationContextOrBuilder

      public ConversationContextOrBuilder getConversationContextOrBuilder()
       Optional. Context of the conversation, including transcripts.
       
      .google.cloud.dialogflow.v2.ConversationContext conversation_context = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationContextOrBuilder in interface GenerateStatelessSuggestionRequestOrBuilder
    • getTriggerEventsList

      public 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];
      Specified by:
      getTriggerEventsList in interface GenerateStatelessSuggestionRequestOrBuilder
      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:
      getTriggerEventsCount in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      The count of triggerEvents.
    • getTriggerEvents

      public TriggerEvent getTriggerEvents(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:
      getTriggerEvents in interface GenerateStatelessSuggestionRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The triggerEvents at the given index.
    • getTriggerEventsValueList

      public List<Integer> 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:
      getTriggerEventsValueList in interface GenerateStatelessSuggestionRequestOrBuilder
      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:
      getTriggerEventsValue in interface GenerateStatelessSuggestionRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of triggerEvents at the given index.
    • getSecuritySettings

      public 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];
      Specified by:
      getSecuritySettings in interface GenerateStatelessSuggestionRequestOrBuilder
      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:
      getSecuritySettingsBytes in interface GenerateStatelessSuggestionRequestOrBuilder
      Returns:
      The bytes for securitySettings.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static GenerateStatelessSuggestionRequest parseFrom(InputStream input) throws IOException
      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

      public GenerateStatelessSuggestionRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GenerateStatelessSuggestionRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GenerateStatelessSuggestionRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GenerateStatelessSuggestionRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GenerateStatelessSuggestionRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<GenerateStatelessSuggestionRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GenerateStatelessSuggestionRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder