Class Engine.ChatEngineConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Engine.ChatEngineConfig.Builder>
com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder
All Implemented Interfaces:
Engine.ChatEngineConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Engine.ChatEngineConfig

public static final class Engine.ChatEngineConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Engine.ChatEngineConfig.Builder> implements Engine.ChatEngineConfigOrBuilder
 Configurations for a Chat Engine.
 
Protobuf type google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Engine.ChatEngineConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Engine.ChatEngineConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Engine.ChatEngineConfig.Builder>
    • getDefaultInstanceForType

      public Engine.ChatEngineConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Engine.ChatEngineConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Engine.ChatEngineConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Engine.ChatEngineConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Engine.ChatEngineConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Engine.ChatEngineConfig.Builder>
    • mergeFrom

      public Engine.ChatEngineConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Engine.ChatEngineConfig.Builder>
      Throws:
      IOException
    • hasAgentCreationConfig

      public boolean hasAgentCreationConfig()
       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
      Specified by:
      hasAgentCreationConfig in interface Engine.ChatEngineConfigOrBuilder
      Returns:
      Whether the agentCreationConfig field is set.
    • getAgentCreationConfig

      public Engine.ChatEngineConfig.AgentCreationConfig getAgentCreationConfig()
       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
      Specified by:
      getAgentCreationConfig in interface Engine.ChatEngineConfigOrBuilder
      Returns:
      The agentCreationConfig.
    • setAgentCreationConfig

       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
    • setAgentCreationConfig

       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
    • mergeAgentCreationConfig

       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
    • clearAgentCreationConfig

      public Engine.ChatEngineConfig.Builder clearAgentCreationConfig()
       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
    • getAgentCreationConfigBuilder

      public Engine.ChatEngineConfig.AgentCreationConfig.Builder getAgentCreationConfigBuilder()
       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
    • getAgentCreationConfigOrBuilder

      public Engine.ChatEngineConfig.AgentCreationConfigOrBuilder getAgentCreationConfigOrBuilder()
       The configurationt generate the Dialogflow agent that is associated to
       this Engine.
      
       Note that these configurations are one-time consumed by
       and passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation.
       
      .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1;
      Specified by:
      getAgentCreationConfigOrBuilder in interface Engine.ChatEngineConfigOrBuilder
    • getDialogflowAgentToLink

      public String getDialogflowAgentToLink()
       The resource name of an exist Dialogflow agent to link to this Chat
       Engine. Customers can either provide `agent_creation_config` to create
       agent or provide an agent name that links the agent with the Chat engine.
      
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>`.
      
       Note that the `dialogflow_agent_to_link` are one-time consumed by and
       passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation. Use
       [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
       for actual agent association after Engine is created.
       
      string dialogflow_agent_to_link = 2;
      Specified by:
      getDialogflowAgentToLink in interface Engine.ChatEngineConfigOrBuilder
      Returns:
      The dialogflowAgentToLink.
    • getDialogflowAgentToLinkBytes

      public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes()
       The resource name of an exist Dialogflow agent to link to this Chat
       Engine. Customers can either provide `agent_creation_config` to create
       agent or provide an agent name that links the agent with the Chat engine.
      
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>`.
      
       Note that the `dialogflow_agent_to_link` are one-time consumed by and
       passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation. Use
       [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
       for actual agent association after Engine is created.
       
      string dialogflow_agent_to_link = 2;
      Specified by:
      getDialogflowAgentToLinkBytes in interface Engine.ChatEngineConfigOrBuilder
      Returns:
      The bytes for dialogflowAgentToLink.
    • setDialogflowAgentToLink

      public Engine.ChatEngineConfig.Builder setDialogflowAgentToLink(String value)
       The resource name of an exist Dialogflow agent to link to this Chat
       Engine. Customers can either provide `agent_creation_config` to create
       agent or provide an agent name that links the agent with the Chat engine.
      
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>`.
      
       Note that the `dialogflow_agent_to_link` are one-time consumed by and
       passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation. Use
       [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
       for actual agent association after Engine is created.
       
      string dialogflow_agent_to_link = 2;
      Parameters:
      value - The dialogflowAgentToLink to set.
      Returns:
      This builder for chaining.
    • clearDialogflowAgentToLink

      public Engine.ChatEngineConfig.Builder clearDialogflowAgentToLink()
       The resource name of an exist Dialogflow agent to link to this Chat
       Engine. Customers can either provide `agent_creation_config` to create
       agent or provide an agent name that links the agent with the Chat engine.
      
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>`.
      
       Note that the `dialogflow_agent_to_link` are one-time consumed by and
       passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation. Use
       [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
       for actual agent association after Engine is created.
       
      string dialogflow_agent_to_link = 2;
      Returns:
      This builder for chaining.
    • setDialogflowAgentToLinkBytes

      public Engine.ChatEngineConfig.Builder setDialogflowAgentToLinkBytes(com.google.protobuf.ByteString value)
       The resource name of an exist Dialogflow agent to link to this Chat
       Engine. Customers can either provide `agent_creation_config` to create
       agent or provide an agent name that links the agent with the Chat engine.
      
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>`.
      
       Note that the `dialogflow_agent_to_link` are one-time consumed by and
       passed to Dialogflow service. It means they cannot be retrieved using
       [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
       or
       [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
       API after engine creation. Use
       [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
       for actual agent association after Engine is created.
       
      string dialogflow_agent_to_link = 2;
      Parameters:
      value - The bytes for dialogflowAgentToLink to set.
      Returns:
      This builder for chaining.