Class ConversationEvent.Builder

  • All Implemented Interfaces:
    ConversationEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ConversationEvent

    public static final class ConversationEvent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
    implements ConversationEventOrBuilder
     Represents a notification sent to Pub/Sub subscribers for conversation
     lifecycle events.
     
    Protobuf type google.cloud.dialogflow.v2beta1.ConversationEvent
    • 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<ConversationEvent.Builder>
      • clear

        public ConversationEvent.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<ConversationEvent.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<ConversationEvent.Builder>
      • getDefaultInstanceForType

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

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

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

        public ConversationEvent.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<ConversationEvent.Builder>
      • setField

        public ConversationEvent.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<ConversationEvent.Builder>
      • clearField

        public ConversationEvent.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<ConversationEvent.Builder>
      • clearOneof

        public ConversationEvent.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<ConversationEvent.Builder>
      • setRepeatedField

        public ConversationEvent.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<ConversationEvent.Builder>
      • addRepeatedField

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

        public ConversationEvent.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<ConversationEvent.Builder>
      • isInitialized

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

        public ConversationEvent.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<ConversationEvent.Builder>
        Throws:
        IOException
      • getConversation

        public String getConversation()
         Required. The unique identifier of the conversation this notification
         refers to.
         Format: `projects/<Project ID>/conversations/<Conversation ID>`.
         
        string conversation = 1;
        Specified by:
        getConversation in interface ConversationEventOrBuilder
        Returns:
        The conversation.
      • getConversationBytes

        public com.google.protobuf.ByteString getConversationBytes()
         Required. The unique identifier of the conversation this notification
         refers to.
         Format: `projects/<Project ID>/conversations/<Conversation ID>`.
         
        string conversation = 1;
        Specified by:
        getConversationBytes in interface ConversationEventOrBuilder
        Returns:
        The bytes for conversation.
      • setConversation

        public ConversationEvent.Builder setConversation​(String value)
         Required. The unique identifier of the conversation this notification
         refers to.
         Format: `projects/<Project ID>/conversations/<Conversation ID>`.
         
        string conversation = 1;
        Parameters:
        value - The conversation to set.
        Returns:
        This builder for chaining.
      • clearConversation

        public ConversationEvent.Builder clearConversation()
         Required. The unique identifier of the conversation this notification
         refers to.
         Format: `projects/<Project ID>/conversations/<Conversation ID>`.
         
        string conversation = 1;
        Returns:
        This builder for chaining.
      • setConversationBytes

        public ConversationEvent.Builder setConversationBytes​(com.google.protobuf.ByteString value)
         Required. The unique identifier of the conversation this notification
         refers to.
         Format: `projects/<Project ID>/conversations/<Conversation ID>`.
         
        string conversation = 1;
        Parameters:
        value - The bytes for conversation to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Required. The type of the event that this notification refers to.
         
        .google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
        Specified by:
        getTypeValue in interface ConversationEventOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public ConversationEvent.Builder setTypeValue​(int value)
         Required. The type of the event that this notification refers to.
         
        .google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public ConversationEvent.Builder setType​(ConversationEvent.Type value)
         Required. The type of the event that this notification refers to.
         
        .google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public ConversationEvent.Builder clearType()
         Required. The type of the event that this notification refers to.
         
        .google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
        Returns:
        This builder for chaining.
      • hasErrorStatus

        public boolean hasErrorStatus()
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
        Specified by:
        hasErrorStatus in interface ConversationEventOrBuilder
        Returns:
        Whether the errorStatus field is set.
      • getErrorStatus

        public com.google.rpc.Status getErrorStatus()
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
        Specified by:
        getErrorStatus in interface ConversationEventOrBuilder
        Returns:
        The errorStatus.
      • setErrorStatus

        public ConversationEvent.Builder setErrorStatus​(com.google.rpc.Status value)
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
      • setErrorStatus

        public ConversationEvent.Builder setErrorStatus​(com.google.rpc.Status.Builder builderForValue)
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
      • mergeErrorStatus

        public ConversationEvent.Builder mergeErrorStatus​(com.google.rpc.Status value)
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
      • clearErrorStatus

        public ConversationEvent.Builder clearErrorStatus()
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
      • getErrorStatusBuilder

        public com.google.rpc.Status.Builder getErrorStatusBuilder()
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
      • getErrorStatusOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder()
         Optional. More detailed information about an error. Only set for type
         UNRECOVERABLE_ERROR_IN_PHONE_CALL.
         
        .google.rpc.Status error_status = 3;
        Specified by:
        getErrorStatusOrBuilder in interface ConversationEventOrBuilder
      • hasNewMessagePayload

        public boolean hasNewMessagePayload()
         Payload of NEW_MESSAGE event.
         
        .google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
        Specified by:
        hasNewMessagePayload in interface ConversationEventOrBuilder
        Returns:
        Whether the newMessagePayload field is set.
      • getNewMessagePayload

        public Message getNewMessagePayload()
         Payload of NEW_MESSAGE event.
         
        .google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
        Specified by:
        getNewMessagePayload in interface ConversationEventOrBuilder
        Returns:
        The newMessagePayload.
      • setNewMessagePayload

        public ConversationEvent.Builder setNewMessagePayload​(Message value)
         Payload of NEW_MESSAGE event.
         
        .google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
      • setNewMessagePayload

        public ConversationEvent.Builder setNewMessagePayload​(Message.Builder builderForValue)
         Payload of NEW_MESSAGE event.
         
        .google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
      • mergeNewMessagePayload

        public ConversationEvent.Builder mergeNewMessagePayload​(Message value)
         Payload of NEW_MESSAGE event.
         
        .google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
      • clearNewMessagePayload

        public ConversationEvent.Builder clearNewMessagePayload()
         Payload of NEW_MESSAGE event.
         
        .google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
      • getNewMessagePayloadBuilder

        public Message.Builder getNewMessagePayloadBuilder()
         Payload of NEW_MESSAGE event.
         
        .google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
      • setUnknownFields

        public final ConversationEvent.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<ConversationEvent.Builder>
      • mergeUnknownFields

        public final ConversationEvent.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<ConversationEvent.Builder>