Class ConversationEvent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.ConversationEvent
All Implemented Interfaces:
ConversationEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConversationEvent extends com.google.protobuf.GeneratedMessage implements ConversationEventOrBuilder
 Represents a notification sent to Pub/Sub subscribers for conversation
 lifecycle events.
 
Protobuf type google.cloud.dialogflow.v2.ConversationEvent
See Also:
  • Field Details

    • CONVERSATION_FIELD_NUMBER

      public static final int CONVERSATION_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • ERROR_STATUS_FIELD_NUMBER

      public static final int ERROR_STATUS_FIELD_NUMBER
      See Also:
    • NEW_MESSAGE_PAYLOAD_FIELD_NUMBER

      public static final int NEW_MESSAGE_PAYLOAD_FIELD_NUMBER
      See Also:
    • NEW_RECOGNITION_RESULT_PAYLOAD_FIELD_NUMBER

      public static final int NEW_RECOGNITION_RESULT_PAYLOAD_FIELD_NUMBER
      See Also:
  • 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
    • getPayloadCase

      public ConversationEvent.PayloadCase getPayloadCase()
      Specified by:
      getPayloadCase in interface ConversationEventOrBuilder
    • getConversation

      public String getConversation()
       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()
       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.
    • getTypeValue

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

      public ConversationEvent.Type getType()
       The type of the event that this notification refers to.
       
      .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
      Specified by:
      getType in interface ConversationEventOrBuilder
      Returns:
      The type.
    • hasErrorStatus

      public boolean hasErrorStatus()
       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 Status getErrorStatus()
       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.
    • getErrorStatusOrBuilder

      public StatusOrBuilder getErrorStatusOrBuilder()
       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.v2.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.v2.Message new_message_payload = 4;
      Specified by:
      getNewMessagePayload in interface ConversationEventOrBuilder
      Returns:
      The newMessagePayload.
    • getNewMessagePayloadOrBuilder

      public MessageOrBuilder getNewMessagePayloadOrBuilder()
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
      Specified by:
      getNewMessagePayloadOrBuilder in interface ConversationEventOrBuilder
    • hasNewRecognitionResultPayload

      public boolean hasNewRecognitionResultPayload()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
      Specified by:
      hasNewRecognitionResultPayload in interface ConversationEventOrBuilder
      Returns:
      Whether the newRecognitionResultPayload field is set.
    • getNewRecognitionResultPayload

      public StreamingRecognitionResult getNewRecognitionResultPayload()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
      Specified by:
      getNewRecognitionResultPayload in interface ConversationEventOrBuilder
      Returns:
      The newRecognitionResultPayload.
    • getNewRecognitionResultPayloadOrBuilder

      public StreamingRecognitionResultOrBuilder getNewRecognitionResultPayloadOrBuilder()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
      Specified by:
      getNewRecognitionResultPayloadOrBuilder in interface ConversationEventOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConversationEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversationEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConversationEvent parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConversationEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversationEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversationEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ConversationEvent.Builder newBuilder()
    • newBuilder

      public static ConversationEvent.Builder newBuilder(ConversationEvent prototype)
    • toBuilder

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

      protected ConversationEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConversationEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConversationEvent> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConversationEvent> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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