Class AutomatedAgentConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutomatedAgentConfig.Builder>
com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder
All Implemented Interfaces:
AutomatedAgentConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AutomatedAgentConfig

public static final class AutomatedAgentConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutomatedAgentConfig.Builder> implements AutomatedAgentConfigOrBuilder
 Defines the Automated Agent to connect to a conversation.
 
Protobuf type google.cloud.dialogflow.v2.AutomatedAgentConfig
  • 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<AutomatedAgentConfig.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<AutomatedAgentConfig.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<AutomatedAgentConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public AutomatedAgentConfig.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<AutomatedAgentConfig.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<AutomatedAgentConfig.Builder>
    • mergeFrom

      public AutomatedAgentConfig.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<AutomatedAgentConfig.Builder>
      Throws:
      IOException
    • getAgent

      public String getAgent()
       Required. ID of the Dialogflow agent environment to use.
      
       This project needs to either be the same project as the conversation or you
       need to grant `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
       Service Agent` role in this project.
      
       - For ES agents, use format: `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID or '-'>`. If environment is not
       specified, the default `draft` environment is used. Refer to
       [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
       for more details.
      
       - For CX agents, use format `projects/<Project ID>/locations/<Location
       ID>/agents/<Agent ID>/environments/<Environment ID
       or '-'>`. If environment is not specified, the default `draft` environment
       is used.
       
      string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAgent in interface AutomatedAgentConfigOrBuilder
      Returns:
      The agent.
    • getAgentBytes

      public com.google.protobuf.ByteString getAgentBytes()
       Required. ID of the Dialogflow agent environment to use.
      
       This project needs to either be the same project as the conversation or you
       need to grant `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
       Service Agent` role in this project.
      
       - For ES agents, use format: `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID or '-'>`. If environment is not
       specified, the default `draft` environment is used. Refer to
       [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
       for more details.
      
       - For CX agents, use format `projects/<Project ID>/locations/<Location
       ID>/agents/<Agent ID>/environments/<Environment ID
       or '-'>`. If environment is not specified, the default `draft` environment
       is used.
       
      string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAgentBytes in interface AutomatedAgentConfigOrBuilder
      Returns:
      The bytes for agent.
    • setAgent

      public AutomatedAgentConfig.Builder setAgent(String value)
       Required. ID of the Dialogflow agent environment to use.
      
       This project needs to either be the same project as the conversation or you
       need to grant `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
       Service Agent` role in this project.
      
       - For ES agents, use format: `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID or '-'>`. If environment is not
       specified, the default `draft` environment is used. Refer to
       [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
       for more details.
      
       - For CX agents, use format `projects/<Project ID>/locations/<Location
       ID>/agents/<Agent ID>/environments/<Environment ID
       or '-'>`. If environment is not specified, the default `draft` environment
       is used.
       
      string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The agent to set.
      Returns:
      This builder for chaining.
    • clearAgent

      public AutomatedAgentConfig.Builder clearAgent()
       Required. ID of the Dialogflow agent environment to use.
      
       This project needs to either be the same project as the conversation or you
       need to grant `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
       Service Agent` role in this project.
      
       - For ES agents, use format: `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID or '-'>`. If environment is not
       specified, the default `draft` environment is used. Refer to
       [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
       for more details.
      
       - For CX agents, use format `projects/<Project ID>/locations/<Location
       ID>/agents/<Agent ID>/environments/<Environment ID
       or '-'>`. If environment is not specified, the default `draft` environment
       is used.
       
      string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAgentBytes

      public AutomatedAgentConfig.Builder setAgentBytes(com.google.protobuf.ByteString value)
       Required. ID of the Dialogflow agent environment to use.
      
       This project needs to either be the same project as the conversation or you
       need to grant `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
       Service Agent` role in this project.
      
       - For ES agents, use format: `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID or '-'>`. If environment is not
       specified, the default `draft` environment is used. Refer to
       [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
       for more details.
      
       - For CX agents, use format `projects/<Project ID>/locations/<Location
       ID>/agents/<Agent ID>/environments/<Environment ID
       or '-'>`. If environment is not specified, the default `draft` environment
       is used.
       
      string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for agent to set.
      Returns:
      This builder for chaining.
    • hasSessionTtl

      public boolean hasSessionTtl()
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSessionTtl in interface AutomatedAgentConfigOrBuilder
      Returns:
      Whether the sessionTtl field is set.
    • getSessionTtl

      public com.google.protobuf.Duration getSessionTtl()
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSessionTtl in interface AutomatedAgentConfigOrBuilder
      Returns:
      The sessionTtl.
    • setSessionTtl

      public AutomatedAgentConfig.Builder setSessionTtl(com.google.protobuf.Duration value)
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setSessionTtl

      public AutomatedAgentConfig.Builder setSessionTtl(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSessionTtl

      public AutomatedAgentConfig.Builder mergeSessionTtl(com.google.protobuf.Duration value)
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearSessionTtl

      public AutomatedAgentConfig.Builder clearSessionTtl()
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getSessionTtlBuilder

      public com.google.protobuf.Duration.Builder getSessionTtlBuilder()
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getSessionTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder()
       Optional. Configure lifetime of the Dialogflow session.
       By default, a Dialogflow CX session remains active and its data is stored
       for 30 minutes after the last request is sent for the session.
       This value should be no longer than 1 day.
       
      .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSessionTtlOrBuilder in interface AutomatedAgentConfigOrBuilder