Class AutomatedAgentConfig.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public AutomatedAgentConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • setField

        public AutomatedAgentConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • clearField

        public AutomatedAgentConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • clearOneof

        public AutomatedAgentConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • setRepeatedField

        public AutomatedAgentConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • addRepeatedField

        public AutomatedAgentConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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. Sets Dialogflow CX session life time.
         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. Sets Dialogflow CX session life time.
         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. Sets Dialogflow CX session life time.
         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. Sets Dialogflow CX session life time.
         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. Sets Dialogflow CX session life time.
         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. Sets Dialogflow CX session life time.
         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. Sets Dialogflow CX session life time.
         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. Sets Dialogflow CX session life time.
         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
      • setUnknownFields

        public final AutomatedAgentConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>
      • mergeUnknownFields

        public final AutomatedAgentConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentConfig.Builder>