Class Engine.ChatEngineConfig.AgentCreationConfig.Builder

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

public static final class Engine.ChatEngineConfig.AgentCreationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Engine.ChatEngineConfig.AgentCreationConfig.Builder> implements Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
 Configurations for generating a Dialogflow agent.

 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.
 
Protobuf type google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig
  • 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.AgentCreationConfig.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.AgentCreationConfig.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.AgentCreationConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • 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.AgentCreationConfig.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.AgentCreationConfig.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.AgentCreationConfig.Builder>
    • mergeFrom

      public Engine.ChatEngineConfig.AgentCreationConfig.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.AgentCreationConfig.Builder>
      Throws:
      IOException
    • getBusiness

      public String getBusiness()
       Name of the company, organization or other entity that the agent
       represents. Used for knowledge connector LLM prompt and for knowledge
       search.
       
      string business = 1;
      Specified by:
      getBusiness in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The business.
    • getBusinessBytes

      public com.google.protobuf.ByteString getBusinessBytes()
       Name of the company, organization or other entity that the agent
       represents. Used for knowledge connector LLM prompt and for knowledge
       search.
       
      string business = 1;
      Specified by:
      getBusinessBytes in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The bytes for business.
    • setBusiness

       Name of the company, organization or other entity that the agent
       represents. Used for knowledge connector LLM prompt and for knowledge
       search.
       
      string business = 1;
      Parameters:
      value - The business to set.
      Returns:
      This builder for chaining.
    • clearBusiness

       Name of the company, organization or other entity that the agent
       represents. Used for knowledge connector LLM prompt and for knowledge
       search.
       
      string business = 1;
      Returns:
      This builder for chaining.
    • setBusinessBytes

      public Engine.ChatEngineConfig.AgentCreationConfig.Builder setBusinessBytes(com.google.protobuf.ByteString value)
       Name of the company, organization or other entity that the agent
       represents. Used for knowledge connector LLM prompt and for knowledge
       search.
       
      string business = 1;
      Parameters:
      value - The bytes for business to set.
      Returns:
      This builder for chaining.
    • getDefaultLanguageCode

      public String getDefaultLanguageCode()
       Required. The default language of the agent as a language tag.
       See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string default_language_code = 2;
      Specified by:
      getDefaultLanguageCode in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The defaultLanguageCode.
    • getDefaultLanguageCodeBytes

      public com.google.protobuf.ByteString getDefaultLanguageCodeBytes()
       Required. The default language of the agent as a language tag.
       See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string default_language_code = 2;
      Specified by:
      getDefaultLanguageCodeBytes in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The bytes for defaultLanguageCode.
    • setDefaultLanguageCode

      public Engine.ChatEngineConfig.AgentCreationConfig.Builder setDefaultLanguageCode(String value)
       Required. The default language of the agent as a language tag.
       See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string default_language_code = 2;
      Parameters:
      value - The defaultLanguageCode to set.
      Returns:
      This builder for chaining.
    • clearDefaultLanguageCode

      public Engine.ChatEngineConfig.AgentCreationConfig.Builder clearDefaultLanguageCode()
       Required. The default language of the agent as a language tag.
       See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string default_language_code = 2;
      Returns:
      This builder for chaining.
    • setDefaultLanguageCodeBytes

      public Engine.ChatEngineConfig.AgentCreationConfig.Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value)
       Required. The default language of the agent as a language tag.
       See [Language
       Support](https://cloud.google.com/dialogflow/docs/reference/language)
       for a list of the currently supported language codes.
       
      string default_language_code = 2;
      Parameters:
      value - The bytes for defaultLanguageCode to set.
      Returns:
      This builder for chaining.
    • getTimeZone

      public String getTimeZone()
       Required. The time zone of the agent from the [time zone
       database](https://www.iana.org/time-zones), e.g., America/New_York,
       Europe/Paris.
       
      string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZone in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The timeZone.
    • getTimeZoneBytes

      public com.google.protobuf.ByteString getTimeZoneBytes()
       Required. The time zone of the agent from the [time zone
       database](https://www.iana.org/time-zones), e.g., America/New_York,
       Europe/Paris.
       
      string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZoneBytes in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The bytes for timeZone.
    • setTimeZone

       Required. The time zone of the agent from the [time zone
       database](https://www.iana.org/time-zones), e.g., America/New_York,
       Europe/Paris.
       
      string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The timeZone to set.
      Returns:
      This builder for chaining.
    • clearTimeZone

       Required. The time zone of the agent from the [time zone
       database](https://www.iana.org/time-zones), e.g., America/New_York,
       Europe/Paris.
       
      string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTimeZoneBytes

      public Engine.ChatEngineConfig.AgentCreationConfig.Builder setTimeZoneBytes(com.google.protobuf.ByteString value)
       Required. The time zone of the agent from the [time zone
       database](https://www.iana.org/time-zones), e.g., America/New_York,
       Europe/Paris.
       
      string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for timeZone to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Agent location for Agent creation, supported values: global/us/eu.
       If not provided, us Engine will create Agent using us-central-1 by
       default; eu Engine will create Agent using eu-west-1 by default.
       
      string location = 4;
      Specified by:
      getLocation in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Agent location for Agent creation, supported values: global/us/eu.
       If not provided, us Engine will create Agent using us-central-1 by
       default; eu Engine will create Agent using eu-west-1 by default.
       
      string location = 4;
      Specified by:
      getLocationBytes in interface Engine.ChatEngineConfig.AgentCreationConfigOrBuilder
      Returns:
      The bytes for location.
    • setLocation

       Agent location for Agent creation, supported values: global/us/eu.
       If not provided, us Engine will create Agent using us-central-1 by
       default; eu Engine will create Agent using eu-west-1 by default.
       
      string location = 4;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

       Agent location for Agent creation, supported values: global/us/eu.
       If not provided, us Engine will create Agent using us-central-1 by
       default; eu Engine will create Agent using eu-west-1 by default.
       
      string location = 4;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Engine.ChatEngineConfig.AgentCreationConfig.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Agent location for Agent creation, supported values: global/us/eu.
       If not provided, us Engine will create Agent using us-central-1 by
       default; eu Engine will create Agent using eu-west-1 by default.
       
      string location = 4;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.