Class ResponseMessage.LiveAgentHandoff.Builder

  • All Implemented Interfaces:
    ResponseMessage.LiveAgentHandoffOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ResponseMessage.LiveAgentHandoff

    public static final class ResponseMessage.LiveAgentHandoff.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ResponseMessage.LiveAgentHandoff.Builder>
    implements ResponseMessage.LiveAgentHandoffOrBuilder
     Indicates that the conversation should be handed off to a human agent.
    
     Dialogflow only uses this to determine which conversations were handed off
     to a human agent for measurement purposes. What else to do with this signal
     is up to you and your handoff procedures.
    
     You may set this, for example:
    
     * In the entry fulfillment of a CX Page if entering the page indicates
       something went extremely wrong in the conversation.
     * In a webhook response when you determine that the customer issue can only
       be handled by a human.
     
    Protobuf type google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff
    • 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<ResponseMessage.LiveAgentHandoff.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<ResponseMessage.LiveAgentHandoff.Builder>
      • getDefaultInstanceForType

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

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

        public ResponseMessage.LiveAgentHandoff buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResponseMessage.LiveAgentHandoff.Builder>
      • hasMetadata

        public boolean hasMetadata()
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
        Specified by:
        hasMetadata in interface ResponseMessage.LiveAgentHandoffOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public com.google.protobuf.Struct getMetadata()
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
        Specified by:
        getMetadata in interface ResponseMessage.LiveAgentHandoffOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public ResponseMessage.LiveAgentHandoff.Builder setMetadata​(com.google.protobuf.Struct value)
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
      • setMetadata

        public ResponseMessage.LiveAgentHandoff.Builder setMetadata​(com.google.protobuf.Struct.Builder builderForValue)
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
      • mergeMetadata

        public ResponseMessage.LiveAgentHandoff.Builder mergeMetadata​(com.google.protobuf.Struct value)
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
      • clearMetadata

        public ResponseMessage.LiveAgentHandoff.Builder clearMetadata()
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
      • getMetadataBuilder

        public com.google.protobuf.Struct.Builder getMetadataBuilder()
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
      • getMetadataOrBuilder

        public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
         Custom metadata for your handoff procedure. Dialogflow doesn't impose
         any structure on this.
         
        .google.protobuf.Struct metadata = 1;
        Specified by:
        getMetadataOrBuilder in interface ResponseMessage.LiveAgentHandoffOrBuilder